diff --git a/.github/actions/checkout-submodules-and-bootstrap/action.yaml b/.github/actions/checkout-submodules-and-bootstrap/action.yaml index d60a69ce6d62fd..892cf93716cb8d 100644 --- a/.github/actions/checkout-submodules-and-bootstrap/action.yaml +++ b/.github/actions/checkout-submodules-and-bootstrap/action.yaml @@ -26,17 +26,10 @@ runs: uses: ./.github/actions/bootstrap-cache - name: Bootstrap uses: ./.github/actions/bootstrap + env: + PW_NO_CIPD_CACHE_DIR: Y with: platform: ${{ inputs.platform }} - - name: Remove CIPD cache directory - # If there is a bootstrap-cache miss, and bootstrap installs CIPD itself, - # there is roughly 1.4GB that remains in this cache that is useless from - # this point onwards. - shell: bash - continue-on-error: true - run: | - du -sh $HOME/.cipd-cache-dir/ - rm -rf $HOME/.cipd-cache-dir/ || echo "Removing cipd cache dir failed" - name: Dump disk info after checkout submodule & Bootstrap shell: bash run: scripts/dump_diskspace_info.sh diff --git a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter index 142425b99b6b43..a32385add15336 100644 --- a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter +++ b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter @@ -2690,7 +2690,6 @@ server cluster RvcRunMode = 84 { readonly attribute ModeOptionStruct supportedModes[] = 0; readonly attribute int8u currentMode = 1; - attribute nullable int8u startUpMode = 2; attribute nullable int8u onMode = 3; readonly attribute command_id generatedCommandList[] = 65528; readonly attribute command_id acceptedCommandList[] = 65529; @@ -2740,7 +2739,6 @@ server cluster RvcCleanMode = 85 { readonly attribute ModeOptionStruct supportedModes[] = 0; readonly attribute int8u currentMode = 1; - attribute nullable int8u startUpMode = 2; attribute nullable int8u onMode = 3; readonly attribute command_id generatedCommandList[] = 65528; readonly attribute command_id acceptedCommandList[] = 65529; @@ -5888,7 +5886,7 @@ endpoint 1 { callback attribute acceptedCommandList; callback attribute attributeList; callback attribute featureMap default = 0; - ram attribute clusterRevision default = 1; + ram attribute clusterRevision default = 2; handle command ChangeToMode; handle command ChangeToModeResponse; @@ -5903,7 +5901,7 @@ endpoint 1 { callback attribute acceptedCommandList; callback attribute attributeList; callback attribute featureMap default = 0; - ram attribute clusterRevision default = 1; + ram attribute clusterRevision default = 2; handle command ChangeToMode; handle command ChangeToModeResponse; @@ -5925,13 +5923,12 @@ endpoint 1 { server cluster RvcRunMode { callback attribute supportedModes; callback attribute currentMode; - callback attribute startUpMode; callback attribute onMode; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; callback attribute featureMap default = 0; - ram attribute clusterRevision default = 1; + ram attribute clusterRevision default = 2; handle command ChangeToMode; handle command ChangeToModeResponse; @@ -5940,13 +5937,12 @@ endpoint 1 { server cluster RvcCleanMode { callback attribute supportedModes; callback attribute currentMode; - callback attribute startUpMode; callback attribute onMode; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; callback attribute featureMap default = 0; - ram attribute clusterRevision default = 1; + ram attribute clusterRevision default = 2; handle command ChangeToMode; handle command ChangeToModeResponse; @@ -5985,7 +5981,7 @@ endpoint 1 { callback attribute acceptedCommandList; callback attribute attributeList; callback attribute featureMap default = 0; - ram attribute clusterRevision default = 1; + ram attribute clusterRevision default = 2; handle command ChangeToMode; handle command ChangeToModeResponse; @@ -6873,7 +6869,7 @@ endpoint 2 { } } endpoint 65534 { - device type ma_secondary_network_commissioning = 61442, version 1; + device type ma_secondary_network_commissioning = 4293984258, version 1; server cluster Descriptor { @@ -6881,6 +6877,10 @@ endpoint 65534 { callback attribute serverList; callback attribute clientList; callback attribute partsList; + callback attribute generatedCommandList; + callback attribute acceptedCommandList; + callback attribute eventList; + callback attribute attributeList; ram attribute featureMap default = 0; callback attribute clusterRevision default = 2; } @@ -6894,6 +6894,10 @@ endpoint 65534 { callback attribute lastNetworkingStatus; callback attribute lastNetworkID; callback attribute lastConnectErrorValue; + callback attribute generatedCommandList; + callback attribute acceptedCommandList; + callback attribute eventList; + callback attribute attributeList; callback attribute featureMap default = 0; callback attribute clusterRevision default = 1; diff --git a/examples/all-clusters-app/all-clusters-common/all-clusters-app.zap b/examples/all-clusters-app/all-clusters-common/all-clusters-app.zap index 456990f676e851..ba7c60dd255ce2 100644 --- a/examples/all-clusters-app/all-clusters-common/all-clusters-app.zap +++ b/examples/all-clusters-app/all-clusters-common/all-clusters-app.zap @@ -17,6 +17,12 @@ } ], "package": [ + { + "pathRelativity": "relativeToZap", + "path": "../../../src/app/zap-templates/app-templates.json", + "type": "gen-templates-json", + "version": "chip-v1" + }, { "pathRelativity": "relativeToZap", "path": "../../../src/app/zap-templates/zcl/zcl-with-test-extensions.json", @@ -24,12 +30,6 @@ "category": "matter", "version": 1, "description": "Matter SDK ZCL data with some extensions" - }, - { - "pathRelativity": "relativeToZap", - "path": "../../../src/app/zap-templates/app-templates.json", - "type": "gen-templates-json", - "version": "chip-v1" } ], "endpointTypes": [ @@ -9018,7 +9018,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "1", + "defaultValue": "2", "reportable": 1, "minInterval": 1, "maxInterval": 65534, @@ -9190,7 +9190,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "1", + "defaultValue": "2", "reportable": 1, "minInterval": 1, "maxInterval": 65534, @@ -9426,22 +9426,6 @@ "maxInterval": 65534, "reportableChange": 0 }, - { - "name": "StartUpMode", - "code": 2, - "mfgCode": null, - "side": "server", - "type": "int8u", - "included": 1, - "storageOption": "External", - "singleton": 0, - "bounded": 0, - "defaultValue": "", - "reportable": 1, - "minInterval": 1, - "maxInterval": 65534, - "reportableChange": 0 - }, { "name": "OnMode", "code": 3, @@ -9532,7 +9516,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "1", + "defaultValue": "2", "reportable": 1, "minInterval": 1, "maxInterval": 65534, @@ -9598,22 +9582,6 @@ "maxInterval": 65534, "reportableChange": 0 }, - { - "name": "StartUpMode", - "code": 2, - "mfgCode": null, - "side": "server", - "type": "int8u", - "included": 1, - "storageOption": "External", - "singleton": 0, - "bounded": 0, - "defaultValue": "", - "reportable": 1, - "minInterval": 1, - "maxInterval": 65534, - "reportableChange": 0 - }, { "name": "OnMode", "code": 3, @@ -9704,7 +9672,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "1", + "defaultValue": "2", "reportable": 1, "minInterval": 1, "maxInterval": 65534, @@ -10155,7 +10123,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "1", + "defaultValue": "2", "reportable": 1, "minInterval": 1, "maxInterval": 65534, @@ -21384,14 +21352,14 @@ "id": 4, "name": "Anonymous Endpoint Type", "deviceTypeRef": { - "code": 61442, + "code": 4293984258, "profileId": 259, "label": "MA-secondary-network-commissioning", "name": "MA-secondary-network-commissioning" }, "deviceTypes": [ { - "code": 61442, + "code": 4293984258, "profileId": 259, "label": "MA-secondary-network-commissioning", "name": "MA-secondary-network-commissioning" @@ -21401,10 +21369,10 @@ 1 ], "deviceIdentifiers": [ - 61442 + 4293984258 ], "deviceTypeName": "MA-secondary-network-commissioning", - "deviceTypeCode": 61442, + "deviceTypeCode": 4293984258, "deviceTypeProfileId": 259, "clusters": [ { @@ -21479,6 +21447,70 @@ "maxInterval": 65534, "reportableChange": 0 }, + { + "name": "GeneratedCommandList", + "code": 65528, + "mfgCode": null, + "side": "server", + "type": "array", + "included": 1, + "storageOption": "External", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, + { + "name": "AcceptedCommandList", + "code": 65529, + "mfgCode": null, + "side": "server", + "type": "array", + "included": 1, + "storageOption": "External", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, + { + "name": "EventList", + "code": 65530, + "mfgCode": null, + "side": "server", + "type": "array", + "included": 1, + "storageOption": "External", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, + { + "name": "AttributeList", + "code": 65531, + "mfgCode": null, + "side": "server", + "type": "array", + "included": 1, + "storageOption": "External", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, { "name": "FeatureMap", "code": 65532, @@ -21723,6 +21755,70 @@ "maxInterval": 65534, "reportableChange": 0 }, + { + "name": "GeneratedCommandList", + "code": 65528, + "mfgCode": null, + "side": "server", + "type": "array", + "included": 1, + "storageOption": "External", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, + { + "name": "AcceptedCommandList", + "code": 65529, + "mfgCode": null, + "side": "server", + "type": "array", + "included": 1, + "storageOption": "External", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, + { + "name": "EventList", + "code": 65530, + "mfgCode": null, + "side": "server", + "type": "array", + "included": 1, + "storageOption": "External", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, + { + "name": "AttributeList", + "code": 65531, + "mfgCode": null, + "side": "server", + "type": "array", + "included": 1, + "storageOption": "External", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, { "name": "FeatureMap", "code": 65532, @@ -21789,5 +21885,6 @@ "endpointId": 65534, "networkId": 0 } - ] + ], + "log": [] } \ No newline at end of file diff --git a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter index 95549c2832922b..397f58953c7555 100644 --- a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter +++ b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter @@ -5022,7 +5022,7 @@ endpoint 2 { } } endpoint 65534 { - device type ma_secondary_network_commissioning = 61442, version 1; + device type ma_secondary_network_commissioning = 4293984258, version 1; server cluster Descriptor { @@ -5030,6 +5030,10 @@ endpoint 65534 { callback attribute serverList; callback attribute clientList; callback attribute partsList; + callback attribute generatedCommandList; + callback attribute acceptedCommandList; + callback attribute eventList; + callback attribute attributeList; ram attribute featureMap default = 0; callback attribute clusterRevision default = 1; } @@ -5043,6 +5047,10 @@ endpoint 65534 { callback attribute lastNetworkingStatus; callback attribute lastNetworkID; callback attribute lastConnectErrorValue; + callback attribute generatedCommandList; + callback attribute acceptedCommandList; + callback attribute eventList; + callback attribute attributeList; callback attribute featureMap default = 0; callback attribute clusterRevision default = 1; diff --git a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.zap b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.zap index 486b0f4e53b5d6..0a8b5882f67122 100644 --- a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.zap +++ b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.zap @@ -11783,14 +11783,14 @@ "id": 4, "name": "Anonymous Endpoint Type", "deviceTypeRef": { - "code": 61442, + "code": 4293984258, "profileId": 259, "label": "MA-secondary-network-commissioning", "name": "MA-secondary-network-commissioning" }, "deviceTypes": [ { - "code": 61442, + "code": 4293984258, "profileId": 259, "label": "MA-secondary-network-commissioning", "name": "MA-secondary-network-commissioning" @@ -11800,10 +11800,10 @@ 1 ], "deviceIdentifiers": [ - 61442 + 4293984258 ], "deviceTypeName": "MA-secondary-network-commissioning", - "deviceTypeCode": 61442, + "deviceTypeCode": 4293984258, "deviceTypeProfileId": 259, "clusters": [ { @@ -11878,6 +11878,70 @@ "maxInterval": 65344, "reportableChange": 0 }, + { + "name": "GeneratedCommandList", + "code": 65528, + "mfgCode": null, + "side": "server", + "type": "array", + "included": 1, + "storageOption": "External", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, + { + "name": "AcceptedCommandList", + "code": 65529, + "mfgCode": null, + "side": "server", + "type": "array", + "included": 1, + "storageOption": "External", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, + { + "name": "EventList", + "code": 65530, + "mfgCode": null, + "side": "server", + "type": "array", + "included": 1, + "storageOption": "External", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, + { + "name": "AttributeList", + "code": 65531, + "mfgCode": null, + "side": "server", + "type": "array", + "included": 1, + "storageOption": "External", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, { "name": "FeatureMap", "code": 65532, @@ -12122,6 +12186,70 @@ "maxInterval": 65534, "reportableChange": 0 }, + { + "name": "GeneratedCommandList", + "code": 65528, + "mfgCode": null, + "side": "server", + "type": "array", + "included": 1, + "storageOption": "External", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, + { + "name": "AcceptedCommandList", + "code": 65529, + "mfgCode": null, + "side": "server", + "type": "array", + "included": 1, + "storageOption": "External", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, + { + "name": "EventList", + "code": 65530, + "mfgCode": null, + "side": "server", + "type": "array", + "included": 1, + "storageOption": "External", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, + { + "name": "AttributeList", + "code": 65531, + "mfgCode": null, + "side": "server", + "type": "array", + "included": 1, + "storageOption": "External", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, { "name": "FeatureMap", "code": 65532, @@ -12188,5 +12316,6 @@ "endpointId": 65534, "networkId": 0 } - ] + ], + "log": [] } \ No newline at end of file diff --git a/examples/chef/devices/rootnode_roboticvacuumcleaner_1807ff0c49.matter b/examples/chef/devices/rootnode_roboticvacuumcleaner_1807ff0c49.matter index 754ef7632f1a2a..6bcbb7e9a1419b 100644 --- a/examples/chef/devices/rootnode_roboticvacuumcleaner_1807ff0c49.matter +++ b/examples/chef/devices/rootnode_roboticvacuumcleaner_1807ff0c49.matter @@ -1286,7 +1286,7 @@ endpoint 1 { callback attribute eventList; callback attribute attributeList; callback attribute featureMap default = 0; - ram attribute clusterRevision default = 1; + ram attribute clusterRevision default = 2; handle command ChangeToMode; handle command ChangeToModeResponse; @@ -1301,7 +1301,7 @@ endpoint 1 { callback attribute eventList; callback attribute attributeList; callback attribute featureMap default = 0; - ram attribute clusterRevision default = 1; + ram attribute clusterRevision default = 2; handle command ChangeToMode; handle command ChangeToModeResponse; diff --git a/examples/chef/devices/rootnode_roboticvacuumcleaner_1807ff0c49.zap b/examples/chef/devices/rootnode_roboticvacuumcleaner_1807ff0c49.zap index 6189b501edc472..8b70d3da6ebd45 100644 --- a/examples/chef/devices/rootnode_roboticvacuumcleaner_1807ff0c49.zap +++ b/examples/chef/devices/rootnode_roboticvacuumcleaner_1807ff0c49.zap @@ -2593,7 +2593,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "1", + "defaultValue": "2", "reportable": 1, "minInterval": 1, "maxInterval": 65534, @@ -2765,7 +2765,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "1", + "defaultValue": "2", "reportable": 1, "minInterval": 1, "maxInterval": 65534, @@ -3035,5 +3035,6 @@ "endpointId": 1, "networkId": 0 } - ] + ], + "log": [] } \ No newline at end of file diff --git a/examples/chef/devices/template.zap b/examples/chef/devices/template.zap index 90275e70c09a18..64ba6a87e47ef5 100644 --- a/examples/chef/devices/template.zap +++ b/examples/chef/devices/template.zap @@ -1876,14 +1876,14 @@ "id": 2, "name": "Anonymous Endpoint Type", "deviceTypeRef": { - "code": 0, + "code": 4293984259, "profileId": 259, "label": "MA-all-clusters-app", "name": "MA-all-clusters-app" }, "deviceTypes": [ { - "code": 0, + "code": 4293984259, "profileId": 259, "label": "MA-all-clusters-app", "name": "MA-all-clusters-app" @@ -1893,10 +1893,10 @@ 1 ], "deviceIdentifiers": [ - 0 + 4293984259 ], "deviceTypeName": "MA-all-clusters-app", - "deviceTypeCode": 0, + "deviceTypeCode": 4293984259, "deviceTypeProfileId": 259, "clusters": [ { @@ -1989,6 +1989,22 @@ "maxInterval": 65534, "reportableChange": 0 }, + { + "name": "EventList", + "code": 65530, + "mfgCode": null, + "side": "server", + "type": "array", + "included": 1, + "storageOption": "External", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, { "name": "AttributeList", "code": 65531, @@ -2177,6 +2193,22 @@ "maxInterval": 65534, "reportableChange": 0 }, + { + "name": "EventList", + "code": 65530, + "mfgCode": null, + "side": "server", + "type": "array", + "included": 1, + "storageOption": "External", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, { "name": "AttributeList", "code": 65531, @@ -2486,6 +2518,22 @@ "maxInterval": 65534, "reportableChange": 0 }, + { + "name": "EventList", + "code": 65530, + "mfgCode": null, + "side": "server", + "type": "array", + "included": 1, + "storageOption": "External", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, { "name": "AttributeList", "code": 65531, @@ -2640,6 +2688,22 @@ "maxInterval": 65534, "reportableChange": 0 }, + { + "name": "EventList", + "code": 65530, + "mfgCode": null, + "side": "server", + "type": "array", + "included": 1, + "storageOption": "External", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, { "name": "AttributeList", "code": 65531, @@ -2708,5 +2772,6 @@ "endpointId": 1, "networkId": 0 } - ] + ], + "log": [] } \ No newline at end of file diff --git a/examples/log-source-app/log-source-common/log-source-app.matter b/examples/log-source-app/log-source-common/log-source-app.matter index 38d55fe5884bfb..df7f7fe64beaef 100644 --- a/examples/log-source-app/log-source-common/log-source-app.matter +++ b/examples/log-source-app/log-source-common/log-source-app.matter @@ -429,7 +429,7 @@ server cluster OperationalCredentials = 62 { } endpoint 0 { - device type ma_all_clusters_app = 0, version 1; + device type ma_all_clusters_app = 4293984259, version 1; server cluster AccessControl { diff --git a/examples/log-source-app/log-source-common/log-source-app.zap b/examples/log-source-app/log-source-common/log-source-app.zap index 80c02f74e6941b..4be1a514aea258 100644 --- a/examples/log-source-app/log-source-common/log-source-app.zap +++ b/examples/log-source-app/log-source-common/log-source-app.zap @@ -37,14 +37,14 @@ "id": 1, "name": "Anonymous Endpoint Type", "deviceTypeRef": { - "code": 0, + "code": 4293984259, "profileId": 259, "label": "MA-all-clusters-app", "name": "MA-all-clusters-app" }, "deviceTypes": [ { - "code": 0, + "code": 4293984259, "profileId": 259, "label": "MA-all-clusters-app", "name": "MA-all-clusters-app" @@ -54,10 +54,10 @@ 1 ], "deviceIdentifiers": [ - 0 + 4293984259 ], "deviceTypeName": "MA-all-clusters-app", - "deviceTypeCode": 0, + "deviceTypeCode": 4293984259, "deviceTypeProfileId": 259, "clusters": [ { @@ -733,9 +733,10 @@ { "endpointTypeName": "Anonymous Endpoint Type", "endpointTypeIndex": 0, - "profileId": 598, + "profileId": 259, "endpointId": 0, "networkId": 0 } - ] + ], + "log": [] } \ No newline at end of file diff --git a/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter b/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter index 147650f8aff5e9..2aa072487318bf 100644 --- a/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter +++ b/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter @@ -1419,7 +1419,7 @@ endpoint 1 { } } endpoint 65534 { - device type ma_secondary_network_commissioning = 61442, version 1; + device type ma_secondary_network_commissioning = 4293984258, version 1; server cluster Descriptor { @@ -1427,6 +1427,10 @@ endpoint 65534 { callback attribute serverList; callback attribute clientList; callback attribute partsList; + callback attribute generatedCommandList; + callback attribute acceptedCommandList; + callback attribute eventList; + callback attribute attributeList; ram attribute featureMap default = 0; callback attribute clusterRevision default = 1; } @@ -1440,6 +1444,10 @@ endpoint 65534 { callback attribute lastNetworkingStatus; callback attribute lastNetworkID; callback attribute lastConnectErrorValue; + callback attribute generatedCommandList; + callback attribute acceptedCommandList; + callback attribute eventList; + callback attribute attributeList; callback attribute featureMap default = 0; callback attribute clusterRevision default = 1; diff --git a/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.zap b/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.zap index 9b6953e8f44e42..a4ef51e3817653 100644 --- a/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.zap +++ b/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.zap @@ -2898,14 +2898,14 @@ "id": 3, "name": "Anonymous Endpoint Type", "deviceTypeRef": { - "code": 61442, + "code": 4293984258, "profileId": 259, "label": "MA-secondary-network-commissioning", "name": "MA-secondary-network-commissioning" }, "deviceTypes": [ { - "code": 61442, + "code": 4293984258, "profileId": 259, "label": "MA-secondary-network-commissioning", "name": "MA-secondary-network-commissioning" @@ -2915,10 +2915,10 @@ 1 ], "deviceIdentifiers": [ - 61442 + 4293984258 ], "deviceTypeName": "MA-secondary-network-commissioning", - "deviceTypeCode": 61442, + "deviceTypeCode": 4293984258, "deviceTypeProfileId": 259, "clusters": [ { @@ -2993,6 +2993,70 @@ "maxInterval": 65534, "reportableChange": 0 }, + { + "name": "GeneratedCommandList", + "code": 65528, + "mfgCode": null, + "side": "server", + "type": "array", + "included": 1, + "storageOption": "External", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, + { + "name": "AcceptedCommandList", + "code": 65529, + "mfgCode": null, + "side": "server", + "type": "array", + "included": 1, + "storageOption": "External", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, + { + "name": "EventList", + "code": 65530, + "mfgCode": null, + "side": "server", + "type": "array", + "included": 1, + "storageOption": "External", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, + { + "name": "AttributeList", + "code": 65531, + "mfgCode": null, + "side": "server", + "type": "array", + "included": 1, + "storageOption": "External", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, { "name": "FeatureMap", "code": 65532, @@ -3237,6 +3301,70 @@ "maxInterval": 65534, "reportableChange": 0 }, + { + "name": "GeneratedCommandList", + "code": 65528, + "mfgCode": null, + "side": "server", + "type": "array", + "included": 1, + "storageOption": "External", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, + { + "name": "AcceptedCommandList", + "code": 65529, + "mfgCode": null, + "side": "server", + "type": "array", + "included": 1, + "storageOption": "External", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, + { + "name": "EventList", + "code": 65530, + "mfgCode": null, + "side": "server", + "type": "array", + "included": 1, + "storageOption": "External", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, + { + "name": "AttributeList", + "code": 65531, + "mfgCode": null, + "side": "server", + "type": "array", + "included": 1, + "storageOption": "External", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, { "name": "FeatureMap", "code": 65532, @@ -3296,5 +3424,6 @@ "endpointId": 65534, "networkId": 0 } - ] + ], + "log": [] } \ No newline at end of file diff --git a/examples/rvc-app/rvc-common/rvc-app.matter b/examples/rvc-app/rvc-common/rvc-app.matter index c5ffc7e7e4ef63..0bb7e9efb14a62 100644 --- a/examples/rvc-app/rvc-common/rvc-app.matter +++ b/examples/rvc-app/rvc-common/rvc-app.matter @@ -1192,7 +1192,7 @@ endpoint 1 { callback attribute eventList; callback attribute attributeList; callback attribute featureMap default = 0; - ram attribute clusterRevision default = 1; + ram attribute clusterRevision default = 2; handle command ChangeToMode; handle command ChangeToModeResponse; @@ -1206,7 +1206,7 @@ endpoint 1 { callback attribute eventList; callback attribute attributeList; callback attribute featureMap default = 0; - ram attribute clusterRevision default = 1; + ram attribute clusterRevision default = 2; handle command ChangeToMode; handle command ChangeToModeResponse; diff --git a/examples/rvc-app/rvc-common/rvc-app.zap b/examples/rvc-app/rvc-common/rvc-app.zap index c3a38c0e3d1708..d6d93ff4a7cc6b 100644 --- a/examples/rvc-app/rvc-common/rvc-app.zap +++ b/examples/rvc-app/rvc-common/rvc-app.zap @@ -2373,7 +2373,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "1", + "defaultValue": "2", "reportable": 1, "minInterval": 1, "maxInterval": 65534, @@ -2529,7 +2529,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "1", + "defaultValue": "2", "reportable": 1, "minInterval": 1, "maxInterval": 65534, @@ -2783,5 +2783,6 @@ "endpointId": 1, "networkId": 0 } - ] + ], + "log": [] } \ No newline at end of file diff --git a/kotlin-detect-config.yaml b/kotlin-detect-config.yaml index b5d9c53b5949bc..f9765e5eb11e3e 100644 --- a/kotlin-detect-config.yaml +++ b/kotlin-detect-config.yaml @@ -155,6 +155,7 @@ style: - "**/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/provisioning/EnterNetworkFragment.kt" - "**/examples/java-matter-controller/java/src/com/matter/controller/commands/common/MatterCommand.kt" - "**/src/controller/java/src/matter/onboardingpayload/Base38.kt" + - "**/src/controller/java/generated/java/**/*" ForbiddenComment: excludes: - "**/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/MultiAdminClientFragment.kt" @@ -246,6 +247,9 @@ naming: excludes: - "**/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/HistoryCommandAdapter.kt" - "**/src/controller/java/generated/java/**/*" + FunctionParameterNaming: + excludes: + - "**/src/controller/java/generated/java/**/*" TopLevelPropertyNaming: excludes: - "**/src/controller/java/generated/java/**/*" diff --git a/scripts/py_matter_idl/matter_idl/data_model_xml/handlers/handlers.py b/scripts/py_matter_idl/matter_idl/data_model_xml/handlers/handlers.py index 30326f0910303d..28a17d5f80a81d 100644 --- a/scripts/py_matter_idl/matter_idl/data_model_xml/handlers/handlers.py +++ b/scripts/py_matter_idl/matter_idl/data_model_xml/handlers/handlers.py @@ -64,19 +64,24 @@ def EndProcessing(self): # try to find the best size that fits # TODO: this is a pure heuristic. XML containing this would be better. - acceptable = {8, 16, 32} + # https://github.com/csa-data-model/projects/issues/345 + acceptable = {8, 16, 32, 64} for entry in self._bitmap.entries: - if entry.code > 0xFF: + if entry.code > 0xFF and 8 in acceptable: acceptable.remove(8) - if entry.code > 0xFFFF: + if entry.code > 0xFFFF and 16 in acceptable: acceptable.remove(16) + if entry.code > 0xFFFFFFFF and 32 in acceptable: + acceptable.remove(32) if 8 in acceptable: self._bitmap.base_type = "bitmap8" elif 16 in acceptable: self._bitmap.base_type = "bitmap16" - else: + elif 32 in acceptable: self._bitmap.base_type = "bitmap32" + else: + self._bitmap.base_type = "bitmap64" self._cluster.bitmaps.append(self._bitmap) @@ -221,19 +226,16 @@ def EndProcessing(self): # try to find the best enum size that fits out of enum8, enum32 and enum32 # TODO: this is a pure heuristic. XML containing this would be better. - acceptable = {8, 16, 32} + # https://github.com/csa-data-model/projects/issues/345 + acceptable = {8, 16} for entry in self._enum.entries: - if entry.code > 0xFF: + if entry.code > 0xFF and 8 in acceptable: acceptable.remove(8) - if entry.code > 0xFFFF: - acceptable.remove(16) if 8 in acceptable: self._enum.base_type = "enum8" - elif 16 in acceptable: - self._enum.base_type = "enum16" else: - self._enum.base_type = "enum32" + self._enum.base_type = "enum16" self._cluster.enums.append(self._enum) diff --git a/scripts/py_matter_idl/matter_idl/data_model_xml/handlers/parsing.py b/scripts/py_matter_idl/matter_idl/data_model_xml/handlers/parsing.py index fc1631080c3a7e..c2753d4221cab4 100644 --- a/scripts/py_matter_idl/matter_idl/data_model_xml/handlers/parsing.py +++ b/scripts/py_matter_idl/matter_idl/data_model_xml/handlers/parsing.py @@ -69,14 +69,14 @@ def ParseOptionalInt(value: str) -> Optional[int]: "uint48": "int48u", "uint52": "int52u", "uint64": "int64u", - # signed - "sint8": "int8s", - "sint16": "int16s", - "sint24": "int24s", - "sint32": "int32s", - "sint48": "int48s", - "sint52": "int52s", - "sint64": "int64s", + # signed (map to what zapxml/matter currently has) + "int8": "int8s", + "int16": "int16s", + "int24": "int24s", + "int32": "int32s", + "int48": "int48s", + "int52": "int52s", + "int64": "int64s", # other "bool": "boolean", "string": "char_string", diff --git a/scripts/py_matter_idl/matter_idl/generators/kotlin/MatterClusters.jinja b/scripts/py_matter_idl/matter_idl/generators/kotlin/MatterClusters.jinja new file mode 100644 index 00000000000000..52dc2021b42189 --- /dev/null +++ b/scripts/py_matter_idl/matter_idl/generators/kotlin/MatterClusters.jinja @@ -0,0 +1,168 @@ +{%- macro encode_value(source, encodable, depth) -%} + {%- if encodable.is_nullable and encodable.is_optional -%} + {{encode_value(source, encodable.without_nullable().without_optional(), depth + 1)}}? + {%- elif encodable.is_nullable -%} + {{encode_value(source, encodable.without_nullable(), depth + 1)}}? + {%- elif encodable.is_optional -%} + {{encode_value(source, encodable.without_optional(), depth + 1)}}? + {%- elif encodable.is_list -%} + ArrayList<{{encode_value(source, encodable.without_list(), depth + 1)}}> + {%- elif encodable.is_struct -%} + {%- set struct = encodable.get_underlying_struct() -%} + ChipStructs.{{source.name}}Cluster{{struct.name}} + {%- else -%} + {{encodable.boxed_java_type}} + {%- endif -%} +{%- endmacro -%} + +{%- macro encode_value_without_optional(source, encodable, depth) -%} + {%- if encodable.is_nullable -%} + {{encode_value_without_optional(source, encodable.without_nullable(), depth + 1)}}? + {%- elif encodable.is_list -%} + List<{{encode_value_without_optional(source, encodable.without_list(), depth + 1)}}> + {%- elif encodable.is_struct -%} + {%- set struct = encodable.get_underlying_struct() -%} + ChipStructs.{{source.name}}Cluster{{struct.name}} + {%- else -%} + {{encodable.boxed_java_type}} + {%- endif -%} +{%- endmacro -%} + +{%- macro encode_value_without_optional_nullable(source, encodable, depth) -%} + {%- if encodable.is_list -%} + ArrayList<{{encode_value_without_optional_nullable(source, encodable.without_list(), depth + 1)}}> + {%- elif encodable.is_struct -%} + {%- set struct = encodable.get_underlying_struct() -%} + ChipStructs.{{source.name}}Cluster{{struct.name}} + {%- else -%} + {{encodable.boxed_java_type}} + {%- endif -%} +{%- endmacro -%} + +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList +{% set typeLookup = idl | createLookupContext(cluster) %} +class {{cluster.name}}Cluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = {{cluster.code}}u + } +{% for command in cluster.commands | sort(attribute='code') -%} +{%- set callbackName = command | javaCommandCallbackName() -%} +{%- if not command.is_timed_invoke %} + fun {{command.name | lowfirst_except_acronym}}(callback: {{callbackName}}Callback +{%- if command.input_param -%} +{%- for field in (cluster.structs | named(command.input_param)).fields -%} + , {{field.name | lowfirst_except_acronym}}: {{encode_value(cluster, field | asEncodable(typeLookup), 0)}} +{%- endfor -%} +{%- endif -%} + ) { + // Implementation needs to be added here + } +{%- endif %} + + fun {{command.name | lowfirst_except_acronym}}(callback: {{callbackName}}Callback +{%- if command.input_param -%} +{%- for field in (cluster.structs | named(command.input_param)).fields -%} + , {{field.name | lowfirst_except_acronym}}: {{encode_value(cluster, field | asEncodable(typeLookup), 0)}} +{%- endfor -%} +{%- endif -%} + , timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } +{% endfor %} +{%- set already_handled_command = [] -%} +{%- for command in cluster.commands | sort(attribute='code') -%} +{%- if command | isCommandNotDefaultCallback() -%} +{%- set callbackName = command | javaCommandCallbackName() -%} +{%- if callbackName not in already_handled_command %} + interface {{callbackName}}Callback { + fun onSuccess( +{%- for field in (cluster.structs | named(command.output_param)).fields -%} + {{field.name | lowfirst_except_acronym}}: {{encode_value(cluster, field | asEncodable(typeLookup), 0)}}{% if not loop.last %}, {% endif %} +{%- endfor -%} + ) + fun onError(error: Exception) + } +{% if already_handled_command.append(callbackName) -%} +{%- endif -%} +{%- endif -%} +{%- endif -%} +{%- endfor %} +{%- set already_handled_attribute = [] -%} +{% for attribute in cluster.attributes | rejectattr('definition', 'is_field_global_name', typeLookup) %} +{%- set encodable = attribute.definition | asEncodable(typeLookup) -%} +{%- set interfaceName = attribute | javaAttributeCallbackName(typeLookup) -%} +{%- if interfaceName not in already_handled_attribute %} + interface {{interfaceName}} { + fun onSuccess(value: {{encode_value(cluster, encodable, 0)}}) + fun onError(ex: Exception) + fun onSubscriptionEstablished(subscriptionId: Long) + } +{% if already_handled_attribute.append(interfaceName) -%} +{#- This block does nothing, it only exists to append to already_handled_attribute. -#} +{%- endif -%} +{%- endif -%} +{% endfor -%} +{% for attribute in cluster.attributes | sort(attribute='code') %} + fun read{{ attribute.definition.name | upfirst }}Attribute( + callback: {{ attribute | javaAttributeCallbackName(typeLookup) }} + ) { + // Implementation needs to be added here + } +{% if attribute | isFabricScopedList(typeLookup) %} + fun read{{ attribute.definition.name | upfirst }}AttributeWithFabricFilter( + callback: {{ attribute | javaAttributeCallbackName(typeLookup) }}, + isFabricFiltered: Boolean + ) { + // Implementation needs to be added here + } + +{% endif -%} +{%- if attribute.is_writable %} +{%- set encodable = attribute.definition | asEncodable(typeLookup) -%} +{%- set encodable2 = attribute.definition | asEncodable(typeLookup) -%} +{%- if not attribute.requires_timed_write %} + fun write{{ attribute.definition.name | upfirst }}Attribute( + callback: DefaultClusterCallback, + value: {{ encode_value_without_optional_nullable(cluster, encodable, 0) }} + ) { + // Implementation needs to be added here + } +{% endif %} + fun write{{ attribute.definition.name | upfirst }}Attribute( + callback: DefaultClusterCallback, + value: {{ encode_value_without_optional_nullable(cluster, encodable2, 0) }}, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } +{% endif %} +{%- if attribute.is_subscribable %} + fun subscribe{{ attribute.definition.name | upfirst }}Attribute( + callback: {{ attribute | javaAttributeCallbackName(typeLookup) }}, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +{% endif -%} +{%- endfor -%} +} diff --git a/scripts/py_matter_idl/matter_idl/generators/kotlin/MatterFiles_gni.jinja b/scripts/py_matter_idl/matter_idl/generators/kotlin/MatterFiles_gni.jinja new file mode 100644 index 00000000000000..b9fbf099f29eed --- /dev/null +++ b/scripts/py_matter_idl/matter_idl/generators/kotlin/MatterFiles_gni.jinja @@ -0,0 +1,9 @@ +import("//build_overrides/build.gni") +import("//build_overrides/chip.gni") + +matter_clusters_sources = [ +{%- for cluster in clientClusters | sort(attribute='name') %} +{%- set typeLookup = idl | createLookupContext(cluster) %} + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/{{cluster.name}}Cluster.kt", +{%- endfor %} +] \ No newline at end of file diff --git a/scripts/py_matter_idl/matter_idl/generators/kotlin/__init__.py b/scripts/py_matter_idl/matter_idl/generators/kotlin/__init__.py new file mode 100644 index 00000000000000..15e2f7c83a9b4b --- /dev/null +++ b/scripts/py_matter_idl/matter_idl/generators/kotlin/__init__.py @@ -0,0 +1,691 @@ +#!/usr/bin/env python +# Copyright (c) 2023 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 dataclasses +import enum +import logging +import os +from typing import List, Optional, Set + +from matter_idl.generators import CodeGenerator, GeneratorStorage +from matter_idl.generators.types import (BasicInteger, BasicString, FundamentalType, IdlBitmapType, IdlEnumType, IdlType, + ParseDataType, TypeLookupContext) +from matter_idl.matter_idl_types import (Attribute, Cluster, ClusterSide, Command, DataType, Field, FieldQuality, Idl, Struct, + StructQuality, StructTag) +from stringcase import capitalcase + + +@dataclasses.dataclass +class GenerateTarget: + template: str + output_name: str + + +@dataclasses.dataclass +class GlobalType: + name: str # java name + cpp_type: str # underlying type + idl_type: str # assumed IDL type + + +# types that java should see globally +_GLOBAL_TYPES = [ + GlobalType("Boolean", "bool", "boolean"), + GlobalType("CharString", "const chip::CharSpan", "char_string"), + GlobalType("Double", "double", "double"), + GlobalType("Float", "float", "single"), + GlobalType("Int8s", "int8_t", "int8s"), + GlobalType("Int8u", "uint8_t", "int8u"), + GlobalType("Int16s", "int16_t", "int16s"), + GlobalType("Int16u", "uint16_t", "int16u"), + GlobalType("Int32s", "int32_t", "int32s"), + GlobalType("Int32u", "uint32_t", "int32u"), + GlobalType("Int64s", "int64_t", "int64s"), + GlobalType("Int64u", "uint64_t", "int64u"), + GlobalType("OctetString", "const chip::ByteSpan", "octet_string"), +] + + +def _UnderlyingType(field: Field, context: TypeLookupContext) -> Optional[str]: + actual = ParseDataType(field.data_type, context) + if isinstance(actual, (IdlEnumType, IdlBitmapType)): + actual = actual.base_type + + if isinstance(actual, BasicString): + if actual.is_binary: + return 'OctetString' + else: + return 'CharString' + elif isinstance(actual, BasicInteger): + if actual.is_signed: + return "Int{}s".format(actual.power_of_two_bits) + else: + return "Int{}u".format(actual.power_of_two_bits) + elif isinstance(actual, FundamentalType): + if actual == FundamentalType.BOOL: + return 'Boolean' + elif actual == FundamentalType.FLOAT: + return 'Float' + elif actual == FundamentalType.DOUBLE: + return 'Double' + else: + logging.warn('Unknown fundamental type: %r' % actual) + + return None + + +def FieldToGlobalName(field: Field, context: TypeLookupContext) -> Optional[str]: + """Global names are used for generic callbacks shared across + all clusters (e.g. for bool/float/uint32 and similar) + """ + if field.is_list: + return None # lists are always specific per cluster + + if FieldQuality.NULLABLE & field.qualities: + return None + + return _UnderlyingType(field, context) + + +# Based on atomicType in ZAP: +# src-electron/generator/matter/app/zap-templates/common/override.js +_KNOWN_DECODABLE_TYPES = { + 'action_id': 'chip::ActionId', + 'attrib_id': 'chip::AttributeId', + 'cluster_id': 'chip::ClusterId', + 'command_id': 'chip::CommandId', + 'data_ver': 'chip::DataVersion', + 'devtype_id': 'chip::DeviceTypeId', + 'endpoint_no': 'chip::EndpointId', + 'eui64': 'chip::NodeId', + 'event_id': 'chip::EventId', + 'event_no': 'chip::EventNumber', + 'fabric_id': 'chip::FabricId', + 'fabric_idx': 'chip::FabricIndex', + 'fabric_idx': 'chip::FabricIndex', + 'field_id': 'chip::FieldId', + 'group_id': 'chip::GroupId', + 'node_id': 'chip::NodeId', + 'percent': 'chip::Percent', + 'percent100ths': 'chip::Percent100ths', + 'transaction_id': 'chip::TransactionId', + 'vendor_id': 'chip::VendorId', + + # non-named enums + 'enum8': 'uint8_t', + 'enum16': 'uint16_t', + 'enum32': 'uint32_t', + 'enum64': 'uint64_t', +} + + +def GlobalNameToJavaName(name: str) -> str: + if name in {'Int8u', 'Int8s', 'Int16u', 'Int16s'}: + return 'Integer' + + if name.startswith('Int'): + return 'Long' + + # Double/Float/Booleans/CharString/OctetString + return name + + +def DelegatedCallbackName(attr: Attribute, context: TypeLookupContext) -> str: + """ + Figure out what callback name to use for delegate callback construction. + """ + global_name = FieldToGlobalName(attr.definition, context) + + if global_name: + return 'Delegated{}AttributeCallback'.format(GlobalNameToJavaName(global_name)) + + return 'Delegated{}Cluster{}AttributeCallback'.format(context.cluster.name, capitalcase(attr.definition.name)) + + +def ChipClustersCallbackName(attr: Attribute, context: TypeLookupContext) -> str: + """ + Figure out what callback name to use when building a ChipCluster.*AttributeCallback + in java codegen. + """ + global_name = FieldToGlobalName(attr.definition, context) + + if global_name: + return 'ChipClusters.{}AttributeCallback'.format(GlobalNameToJavaName(global_name)) + + return 'ChipClusters.{}Cluster.{}AttributeCallback'.format(context.cluster.name, capitalcase(attr.definition.name)) + + +def CallbackName(attr: Attribute, context: TypeLookupContext) -> str: + """ + Figure out what callback name to use when a variable requires a read callback. + + These are split into native types, like Boolean/Float/Double/CharString, where + one callback type can support anything. + + For specific types (e.g. A struct) codegen will generate its own callback name + specific to that type. + """ + global_name = FieldToGlobalName(attr.definition, context) + + if global_name: + return 'CHIP{}AttributeCallback'.format(capitalcase(global_name)) + + return 'CHIP{}{}AttributeCallback'.format( + capitalcase(context.cluster.name), + capitalcase(attr.definition.name) + ) + + +def CommandCallbackName(command: Command, cluster: Cluster): + if command.output_param.lower() == 'defaultsuccess': + return 'DefaultSuccess' + return '{}Cluster{}'.format(cluster.name, command.output_param) + + +def JavaCommandCallbackName(command: Command): + if command.output_param.lower() == 'defaultsuccess': + return 'DefaultCluster' + return '{}'.format(command.output_param) + + +def IsCommandNotDefaultCallback(command: Command) -> bool: + return command.output_param.lower() != 'defaultsuccess' + + +def JavaAttributeCallbackName(attr: Attribute, context: TypeLookupContext) -> str: + """ + Figure out what callback name to use when building a *AttributeCallback + in java codegen. + """ + global_name = FieldToGlobalName(attr.definition, context) + + if global_name: + return '{}AttributeCallback'.format(GlobalNameToJavaName(global_name)) + + return '{}AttributeCallback'.format(capitalcase(attr.definition.name)) + + +def IsFieldGlobalName(field: Field, context: TypeLookupContext) -> bool: + global_name = FieldToGlobalName(field, context) + if global_name: + return True + + return False + + +def attributesWithSupportedCallback(attrs, context: TypeLookupContext): + for attr in attrs: + # Attributes will be generated for all types + # except non-list structures + if not attr.definition.is_list: + underlying = ParseDataType(attr.definition.data_type, context) + if isinstance(underlying, IdlType): + continue + + yield attr + + +def _IsUsingGlobalCallback(field: Field, context: TypeLookupContext): + """Test to determine if the data type of a field can use one of + the global callbacks (i.e. it is a basic double/integer/bool etc.) + """ + if field.is_list: + return False + + if field.is_nullable: + return False + + return field.data_type.name in { + "boolean", + "single", + "double", + "int8s", + "int8u", + "int16s", + "int16u", + "int24s", + "int24u", + "int32s", + "int32u", + "int40s", + "int40u", + "int48s", + "int48u", + "int56s", + "int56u", + "int64s", + "int64u", + "enum8", + "enum16", + "enum32", + "enum64", + "bitmap8", + "bitmap16", + "bitmap32", + "bitmap64", + "char_string", + "long_char_string", + "octet_string", + "long_octet_string", + } + + +def NamedFilter(choices: List, name: str): + for choice in choices: + if choice.name == name: + return choice + raise Exception("No item named %s in %r" % (name, choices)) + + +def ToBoxedJavaType(field: Field): + if field.is_optional: + return 'jobject' + elif field.data_type.name.lower() in ['octet_string', 'long_octet_string']: + return 'jbyteArray' + elif field.data_type.name.lower() in ['char_string', 'long_char_string']: + return 'jstring' + else: + return 'jobject' + + +def LowercaseFirst(name: str) -> str: + """ + Change the first letter of a string to lowercase as long as the 2nd + letter is not uppercase. + + Can be used for variable naming, eg insider structures, codegen will + call things "Foo foo" (notice variable name is lowercase). + """ + if len(name) > 1 and name[1].lower() != name[1]: + # Odd workaround: PAKEVerifier should not become pAKEVerifier + return name + return name[0].lower() + name[1:] + + +class EncodableValueAttr(enum.Enum): + LIST = enum.auto() + NULLABLE = enum.auto() + OPTIONAL = enum.auto() + + +class EncodableValue: + """ + Contains helpers for encoding values, specifically lookups + for optionality, lists and recursive data type lookups within + the IDL and cluster + + Intended use is to be able to: + - derive types (see clone and without_* methods) such that codegen + can implement things like 'if x != null { treat non-null x}' + - Java specific conversions: get boxed types and JNI string signautes + for the underlying types. + """ + + def __init__(self, context: TypeLookupContext, data_type: DataType, attrs: Set[EncodableValueAttr]): + self.context = context + self.data_type = data_type + self.attrs = attrs + + @property + def is_nullable(self): + return EncodableValueAttr.NULLABLE in self.attrs + + @property + def is_optional(self): + return EncodableValueAttr.OPTIONAL in self.attrs + + @property + def is_list(self): + return EncodableValueAttr.LIST in self.attrs + + @property + def is_octet_string(self): + return self.data_type.name.lower() in ['octet_string', 'long_octet_string'] + + @property + def is_char_string(self): + return self.data_type.name.lower() in ['char_string', 'long_char_string'] + + @property + def is_struct(self): + return self.context.is_struct_type(self.data_type.name) + + @property + def is_enum(self): + return self.context.is_enum_type(self.data_type.name) + + @property + def is_bitmap(self): + return self.context.is_bitmap_type(self.data_type.name) + + @property + def is_untyped_bitmap(self): + return self.context.is_untyped_bitmap_type(self.data_type.name) + + def clone(self): + return EncodableValue(self.context, self.data_type, self.attrs) + + def without_nullable(self): + result = self.clone() + result.attrs.remove(EncodableValueAttr.NULLABLE) + return result + + def without_optional(self): + result = self.clone() + result.attrs.remove(EncodableValueAttr.OPTIONAL) + return result + + def without_list(self): + result = self.clone() + result.attrs.remove(EncodableValueAttr.LIST) + return result + + def get_underlying_struct(self): + s = self.context.find_struct(self.data_type.name) + if not s: + raise Exception("Struct %s not found" % self.data_type.name) + return s + + def get_underlying_enum(self): + e = self.context.find_enum(self.data_type.name) + if not e: + raise Exception("Enum %s not found" % self.data_type.name) + return e + + @property + def boxed_java_type(self): + t = ParseDataType(self.data_type, self.context) + + if isinstance(t, FundamentalType): + if t == FundamentalType.BOOL: + return "Boolean" + elif t == FundamentalType.FLOAT: + return "Float" + elif t == FundamentalType.DOUBLE: + return "Double" + else: + raise Exception("Unknown fundamental type") + elif isinstance(t, BasicInteger): + # the >= 3 will include int24_t to be considered "long" + if t.byte_count >= 3: + return "Long" + else: + return "Integer" + elif isinstance(t, BasicString): + if t.is_binary: + return "ByteArray" + else: + return "String" + elif isinstance(t, IdlEnumType): + if t.base_type.byte_count >= 3: + return "Long" + else: + return "Integer" + elif isinstance(t, IdlBitmapType): + if t.base_type.byte_count >= 3: + return "Long" + else: + return "Integer" + else: + return "Object" + + @property + def kotlin_type(self): + t = ParseDataType(self.data_type, self.context) + + if isinstance(t, FundamentalType): + if t == FundamentalType.BOOL: + return "Boolean" + elif t == FundamentalType.FLOAT: + return "Float" + elif t == FundamentalType.DOUBLE: + return "Double" + else: + raise Exception("Unknown fundamental type") + elif isinstance(t, BasicInteger): + # the >= 3 will include int24_t to be considered "long" + if t.is_signed: + if t.byte_count >= 3: + return "Long" + else: + return "Int" + else: + if t.byte_count >= 3: + return "ULong" + else: + return "UInt" + elif isinstance(t, BasicString): + if t.is_binary: + return "ByteArray" + else: + return "String" + elif isinstance(t, IdlEnumType): + if t.base_type.byte_count >= 3: + return "ULong" + else: + return "UInt" + elif isinstance(t, IdlBitmapType): + if t.base_type.byte_count >= 3: + return "ULong" + else: + return "UInt" + else: + return "Any" + + @property + def unboxed_java_signature(self): + if self.is_optional or self.is_list: + raise Exception("Not a basic type: %r" % self) + + t = ParseDataType(self.data_type, self.context) + + if isinstance(t, FundamentalType): + if t == FundamentalType.BOOL: + return "Z" + elif t == FundamentalType.FLOAT: + return "F" + elif t == FundamentalType.DOUBLE: + return "D" + else: + raise Exception("Unknown fundamental type") + elif isinstance(t, BasicInteger): + if t.byte_count >= 3: + return "J" + else: + return "I" + else: + raise Exception("Not a basic type: %r" % self) + + @property + def boxed_java_signature(self): + # Optional takes precedence over list - Optional compiles down to just java.util.Optional. + if self.is_optional: + return "Ljava/util/Optional;" + + if self.is_list: + return "Ljava/util/ArrayList;" + + t = ParseDataType(self.data_type, self.context) + + if isinstance(t, FundamentalType): + if t == FundamentalType.BOOL: + return "Ljava/lang/Boolean;" + elif t == FundamentalType.FLOAT: + return "Ljava/lang/Float;" + elif t == FundamentalType.DOUBLE: + return "Ljava/lang/Double;" + else: + raise Exception("Unknown fundamental type") + elif isinstance(t, BasicInteger): + if t.byte_count >= 3: + return "Ljava/lang/Long;" + else: + return "Ljava/lang/Integer;" + elif isinstance(t, BasicString): + if t.is_binary: + return "[B" + else: + return "Ljava/lang/String;" + elif isinstance(t, IdlEnumType): + if t.base_type.byte_count >= 3: + return "Ljava/lang/Long;" + else: + return "Ljava/lang/Integer;" + elif isinstance(t, IdlBitmapType): + if t.base_type.byte_count >= 3: + return "Ljava/lang/Long;" + else: + return "Ljava/lang/Integer;" + else: + return "Lchip/devicecontroller/ChipStructs${}Cluster{};".format(self.context.cluster.name, self.data_type.name) + + +def GlobalEncodableValueFrom(typeName: str, context: TypeLookupContext) -> EncodableValue: + """ + Filter to convert a global type name to an encodable value + """ + return EncodableValue(context, DataType(name=typeName), set()) + + +def EncodableValueFrom(field: Field, context: TypeLookupContext) -> EncodableValue: + """ + Filter to convert a standard field to an EncodableValue. + + This converts the AST information (field name/info + lookup context) into + a java-generator specific wrapper that can be manipulated and + queried for properties like java native name or JNI string signature. + """ + attrs = set() + + if field.is_optional: + attrs.add(EncodableValueAttr.OPTIONAL) + + if field.is_nullable: + attrs.add(EncodableValueAttr.NULLABLE) + + if field.is_list: + attrs.add(EncodableValueAttr.LIST) + + return EncodableValue(context, field.data_type, attrs) + + +def CreateLookupContext(idl: Idl, cluster: Optional[Cluster]) -> TypeLookupContext: + """ + A filter to mark a lookup context to be within a specific cluster. + + This is used to specify how structure/enum/other names are looked up. + Generally one looks up within the specific cluster then if cluster does + not contain a definition, we loop at global namespacing. + """ + return TypeLookupContext(idl, cluster) + + +def CanGenerateSubscribe(attr: Attribute, lookup: TypeLookupContext) -> bool: + """ + Filter that returns if an attribute can be subscribed to. + + Uses the given attribute and the lookupContext to figure out the attribute + type. + """ + # For backwards compatibility, we do not subscribe to structs + # (although list of structs is ok ...) + if attr.definition.is_list: + return True + + return not lookup.is_struct_type(attr.definition.data_type.name) + + +def IsFabricScopedList(attr: Attribute, lookup: TypeLookupContext) -> bool: + if not attr.definition.is_list: + return False + + struct = lookup.find_struct(attr.definition.data_type.name) + return struct and struct.qualities == StructQuality.FABRIC_SCOPED + + +def IsResponseStruct(s: Struct) -> bool: + return s.tag == StructTag.RESPONSE + + +class __KotlinCodeGenerator(CodeGenerator): + """ + Code generation for kotlin-specific files. + + Registers filters used by all kotlin generators. + """ + + def __init__(self, storage: GeneratorStorage, idl: Idl, **kargs): + """ + Inintialization is specific for kotlin generation and will add + filters as required by the kotlin .jinja templates to function. + """ + super().__init__(storage, idl, fs_loader_searchpath=os.path.dirname(__file__)) + + self.jinja_env.filters['attributesWithCallback'] = attributesWithSupportedCallback + self.jinja_env.filters['callbackName'] = CallbackName + self.jinja_env.filters['chipClustersCallbackName'] = ChipClustersCallbackName + self.jinja_env.filters['delegatedCallbackName'] = DelegatedCallbackName + self.jinja_env.filters['commandCallbackName'] = CommandCallbackName + self.jinja_env.filters['javaCommandCallbackName'] = JavaCommandCallbackName + self.jinja_env.filters['isCommandNotDefaultCallback'] = IsCommandNotDefaultCallback + self.jinja_env.filters['javaAttributeCallbackName'] = JavaAttributeCallbackName + self.jinja_env.filters['named'] = NamedFilter + self.jinja_env.filters['toBoxedJavaType'] = ToBoxedJavaType + self.jinja_env.filters['lowercaseFirst'] = LowercaseFirst + self.jinja_env.filters['asEncodable'] = EncodableValueFrom + self.jinja_env.filters['globalAsEncodable'] = GlobalEncodableValueFrom + self.jinja_env.filters['createLookupContext'] = CreateLookupContext + self.jinja_env.filters['canGenerateSubscribe'] = CanGenerateSubscribe + self.jinja_env.filters['isFabricScopedList'] = IsFabricScopedList + + self.jinja_env.tests['is_response_struct'] = IsResponseStruct + self.jinja_env.tests['is_using_global_callback'] = _IsUsingGlobalCallback + self.jinja_env.tests['is_field_global_name'] = IsFieldGlobalName + + +class KotlinClassGenerator(__KotlinCodeGenerator): + """Generates .kt files """ + + def __init__(self, *args, **kargs): + super().__init__(*args, **kargs) + + def internal_render_all(self): + """ + Renders .kt files required for kotlin matter support + """ + + clientClusters = [ + c for c in self.idl.clusters if c.side == ClusterSide.CLIENT] + + self.internal_render_one_output( + template_path="MatterFiles_gni.jinja", + output_file_name="java/matter/devicecontroller/cluster/files.gni", + vars={ + 'idl': self.idl, + 'clientClusters': clientClusters, + } + ) + + # Generate a `.kt` file for each cluster. + for cluster in clientClusters: + output_name = f"java/matter/devicecontroller/cluster/clusters/{cluster.name}Cluster.kt" + self.internal_render_one_output( + template_path="MatterClusters.jinja", + output_file_name=output_name, + vars={ + 'idl': self.idl, + 'cluster': cluster, + } + ) diff --git a/scripts/py_matter_idl/matter_idl/generators/registry.py b/scripts/py_matter_idl/matter_idl/generators/registry.py index b02b9bbcf12f0b..c91981e8ad7391 100644 --- a/scripts/py_matter_idl/matter_idl/generators/registry.py +++ b/scripts/py_matter_idl/matter_idl/generators/registry.py @@ -19,6 +19,7 @@ from matter_idl.generators.cpp.tlvmeta import TLVMetaDataGenerator from matter_idl.generators.idl import IdlGenerator from matter_idl.generators.java import JavaClassGenerator, JavaJNIGenerator +from matter_idl.generators.kotlin import KotlinClassGenerator class CodeGenerator(enum.Enum): @@ -29,6 +30,7 @@ class CodeGenerator(enum.Enum): """ JAVA_JNI = enum.auto() JAVA_CLASS = enum.auto() + KOTLIN_CLASS = enum.auto() CPP_APPLICATION = enum.auto() CPP_TLVMETA = enum.auto() IDL = enum.auto() @@ -39,6 +41,8 @@ def Create(self, *args, **kargs): return JavaJNIGenerator(*args, **kargs) elif self == CodeGenerator.JAVA_CLASS: return JavaClassGenerator(*args, **kargs) + elif self == CodeGenerator.KOTLIN_CLASS: + return KotlinClassGenerator(*args, **kargs) elif self == CodeGenerator.CPP_APPLICATION: return CppApplicationGenerator(*args, **kargs) elif self == CodeGenerator.CPP_TLVMETA: @@ -72,6 +76,7 @@ def FromString(name): GENERATORS = { 'java-jni': CodeGenerator.JAVA_JNI, 'java-class': CodeGenerator.JAVA_CLASS, + 'kotlin-class': CodeGenerator.KOTLIN_CLASS, 'cpp-app': CodeGenerator.CPP_APPLICATION, 'cpp-tlvmeta': CodeGenerator.CPP_TLVMETA, 'idl': CodeGenerator.IDL, diff --git a/scripts/py_matter_idl/matter_idl/test_data_model_xml.py b/scripts/py_matter_idl/matter_idl/test_data_model_xml.py index 290e3ea234ddda..ec2f0cae33c990 100755 --- a/scripts/py_matter_idl/matter_idl/test_data_model_xml.py +++ b/scripts/py_matter_idl/matter_idl/test_data_model_xml.py @@ -72,6 +72,119 @@ def testBasicInput(self): self.assertEqual(xml_idl, expected_idl) + def testSignedTypes(self): + + xml_idl = XmlToIdl(''' + + + + + + + + + + + + + + + + + ''') + + expected_idl = IdlTextToIdl(''' + client cluster Test = 123 { + readonly attribute int16s first = 0; + readonly attribute int16s second = 1; + readonly attribute int32u third = 2; + + readonly attribute attrib_id attributeList[] = 65531; + readonly attribute event_id eventList[] = 65530; + readonly attribute command_id acceptedCommandList[] = 65529; + readonly attribute command_id generatedCommandList[] = 65528; + readonly attribute bitmap32 featureMap = 65532; + readonly attribute int16u clusterRevision = 65533; + } + ''') + + self.assertEqual(xml_idl, expected_idl) + + def testEnumRange(self): + # Check heuristic for enum ranges + + xml_idl = XmlToIdl(''' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ''') + + expected_idl = IdlTextToIdl(''' + client cluster Test = 123 { + bitmap Basic: bitmap8 { + kOne = 0x01; + kTwo = 0x02; + kThree = 0x04; + } + + bitmap OneLarge: bitmap16 { + kTen = 0x400; + } + + bitmap LargeBitmap: bitmap32 { + kOne = 0x1; + kTen = 0x400; + kTwenty = 0x100000; + } + + bitmap HugeBitmap: bitmap64 { + kForty = 0x10000000000; + } + + readonly attribute attrib_id attributeList[] = 65531; + readonly attribute event_id eventList[] = 65530; + readonly attribute command_id acceptedCommandList[] = 65529; + readonly attribute command_id generatedCommandList[] = 65528; + readonly attribute bitmap32 featureMap = 65532; + readonly attribute int16u clusterRevision = 65533; + } + ''') + + self.assertEqual(xml_idl, expected_idl) + def testAttributes(self): # Validate an attribute with a type list # This is a very stripped down version from the original AudioOutput.xml diff --git a/scripts/setup/constraints.txt b/scripts/setup/constraints.txt index a80c8a297d9fa8..b0e9aed4ae60e7 100644 --- a/scripts/setup/constraints.txt +++ b/scripts/setup/constraints.txt @@ -2,32 +2,24 @@ # This file is autogenerated by pip-compile with Python 3.11 # by the following command: # -# pip-compile --allow-unsafe --output-file=constraints.txt --resolver=backtracking --strip-extras requirements.all.txt +# pip-compile --allow-unsafe --output-file=constraints.txt --strip-extras requirements.all.txt # anytree==2.8.0 # via -r requirements.memory.txt appdirs==1.4.4 - # via - # -r requirements.all.txt - # mbed-os-tools + # via -r requirements.all.txt appnope==0.1.3 # via -r requirements.all.txt asttokens==2.2.1 # via stack-data attrs==22.2.0 - # via - # jsonschema - # pytest + # via jsonschema backcall==0.2.0 # via ipython -beautifulsoup4==4.11.2 - # via mbed-os-tools -bflb-crypto-plus==1.0 - # via bflb-iot-tool -bflb-iot-tool==1.8.3 - # via -r requirements.bouffalolab.txt bitstring==3.1.9 - # via -r requirements.esp32.txt + # via + # -r requirements.esp32.txt + # esptool build==0.8.0 # via # -r requirements.all.txt @@ -37,9 +29,7 @@ cachecontrol==0.12.11 cbor==1.0.0 # via -r requirements.zephyr.txt cbor2==5.4.6 - # via - # -r requirements.zephyr.txt - # imgtool + # via -r requirements.zephyr.txt certifi==2022.12.7 # via requests cffi==1.15.1 @@ -51,33 +41,33 @@ click==8.1.3 # -r requirements.build.txt # -r requirements.esp32.txt # idf-component-manager - # imgtool - # mbed-tools # pip-tools colorama==0.4.6 # via # -r requirements.all.txt # idf-component-manager - # mbed-os-tools # west coloredlogs==15.0.1 # via -r requirements.all.txt construct==2.10.54 - # via -r requirements.esp32.txt + # via + # -r requirements.esp32.txt + # esp-coredump contextlib2==21.6.0 # via # idf-component-manager # schema cryptography==39.0.2 # via + # -c constraints.esp32.txt # -r requirements.all.txt - # imgtool + # esptool cxxfilt==0.3.0 # via -r requirements.memory.txt decorator==5.1.1 # via ipython diskcache==5.4.0 - # via -r requirements.yaml_tests.txt + # via -r requirements.all.txt distlib==0.3.6 # via virtualenv docopt==0.6.2 @@ -85,86 +75,55 @@ docopt==0.6.2 ecdsa==0.18.0 # via # -r requirements.esp32.txt - # -r requirements.ti.txt - # bflb-iot-tool + # esptool +esp-coredump==1.7.0 + # via esp-idf-monitor +esp-idf-kconfig==1.2.0 + # via -r requirements.esp32.txt +esp-idf-monitor==1.1.1 + # via -r requirements.esp32.txt +esptool==4.6.2 + # via esp-coredump executing==1.2.0 # via stack-data fastcore==1.5.28 # via ghapi -fasteners==0.18 - # via mbed-os-tools filelock==3.9.0 # via virtualenv future==0.18.3 # via # -r requirements.esp32.txt - # -r requirements.telink.txt # idf-component-manager - # mbed-os-tools - # pylink-square ghapi==1.0.3 # via -r requirements.memory.txt -gitdb==4.0.10 - # via gitpython -gitpython==3.1.31 ; platform_machine != "aarch64" and sys_platform == "linux" - # via - # -r requirements.mbed.txt - # mbed-tools humanfriendly==10.0 # via coloredlogs idf-component-manager==1.2.2 # via -r requirements.esp32.txt idna==3.4 # via requests -imgtool==1.9.0 - # via -r requirements.openiotsdk.txt -iniconfig==2.0.0 - # via pytest intelhex==2.3.0 - # via - # -r requirements.zephyr.txt - # imgtool - # mbed-os-tools + # via -r requirements.zephyr.txt ipython==8.11.0 # via -r requirements.all.txt -itsdangerous==2.0.1 - # via -r requirements.esp32.txt jedi==0.18.2 # via ipython jinja2==3.0.3 - # via - # -r requirements.build.txt - # mbed-tools + # via -r requirements.build.txt jsonschema==4.17.3 # via -r requirements.zephyr.txt -junit-xml==1.9 - # via mbed-os-tools kconfiglib==13.7.1 - # via -r requirements.esp32.txt + # via esp-idf-kconfig lark==1.1.5 - # via -r requirements.build.txt -leb128==1.0.5 - # via -r requirements.infineon.txt -lockfile==0.12.2 # via - # cachecontrol - # mbed-os-tools -mako==1.2.4 - # via pdoc3 -markdown==3.4.1 - # via pdoc3 + # -r requirements.all.txt + # -r requirements.build.txt +lockfile==0.12.2 + # via cachecontrol markupsafe==2.1.2 - # via - # jinja2 - # mako + # via jinja2 matplotlib-inline==0.1.6 # via ipython -mbed-ls==1.8.11 ; platform_machine != "aarch64" and sys_platform == "linux" - # via -r requirements.mbed.txt -mbed-os-tools==1.8.15 - # via mbed-ls -mbed-tools==7.59.0 ; platform_machine != "aarch64" and sys_platform == "linux" - # via -r requirements.mbed.txt mobly==1.12.1 # via -r requirements.all.txt msgpack==1.0.4 @@ -173,7 +132,7 @@ mypy==0.971 # via -r requirements.all.txt mypy-extensions==1.0.0 # via mypy -mypy-protobuf==3.2.0 +mypy-protobuf==3.5.0 # via -r requirements.all.txt numpy==1.24.2 # via pandas @@ -183,14 +142,11 @@ packaging==23.0 # fastcore # ghapi # idf-component-manager - # pytest # west pandas==1.5.3 ; platform_machine != "aarch64" and platform_machine != "arm64" # via -r requirements.memory.txt parso==0.8.3 # via jedi -pdoc3==0.10.0 ; platform_machine != "aarch64" and sys_platform == "linux" - # via -r requirements.mbed.txt pep517==0.13.0 # via build pexpect==4.8.0 @@ -203,106 +159,70 @@ pip-tools==7.0.0 # via -r requirements.all.txt platformdirs==3.0.0 # via virtualenv -pluggy==1.0.0 - # via pytest -portalocker==2.0.0 - # via bflb-iot-tool portpicker==1.5.2 # via # -r requirements.all.txt # mobly -prettytable==2.5.0 - # via - # mbed-ls - # mbed-os-tools prompt-toolkit==3.0.38 # via ipython -protobuf==3.20.1 +protobuf==4.24.4 # via # -r requirements.all.txt # mypy-protobuf psutil==5.9.4 - # via - # mbed-tools - # portpicker - # pylink-square + # via portpicker ptyprocess==0.7.0 # via pexpect pure-eval==0.2.2 # via stack-data -py==1.11.0 - # via pytest -pycklink==0.1.1 - # via bflb-iot-tool pycparser==2.21 # via cffi -pycryptodome==3.9.8 +pyelftools==0.30 # via - # bflb-crypto-plus - # bflb-iot-tool + # -c constraints.esp32.txt + # esp-idf-monitor pygdbmi==0.9.0.2 - # via -r requirements.esp32.txt + # via + # -r requirements.esp32.txt + # esp-coredump pygments==2.14.0 # via ipython pykwalify==1.8.0 # via west -pylink-square==0.5.0 - # via bflb-iot-tool pyparsing==3.0.9 # via -r requirements.esp32.txt -pypng==0.0.21 - # via -r requirements.telink.txt -pyqrcode==1.2.1 - # via -r requirements.telink.txt pyrsistent==0.19.3 # via jsonschema pyserial==3.5 # via # -c constraints.esp32.txt - # bflb-iot-tool - # mbed-os-tools - # mbed-tools -pytest==6.2.5 ; sys_platform == "linux" - # via - # -r requirements.mbed.txt - # pytest-json-report - # pytest-metadata -pytest-json-report==1.5.0 - # via -r requirements.openiotsdk.txt -pytest-metadata==2.0.4 - # via pytest-json-report + # esp-idf-monitor + # esptool python-dateutil==2.8.2 # via # pandas # pykwalify -python-dotenv==1.0.0 ; platform_machine != "aarch64" and sys_platform == "linux" - # via - # -r requirements.mbed.txt - # mbed-tools python-engineio==3.14.2 # via python-socketio python-socketio==4.6.1 # via -r requirements.esp32.txt pytz==2022.7.1 # via pandas -pyudev==0.24.0 ; platform_machine != "aarch64" and sys_platform == "linux" - # via - # -r requirements.mbed.txt - # mbed-tools pyyaml==6.0 # via + # esptool # idf-component-manager # mobly # west reedsolo==1.5.4 - # via -r requirements.esp32.txt + # via + # -r requirements.esp32.txt + # esptool requests==2.28.2 # via # -r requirements.cirque.txt # cachecontrol # idf-component-manager - # mbed-os-tools - # mbed-tools # requests-file # requests-toolbelt requests-file==1.5.1 @@ -319,46 +239,30 @@ six==1.16.0 # asttokens # ecdsa # idf-component-manager - # junit-xml - # mbed-os-tools - # pylink-square # python-dateutil # python-engineio # python-socketio # requests-file -smmap==5.0.0 - # via gitdb -soupsieve==2.4 - # via beautifulsoup4 stack-data==0.6.2 # via ipython stringcase==1.2.0 # via -r requirements.build.txt tabulate==0.9.0 - # via - # -r requirements.memory.txt - # mbed-tools -toml==0.10.2 - # via pytest + # via -r requirements.memory.txt tornado==6.2 # via -r requirements.all.txt tqdm==4.64.1 - # via - # idf-component-manager - # mbed-tools + # via idf-component-manager traitlets==5.9.0 # via # ipython # matplotlib-inline -types-protobuf==3.19.22 +types-protobuf==4.24.0.2 # via # -r requirements.all.txt # mypy-protobuf -typing-extensions==4.5.0 ; platform_machine != "aarch64" and sys_platform == "linux" - # via - # -r requirements.mbed.txt - # mbed-tools - # mypy +typing-extensions==4.5.0 + # via mypy urllib3==1.26.14 # via requests virtualenv==20.20.0 @@ -366,11 +270,9 @@ virtualenv==20.20.0 watchdog==2.3.1 # via -r requirements.all.txt wcwidth==0.2.6 - # via - # prettytable - # prompt-toolkit + # via prompt-toolkit websockets==10.4 - # via -r requirements.yaml_tests.txt + # via -r requirements.all.txt west==1.0.0 # via -r requirements.zephyr.txt wheel==0.38.4 ; sys_platform == "linux" diff --git a/scripts/setup/pigweed.json b/scripts/setup/pigweed.json index 3147b578705073..c73c8e65fc573b 100644 --- a/scripts/setup/pigweed.json +++ b/scripts/setup/pigweed.json @@ -47,7 +47,7 @@ "windows-amd64" ], "tags": [ - "version:2@3.17.3" + "version:2@24.4" ] }, { @@ -57,7 +57,7 @@ "mac-arm64" ], "tags": [ - "version:2@3.17.3" + "version:2@24.4" ] }, { diff --git a/scripts/setup/requirements.all.txt b/scripts/setup/requirements.all.txt index 2cccfdbf84db03..3266eaf8504572 100644 --- a/scripts/setup/requirements.all.txt +++ b/scripts/setup/requirements.all.txt @@ -39,9 +39,9 @@ coloredlogs watchdog build==0.8.0 mypy==0.971 -mypy-protobuf==3.2.0 -protobuf==3.20.1 -types-protobuf==3.19.22 +mypy-protobuf==3.5.0 +protobuf==4.24.4 +types-protobuf==4.24.0.2 cryptography diff --git a/scripts/setup/zap.json b/scripts/setup/zap.json index f3869514ca7356..b9e8e18016cd31 100644 --- a/scripts/setup/zap.json +++ b/scripts/setup/zap.json @@ -8,13 +8,13 @@ "mac-amd64", "windows-amd64" ], - "tags": ["version:2@v2023.10.14-nightly.1"] + "tags": ["version:2@v2023.10.24-nightly.1"] }, { "_comment": "Always get the amd64 version on mac until usable arm64 zap build is available", "path": "fuchsia/third_party/zap/mac-amd64", "platforms": ["mac-arm64"], - "tags": ["version:2@v2023.10.14-nightly.1"] + "tags": ["version:2@v2023.10.24-nightly.1"] } ] } diff --git a/scripts/setup/zap.version b/scripts/setup/zap.version index 443586d7cdbe6c..c26dc3f85a55d8 100644 --- a/scripts/setup/zap.version +++ b/scripts/setup/zap.version @@ -1 +1 @@ -v2023.10.14-nightly +v2023.10.24-nightly diff --git a/scripts/tools/zap/tests/inputs/all-clusters-app.zap b/scripts/tools/zap/tests/inputs/all-clusters-app.zap index 71b8cbaaee757f..549973ecaf05b9 100644 --- a/scripts/tools/zap/tests/inputs/all-clusters-app.zap +++ b/scripts/tools/zap/tests/inputs/all-clusters-app.zap @@ -17,6 +17,12 @@ } ], "package": [ + { + "pathRelativity": "relativeToZap", + "path": "../../../../../src/app/zap-templates/app-templates.json", + "type": "gen-templates-json", + "version": "chip-v1" + }, { "pathRelativity": "relativeToZap", "path": "../../../../../src/app/zap-templates/zcl/zcl-with-test-extensions.json", @@ -24,12 +30,6 @@ "category": "matter", "version": 1, "description": "Matter SDK ZCL data with some extensions" - }, - { - "pathRelativity": "relativeToZap", - "path": "../../../../../src/app/zap-templates/app-templates.json", - "type": "gen-templates-json", - "version": "chip-v1" } ], "endpointTypes": [ @@ -16264,14 +16264,14 @@ "id": 4, "name": "Anonymous Endpoint Type", "deviceTypeRef": { - "code": 61442, + "code": 4293984258, "profileId": 259, "label": "MA-secondary-network-commissioning", "name": "MA-secondary-network-commissioning" }, "deviceTypes": [ { - "code": 61442, + "code": 4293984258, "profileId": 259, "label": "MA-secondary-network-commissioning", "name": "MA-secondary-network-commissioning" @@ -16281,10 +16281,10 @@ 1 ], "deviceIdentifiers": [ - 61442 + 4293984258 ], "deviceTypeName": "MA-secondary-network-commissioning", - "deviceTypeCode": 61442, + "deviceTypeCode": 4293984258, "deviceTypeProfileId": 259, "clusters": [ { @@ -16359,6 +16359,70 @@ "maxInterval": 65344, "reportableChange": 0 }, + { + "name": "GeneratedCommandList", + "code": 65528, + "mfgCode": null, + "side": "server", + "type": "array", + "included": 1, + "storageOption": "External", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, + { + "name": "AcceptedCommandList", + "code": 65529, + "mfgCode": null, + "side": "server", + "type": "array", + "included": 1, + "storageOption": "External", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, + { + "name": "EventList", + "code": 65530, + "mfgCode": null, + "side": "server", + "type": "array", + "included": 1, + "storageOption": "External", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, + { + "name": "AttributeList", + "code": 65531, + "mfgCode": null, + "side": "server", + "type": "array", + "included": 1, + "storageOption": "External", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, { "name": "FeatureMap", "code": 65532, @@ -16603,6 +16667,70 @@ "maxInterval": 65534, "reportableChange": 0 }, + { + "name": "GeneratedCommandList", + "code": 65528, + "mfgCode": null, + "side": "server", + "type": "array", + "included": 1, + "storageOption": "External", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, + { + "name": "AcceptedCommandList", + "code": 65529, + "mfgCode": null, + "side": "server", + "type": "array", + "included": 1, + "storageOption": "External", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, + { + "name": "EventList", + "code": 65530, + "mfgCode": null, + "side": "server", + "type": "array", + "included": 1, + "storageOption": "External", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, + { + "name": "AttributeList", + "code": 65531, + "mfgCode": null, + "side": "server", + "type": "array", + "included": 1, + "storageOption": "External", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, { "name": "FeatureMap", "code": 65532, @@ -16669,5 +16797,6 @@ "endpointId": 65534, "networkId": 0 } - ] + ], + "log": [] } \ No newline at end of file diff --git a/scripts/tools/zap/tests/outputs/all-clusters-app/app-templates/endpoint_config.h b/scripts/tools/zap/tests/outputs/all-clusters-app/app-templates/endpoint_config.h index 2fe82da68e5572..2171165b8360ce 100644 --- a/scripts/tools/zap/tests/outputs/all-clusters-app/app-templates/endpoint_config.h +++ b/scripts/tools/zap/tests/outputs/all-clusters-app/app-templates/endpoint_config.h @@ -3058,9 +3058,9 @@ static_assert(ATTRIBUTE_LARGEST <= CHIP_CONFIG_MAX_ATTRIBUTE_STORE_ELEMENT_SIZE, // Array of device types #define FIXED_DEVICE_TYPES \ { \ - { 0x0011, 1 }, { 0x0016, 1 }, { 0x0100, 1 }, { 0x0011, 1 }, { 0x0100, 1 }, { 0x0011, 1 }, \ + { 0x00000011, 1 }, { 0x00000016, 1 }, { 0x00000100, 1 }, { 0x00000011, 1 }, { 0x00000100, 1 }, { 0x00000011, 1 }, \ { \ - 0xF002, 1 \ + 0xFFF10002, 1 \ } \ } diff --git a/scripts/tools/zap/tests/outputs/lighting-app/app-templates/endpoint_config.h b/scripts/tools/zap/tests/outputs/lighting-app/app-templates/endpoint_config.h index 7176d34b83b1a7..f2f40e61e71d6f 100644 --- a/scripts/tools/zap/tests/outputs/lighting-app/app-templates/endpoint_config.h +++ b/scripts/tools/zap/tests/outputs/lighting-app/app-templates/endpoint_config.h @@ -1186,9 +1186,9 @@ static_assert(ATTRIBUTE_LARGEST <= CHIP_CONFIG_MAX_ATTRIBUTE_STORE_ELEMENT_SIZE, // Array of device types #define FIXED_DEVICE_TYPES \ { \ - { 0x0016, 1 }, \ + { 0x00000016, 1 }, \ { \ - 0x0101, 1 \ + 0x00000101, 1 \ } \ } diff --git a/scripts/tools/zap/zap_execution.py b/scripts/tools/zap/zap_execution.py index 3bf36e7d40a33f..60e861d28cd926 100644 --- a/scripts/tools/zap/zap_execution.py +++ b/scripts/tools/zap/zap_execution.py @@ -23,7 +23,7 @@ # Use scripts/tools/zap/version_update.py to manage ZAP versioning as many # files may need updating for versions # -MIN_ZAP_VERSION = '2023.10.14' +MIN_ZAP_VERSION = '2023.10.24' class ZapTool: diff --git a/src/app/tests/suites/certification/Test_TC_DISHM_1_1.yaml b/src/app/tests/suites/certification/Test_TC_DISHM_1_1.yaml index cd6c4dbac170a2..c45ce0700c179b 100644 --- a/src/app/tests/suites/certification/Test_TC_DISHM_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_DISHM_1_1.yaml @@ -35,10 +35,10 @@ tests: verification: | ./chip-tool dishwashermode read cluster-revision 1 1 - Verify the "ClusterRevision" value is of unit16 and reflects the highest revision number 1 on the TH(Chip-tool) and below is the sample log provided for the raspi platform: + Verify the "ClusterRevision" value is of unit16 and reflects the highest revision number (2) on the TH(Chip-tool) and below is the sample log provided for the raspi platform: [1690365584.246794][27436:27438] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0059 Attribute 0x0000_FFFD DataVersion: 1130015440 - [1690365584.246860][27436:27438] CHIP:TOO: ClusterRevision: 1 + [1690365584.246860][27436:27438] CHIP:TOO: ClusterRevision: 2 disabled: true - label: "Step 3: TH reads from the DUT the FeatureMap attribute." diff --git a/src/app/tests/suites/certification/Test_TC_LWM_1_1.yaml b/src/app/tests/suites/certification/Test_TC_LWM_1_1.yaml index 91ab6841eb12e8..8932fe0e7506ea 100644 --- a/src/app/tests/suites/certification/Test_TC_LWM_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_LWM_1_1.yaml @@ -35,7 +35,7 @@ tests: command: "readAttribute" attribute: "ClusterRevision" response: - value: 1 + value: 2 constraints: type: int16u diff --git a/src/app/tests/suites/certification/Test_TC_RVCCLEANM_1_1.yaml b/src/app/tests/suites/certification/Test_TC_RVCCLEANM_1_1.yaml index a80ea7c76f93f9..2415830c81adc0 100644 --- a/src/app/tests/suites/certification/Test_TC_RVCCLEANM_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_RVCCLEANM_1_1.yaml @@ -35,7 +35,7 @@ tests: command: "readAttribute" attribute: "ClusterRevision" response: - value: 1 + value: 2 constraints: type: int16u diff --git a/src/app/tests/suites/certification/Test_TC_RVCRUNM_1_1.yaml b/src/app/tests/suites/certification/Test_TC_RVCRUNM_1_1.yaml index 8dd2428b9dd203..ad7ff4866e2c32 100644 --- a/src/app/tests/suites/certification/Test_TC_RVCRUNM_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_RVCRUNM_1_1.yaml @@ -35,7 +35,7 @@ tests: command: "readAttribute" attribute: "ClusterRevision" response: - value: 1 + value: 2 constraints: type: int16u diff --git a/src/app/tests/suites/certification/Test_TC_TCCM_1_1.yaml b/src/app/tests/suites/certification/Test_TC_TCCM_1_1.yaml index e0f6df2d917fb4..a9e64fb9ae44e7 100644 --- a/src/app/tests/suites/certification/Test_TC_TCCM_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_TCCM_1_1.yaml @@ -35,7 +35,7 @@ tests: command: "readAttribute" attribute: "ClusterRevision" response: - value: 1 + value: 2 constraints: type: int16u diff --git a/src/app/tests/suites/certification/ci-pics-values b/src/app/tests/suites/certification/ci-pics-values index 0cc6c167c3cdb6..a4dcce73f08600 100644 --- a/src/app/tests/suites/certification/ci-pics-values +++ b/src/app/tests/suites/certification/ci-pics-values @@ -2378,7 +2378,7 @@ RVCCLEANM.S=1 #Server RVCCLEANM.S.A0000=1 RVCCLEANM.S.A0001=1 -RVCCLEANM.S.A0002=1 +RVCCLEANM.S.A0002=0 RVCCLEANM.S.A0003=1 #Feature @@ -2451,7 +2451,7 @@ RVCRUNM.S.F00=1 #Server RVCRUNM.S.A0000=1 RVCRUNM.S.A0001=1 -RVCRUNM.S.A0002=1 +RVCRUNM.S.A0002=0 RVCRUNM.S.A0003=1 #Commands @@ -2622,7 +2622,7 @@ RVCRUNM.S=1 RVCRUNM.S.F00=1 RVCRUNM.S.A0000=1 RVCRUNM.S.A0001=1 -RVCRUNM.S.A0002=1 +RVCRUNM.S.A0002=0 RVCRUNM.S.A0003=1 RVCRUNM.S.C00.Rsp=1 RVCRUNM.S.C01.Tx=1 diff --git a/src/app/zap-templates/zcl/data-model/chip/laundry-washer-mode-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/laundry-washer-mode-cluster.xml index 0747c2f55c9c8d..f9181a6edd5ca4 100644 --- a/src/app/zap-templates/zcl/data-model/chip/laundry-washer-mode-cluster.xml +++ b/src/app/zap-templates/zcl/data-model/chip/laundry-washer-mode-cluster.xml @@ -33,6 +33,7 @@ limitations under the License. true true Attributes and commands for selecting a mode from a list of supported options. + SupportedModes CurrentMode diff --git a/src/app/zap-templates/zcl/data-model/chip/matter-devices.xml b/src/app/zap-templates/zcl/data-model/chip/matter-devices.xml index 6b398976a387d3..c84b6db29c83aa 100644 --- a/src/app/zap-templates/zcl/data-model/chip/matter-devices.xml +++ b/src/app/zap-templates/zcl/data-model/chip/matter-devices.xml @@ -21,7 +21,7 @@ limitations under the License. CHIP Matter Orphan Clusters 0x0103 - 0xF001 + 0xFFF10001 @@ -1475,7 +1475,7 @@ limitations under the License. MA-heatcool - XCHIP + CHIP Matter Heating/Cooling Unit 0x0103 0x0300 @@ -1539,7 +1539,7 @@ limitations under the License. MA-thermostat - HA + CHIP Matter Thermostat 0x0103 0x0301 @@ -2036,7 +2036,7 @@ limitations under the License. CHIP Matter All-clusters-app Server Example 0x0103 - 0x0000 + 0xFFF10003 IDENTIFY_TIME @@ -2197,7 +2197,7 @@ limitations under the License. CHIP Matter Secondary Network Commissioning Device Type 0x0103 - 0xF002 + 0xFFF10002 diff --git a/src/app/zap-templates/zcl/data-model/chip/refrigerator-and-temperature-controlled-cabinet-mode-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/refrigerator-and-temperature-controlled-cabinet-mode-cluster.xml index 7b60cff33629a1..bbd0e229338883 100644 --- a/src/app/zap-templates/zcl/data-model/chip/refrigerator-and-temperature-controlled-cabinet-mode-cluster.xml +++ b/src/app/zap-templates/zcl/data-model/chip/refrigerator-and-temperature-controlled-cabinet-mode-cluster.xml @@ -31,6 +31,7 @@ limitations under the License. true true Attributes and commands for selecting a mode from a list of supported options. + SupportedModes CurrentMode diff --git a/src/app/zap-templates/zcl/data-model/chip/rvc-clean-mode-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/rvc-clean-mode-cluster.xml index 029de40ac06947..44a2669c8d018e 100644 --- a/src/app/zap-templates/zcl/data-model/chip/rvc-clean-mode-cluster.xml +++ b/src/app/zap-templates/zcl/data-model/chip/rvc-clean-mode-cluster.xml @@ -37,10 +37,10 @@ limitations under the License. true true Attributes and commands for selecting a mode from a list of supported options. + SupportedModes CurrentMode - StartUpMode OnMode diff --git a/src/app/zap-templates/zcl/data-model/chip/rvc-run-mode-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/rvc-run-mode-cluster.xml index f663dce39ec4a7..2175e26ed9f257 100644 --- a/src/app/zap-templates/zcl/data-model/chip/rvc-run-mode-cluster.xml +++ b/src/app/zap-templates/zcl/data-model/chip/rvc-run-mode-cluster.xml @@ -43,10 +43,10 @@ limitations under the License. true true Attributes and commands for selecting a mode from a list of supported options. + SupportedModes CurrentMode - StartUpMode OnMode diff --git a/src/app/zap-templates/zcl/zcl-with-test-extensions.json b/src/app/zap-templates/zcl/zcl-with-test-extensions.json index cd8fd149ccf153..d5e8f55dfdf964 100644 --- a/src/app/zap-templates/zcl/zcl-with-test-extensions.json +++ b/src/app/zap-templates/zcl/zcl-with-test-extensions.json @@ -340,14 +340,12 @@ "RVC Clean Mode": [ "SupportedModes", "CurrentMode", - "StartUpMode", "OnMode", "FeatureMap" ], "RVC Run Mode": [ "SupportedModes", "CurrentMode", - "StartUpMode", "OnMode", "FeatureMap" ], diff --git a/src/app/zap-templates/zcl/zcl.json b/src/app/zap-templates/zcl/zcl.json index 4044c1d1a78bf1..77462935f97592 100644 --- a/src/app/zap-templates/zcl/zcl.json +++ b/src/app/zap-templates/zcl/zcl.json @@ -338,14 +338,12 @@ "RVC Clean Mode": [ "SupportedModes", "CurrentMode", - "StartUpMode", "OnMode", "FeatureMap" ], "RVC Run Mode": [ "SupportedModes", "CurrentMode", - "StartUpMode", "OnMode", "FeatureMap" ], diff --git a/src/controller/data_model/controller-clusters.matter b/src/controller/data_model/controller-clusters.matter index 9091ce552ad854..89233449804703 100644 --- a/src/controller/data_model/controller-clusters.matter +++ b/src/controller/data_model/controller-clusters.matter @@ -2961,7 +2961,6 @@ client cluster RvcRunMode = 84 { readonly attribute ModeOptionStruct supportedModes[] = 0; readonly attribute int8u currentMode = 1; - attribute optional nullable int8u startUpMode = 2; attribute optional nullable int8u onMode = 3; readonly attribute command_id generatedCommandList[] = 65528; readonly attribute command_id acceptedCommandList[] = 65529; @@ -3013,7 +3012,6 @@ client cluster RvcCleanMode = 85 { readonly attribute ModeOptionStruct supportedModes[] = 0; readonly attribute int8u currentMode = 1; - attribute optional nullable int8u startUpMode = 2; attribute optional nullable int8u onMode = 3; readonly attribute command_id generatedCommandList[] = 65528; readonly attribute command_id acceptedCommandList[] = 65529; diff --git a/src/controller/java/generated/java/chip/devicecontroller/ChipClusters.java b/src/controller/java/generated/java/chip/devicecontroller/ChipClusters.java index 86b5c52fd611fe..e79b8954570243 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/ChipClusters.java +++ b/src/controller/java/generated/java/chip/devicecontroller/ChipClusters.java @@ -12004,12 +12004,6 @@ public interface SupportedModesAttributeCallback { default void onSubscriptionEstablished(long subscriptionId) {} } - public interface StartUpModeAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface OnModeAttributeCallback { void onSuccess(@Nullable Integer value); void onError(Exception ex); @@ -12060,24 +12054,6 @@ public void subscribeCurrentModeAttribute( subscribeCurrentModeAttribute(chipClusterPtr, callback, minInterval, maxInterval); } - public void readStartUpModeAttribute( - StartUpModeAttributeCallback callback) { - readStartUpModeAttribute(chipClusterPtr, callback); - } - - public void writeStartUpModeAttribute(DefaultClusterCallback callback, Integer value) { - writeStartUpModeAttribute(chipClusterPtr, callback, value, null); - } - - public void writeStartUpModeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeStartUpModeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - - public void subscribeStartUpModeAttribute( - StartUpModeAttributeCallback callback, int minInterval, int maxInterval) { - subscribeStartUpModeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - public void readOnModeAttribute( OnModeAttributeCallback callback) { readOnModeAttribute(chipClusterPtr, callback); @@ -12164,12 +12140,6 @@ public void subscribeClusterRevisionAttribute( private native void subscribeCurrentModeAttribute(long chipClusterPtr, IntegerAttributeCallback callback, int minInterval, int maxInterval); - private native void readStartUpModeAttribute(long chipClusterPtr, StartUpModeAttributeCallback callback); - - private native void writeStartUpModeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - - private native void subscribeStartUpModeAttribute(long chipClusterPtr, StartUpModeAttributeCallback callback, int minInterval, int maxInterval); - private native void readOnModeAttribute(long chipClusterPtr, OnModeAttributeCallback callback); private native void writeOnModeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); @@ -12232,12 +12202,6 @@ public interface SupportedModesAttributeCallback { default void onSubscriptionEstablished(long subscriptionId) {} } - public interface StartUpModeAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface OnModeAttributeCallback { void onSuccess(@Nullable Integer value); void onError(Exception ex); @@ -12288,24 +12252,6 @@ public void subscribeCurrentModeAttribute( subscribeCurrentModeAttribute(chipClusterPtr, callback, minInterval, maxInterval); } - public void readStartUpModeAttribute( - StartUpModeAttributeCallback callback) { - readStartUpModeAttribute(chipClusterPtr, callback); - } - - public void writeStartUpModeAttribute(DefaultClusterCallback callback, Integer value) { - writeStartUpModeAttribute(chipClusterPtr, callback, value, null); - } - - public void writeStartUpModeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeStartUpModeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - - public void subscribeStartUpModeAttribute( - StartUpModeAttributeCallback callback, int minInterval, int maxInterval) { - subscribeStartUpModeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - public void readOnModeAttribute( OnModeAttributeCallback callback) { readOnModeAttribute(chipClusterPtr, callback); @@ -12392,12 +12338,6 @@ public void subscribeClusterRevisionAttribute( private native void subscribeCurrentModeAttribute(long chipClusterPtr, IntegerAttributeCallback callback, int minInterval, int maxInterval); - private native void readStartUpModeAttribute(long chipClusterPtr, StartUpModeAttributeCallback callback); - - private native void writeStartUpModeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - - private native void subscribeStartUpModeAttribute(long chipClusterPtr, StartUpModeAttributeCallback callback, int minInterval, int maxInterval); - private native void readOnModeAttribute(long chipClusterPtr, OnModeAttributeCallback callback); private native void writeOnModeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); diff --git a/src/controller/java/generated/java/chip/devicecontroller/ClusterIDMapping.java b/src/controller/java/generated/java/chip/devicecontroller/ClusterIDMapping.java index 724c075323b990..c5d09f3834e59b 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/ClusterIDMapping.java +++ b/src/controller/java/generated/java/chip/devicecontroller/ClusterIDMapping.java @@ -6579,7 +6579,6 @@ public long getID() { public enum Attribute { SupportedModes(0L), CurrentMode(1L), - StartUpMode(2L), OnMode(3L), GeneratedCommandList(65528L), AcceptedCommandList(65529L), @@ -6701,7 +6700,6 @@ public long getID() { public enum Attribute { SupportedModes(0L), CurrentMode(1L), - StartUpMode(2L), OnMode(3L), GeneratedCommandList(65528L), AcceptedCommandList(65529L), diff --git a/src/controller/java/generated/java/chip/devicecontroller/ClusterInfoMapping.java b/src/controller/java/generated/java/chip/devicecontroller/ClusterInfoMapping.java index 4ec2ba92ed5afa..a051e4d5b071b8 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/ClusterInfoMapping.java +++ b/src/controller/java/generated/java/chip/devicecontroller/ClusterInfoMapping.java @@ -7255,27 +7255,6 @@ public void onError(Exception ex) { } } - public static class DelegatedRvcRunModeClusterStartUpModeAttributeCallback implements ChipClusters.RvcRunModeCluster.StartUpModeAttributeCallback, DelegatedClusterCallback { - private ClusterCommandCallback callback; - @Override - public void setCallbackDelegate(ClusterCommandCallback callback) { - this.callback = callback; - } - - @Override - public void onSuccess(@Nullable Integer value) { - Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo commandResponseInfo = new CommandResponseInfo("value", "Integer"); - responseValues.put(commandResponseInfo, value); - callback.onSuccess(responseValues); - } - - @Override - public void onError(Exception ex) { - callback.onFailure(ex); - } - } - public static class DelegatedRvcRunModeClusterOnModeAttributeCallback implements ChipClusters.RvcRunModeCluster.OnModeAttributeCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @Override @@ -7426,27 +7405,6 @@ public void onError(Exception ex) { } } - public static class DelegatedRvcCleanModeClusterStartUpModeAttributeCallback implements ChipClusters.RvcCleanModeCluster.StartUpModeAttributeCallback, DelegatedClusterCallback { - private ClusterCommandCallback callback; - @Override - public void setCallbackDelegate(ClusterCommandCallback callback) { - this.callback = callback; - } - - @Override - public void onSuccess(@Nullable Integer value) { - Map responseValues = new LinkedHashMap<>(); - CommandResponseInfo commandResponseInfo = new CommandResponseInfo("value", "Integer"); - responseValues.put(commandResponseInfo, value); - callback.onSuccess(responseValues); - } - - @Override - public void onError(Exception ex) { - callback.onFailure(ex); - } - } - public static class DelegatedRvcCleanModeClusterOnModeAttributeCallback implements ChipClusters.RvcCleanModeCluster.OnModeAttributeCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @Override diff --git a/src/controller/java/generated/java/chip/devicecontroller/ClusterReadMapping.java b/src/controller/java/generated/java/chip/devicecontroller/ClusterReadMapping.java index 55ec3f254fec00..8cd4db031a7831 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/ClusterReadMapping.java +++ b/src/controller/java/generated/java/chip/devicecontroller/ClusterReadMapping.java @@ -6487,17 +6487,6 @@ private static Map readRvcRunModeInteractionInfo() { readRvcRunModeCurrentModeCommandParams ); result.put("readCurrentModeAttribute", readRvcRunModeCurrentModeAttributeInteractionInfo); - Map readRvcRunModeStartUpModeCommandParams = new LinkedHashMap(); - InteractionInfo readRvcRunModeStartUpModeAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.RvcRunModeCluster) cluster).readStartUpModeAttribute( - (ChipClusters.RvcRunModeCluster.StartUpModeAttributeCallback) callback - ); - }, - () -> new ClusterInfoMapping.DelegatedRvcRunModeClusterStartUpModeAttributeCallback(), - readRvcRunModeStartUpModeCommandParams - ); - result.put("readStartUpModeAttribute", readRvcRunModeStartUpModeAttributeInteractionInfo); Map readRvcRunModeOnModeCommandParams = new LinkedHashMap(); InteractionInfo readRvcRunModeOnModeAttributeInteractionInfo = new InteractionInfo( (cluster, callback, commandArguments) -> { @@ -6601,17 +6590,6 @@ private static Map readRvcCleanModeInteractionInfo() { readRvcCleanModeCurrentModeCommandParams ); result.put("readCurrentModeAttribute", readRvcCleanModeCurrentModeAttributeInteractionInfo); - Map readRvcCleanModeStartUpModeCommandParams = new LinkedHashMap(); - InteractionInfo readRvcCleanModeStartUpModeAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.RvcCleanModeCluster) cluster).readStartUpModeAttribute( - (ChipClusters.RvcCleanModeCluster.StartUpModeAttributeCallback) callback - ); - }, - () -> new ClusterInfoMapping.DelegatedRvcCleanModeClusterStartUpModeAttributeCallback(), - readRvcCleanModeStartUpModeCommandParams - ); - result.put("readStartUpModeAttribute", readRvcCleanModeStartUpModeAttributeInteractionInfo); Map readRvcCleanModeOnModeCommandParams = new LinkedHashMap(); InteractionInfo readRvcCleanModeOnModeAttributeInteractionInfo = new InteractionInfo( (cluster, callback, commandArguments) -> { diff --git a/src/controller/java/generated/java/chip/devicecontroller/ClusterWriteMapping.java b/src/controller/java/generated/java/chip/devicecontroller/ClusterWriteMapping.java index 5df865adc76614..eaf536bf0f76cd 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/ClusterWriteMapping.java +++ b/src/controller/java/generated/java/chip/devicecontroller/ClusterWriteMapping.java @@ -909,28 +909,6 @@ public Map> getWriteAttributeMap() { writeLaundryWasherControlsInteractionInfo.put("writeNumberOfRinsesAttribute", writeLaundryWasherControlsNumberOfRinsesAttributeInteractionInfo); writeAttributeMap.put("laundryWasherControls", writeLaundryWasherControlsInteractionInfo); Map writeRvcRunModeInteractionInfo = new LinkedHashMap<>(); - Map writeRvcRunModeStartUpModeCommandParams = new LinkedHashMap(); - CommandParameterInfo rvcRunModestartUpModeCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); - writeRvcRunModeStartUpModeCommandParams.put( - "value", - rvcRunModestartUpModeCommandParameterInfo - ); - InteractionInfo writeRvcRunModeStartUpModeAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.RvcRunModeCluster) cluster).writeStartUpModeAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeRvcRunModeStartUpModeCommandParams - ); - writeRvcRunModeInteractionInfo.put("writeStartUpModeAttribute", writeRvcRunModeStartUpModeAttributeInteractionInfo); Map writeRvcRunModeOnModeCommandParams = new LinkedHashMap(); CommandParameterInfo rvcRunModeonModeCommandParameterInfo = new CommandParameterInfo( @@ -955,28 +933,6 @@ public Map> getWriteAttributeMap() { writeRvcRunModeInteractionInfo.put("writeOnModeAttribute", writeRvcRunModeOnModeAttributeInteractionInfo); writeAttributeMap.put("rvcRunMode", writeRvcRunModeInteractionInfo); Map writeRvcCleanModeInteractionInfo = new LinkedHashMap<>(); - Map writeRvcCleanModeStartUpModeCommandParams = new LinkedHashMap(); - CommandParameterInfo rvcCleanModestartUpModeCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); - writeRvcCleanModeStartUpModeCommandParams.put( - "value", - rvcCleanModestartUpModeCommandParameterInfo - ); - InteractionInfo writeRvcCleanModeStartUpModeAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.RvcCleanModeCluster) cluster).writeStartUpModeAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeRvcCleanModeStartUpModeCommandParams - ); - writeRvcCleanModeInteractionInfo.put("writeStartUpModeAttribute", writeRvcCleanModeStartUpModeAttributeInteractionInfo); Map writeRvcCleanModeOnModeCommandParams = new LinkedHashMap(); CommandParameterInfo rvcCleanModeonModeCommandParameterInfo = new CommandParameterInfo( diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AccessControlCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AccessControlCluster.kt new file mode 100644 index 00000000000000..a16aec610367ed --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AccessControlCluster.kt @@ -0,0 +1,243 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class AccessControlCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 31u + } + + interface AclAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface ExtensionAttributeCallback { + fun onSuccess(value: ArrayList?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readAclAttribute(callback: AclAttributeCallback) { + // Implementation needs to be added here + } + + fun readAclAttributeWithFabricFilter(callback: AclAttributeCallback, isFabricFiltered: Boolean) { + // Implementation needs to be added here + } + + fun writeAclAttribute( + callback: DefaultClusterCallback, + value: ArrayList + ) { + // Implementation needs to be added here + } + + fun writeAclAttribute( + callback: DefaultClusterCallback, + value: ArrayList, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeAclAttribute(callback: AclAttributeCallback, minInterval: Int, maxInterval: Int) { + // Implementation needs to be added here + } + + fun readExtensionAttribute(callback: ExtensionAttributeCallback) { + // Implementation needs to be added here + } + + fun readExtensionAttributeWithFabricFilter( + callback: ExtensionAttributeCallback, + isFabricFiltered: Boolean + ) { + // Implementation needs to be added here + } + + fun writeExtensionAttribute( + callback: DefaultClusterCallback, + value: ArrayList + ) { + // Implementation needs to be added here + } + + fun writeExtensionAttribute( + callback: DefaultClusterCallback, + value: ArrayList, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeExtensionAttribute( + callback: ExtensionAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readSubjectsPerAccessControlEntryAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeSubjectsPerAccessControlEntryAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readTargetsPerAccessControlEntryAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeTargetsPerAccessControlEntryAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAccessControlEntriesPerFabricAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAccessControlEntriesPerFabricAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AccountLoginCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AccountLoginCluster.kt new file mode 100644 index 00000000000000..511713c5df05b5 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AccountLoginCluster.kt @@ -0,0 +1,157 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class AccountLoginCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 1294u + } + + fun getSetupPIN( + callback: GetSetupPINResponseCallback, + tempAccountIdentifier: String, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun login( + callback: DefaultClusterCallback, + tempAccountIdentifier: String, + setupPIN: String, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun logout(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + interface GetSetupPINResponseCallback { + fun onSuccess(setupPIN: String) + + fun onError(error: Exception) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ActionsCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ActionsCluster.kt new file mode 100644 index 00000000000000..584c8d537cc9df --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ActionsCluster.kt @@ -0,0 +1,368 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class ActionsCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 37u + } + + fun instantAction(callback: DefaultClusterCallback, actionID: Integer, invokeID: Long?) { + // Implementation needs to be added here + } + + fun instantAction( + callback: DefaultClusterCallback, + actionID: Integer, + invokeID: Long?, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun instantActionWithTransition( + callback: DefaultClusterCallback, + actionID: Integer, + invokeID: Long?, + transitionTime: Integer + ) { + // Implementation needs to be added here + } + + fun instantActionWithTransition( + callback: DefaultClusterCallback, + actionID: Integer, + invokeID: Long?, + transitionTime: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun startAction(callback: DefaultClusterCallback, actionID: Integer, invokeID: Long?) { + // Implementation needs to be added here + } + + fun startAction( + callback: DefaultClusterCallback, + actionID: Integer, + invokeID: Long?, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun startActionWithDuration( + callback: DefaultClusterCallback, + actionID: Integer, + invokeID: Long?, + duration: Long + ) { + // Implementation needs to be added here + } + + fun startActionWithDuration( + callback: DefaultClusterCallback, + actionID: Integer, + invokeID: Long?, + duration: Long, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun stopAction(callback: DefaultClusterCallback, actionID: Integer, invokeID: Long?) { + // Implementation needs to be added here + } + + fun stopAction( + callback: DefaultClusterCallback, + actionID: Integer, + invokeID: Long?, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun pauseAction(callback: DefaultClusterCallback, actionID: Integer, invokeID: Long?) { + // Implementation needs to be added here + } + + fun pauseAction( + callback: DefaultClusterCallback, + actionID: Integer, + invokeID: Long?, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun pauseActionWithDuration( + callback: DefaultClusterCallback, + actionID: Integer, + invokeID: Long?, + duration: Long + ) { + // Implementation needs to be added here + } + + fun pauseActionWithDuration( + callback: DefaultClusterCallback, + actionID: Integer, + invokeID: Long?, + duration: Long, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun resumeAction(callback: DefaultClusterCallback, actionID: Integer, invokeID: Long?) { + // Implementation needs to be added here + } + + fun resumeAction( + callback: DefaultClusterCallback, + actionID: Integer, + invokeID: Long?, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun enableAction(callback: DefaultClusterCallback, actionID: Integer, invokeID: Long?) { + // Implementation needs to be added here + } + + fun enableAction( + callback: DefaultClusterCallback, + actionID: Integer, + invokeID: Long?, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun enableActionWithDuration( + callback: DefaultClusterCallback, + actionID: Integer, + invokeID: Long?, + duration: Long + ) { + // Implementation needs to be added here + } + + fun enableActionWithDuration( + callback: DefaultClusterCallback, + actionID: Integer, + invokeID: Long?, + duration: Long, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun disableAction(callback: DefaultClusterCallback, actionID: Integer, invokeID: Long?) { + // Implementation needs to be added here + } + + fun disableAction( + callback: DefaultClusterCallback, + actionID: Integer, + invokeID: Long?, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun disableActionWithDuration( + callback: DefaultClusterCallback, + actionID: Integer, + invokeID: Long?, + duration: Long + ) { + // Implementation needs to be added here + } + + fun disableActionWithDuration( + callback: DefaultClusterCallback, + actionID: Integer, + invokeID: Long?, + duration: Long, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + interface ActionListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EndpointListsAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readActionListAttribute(callback: ActionListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeActionListAttribute( + callback: ActionListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEndpointListsAttribute(callback: EndpointListsAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEndpointListsAttribute( + callback: EndpointListsAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readSetupURLAttribute(callback: CharStringAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeSetupURLAttribute( + callback: CharStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ActivatedCarbonFilterMonitoringCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ActivatedCarbonFilterMonitoringCluster.kt new file mode 100644 index 00000000000000..c109709f14cede --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ActivatedCarbonFilterMonitoringCluster.kt @@ -0,0 +1,240 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class ActivatedCarbonFilterMonitoringCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 114u + } + + fun resetCondition(callback: DefaultClusterCallback) { + // Implementation needs to be added here + } + + fun resetCondition(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + interface LastChangedTimeAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface ReplacementProductListAttributeCallback { + fun onSuccess( + value: ArrayList? + ) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readConditionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeConditionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readDegradationDirectionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeDegradationDirectionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readChangeIndicationAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeChangeIndicationAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readInPlaceIndicatorAttribute(callback: BooleanAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeInPlaceIndicatorAttribute( + callback: BooleanAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readLastChangedTimeAttribute(callback: LastChangedTimeAttributeCallback) { + // Implementation needs to be added here + } + + fun writeLastChangedTimeAttribute(callback: DefaultClusterCallback, value: Long) { + // Implementation needs to be added here + } + + fun writeLastChangedTimeAttribute( + callback: DefaultClusterCallback, + value: Long, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeLastChangedTimeAttribute( + callback: LastChangedTimeAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readReplacementProductListAttribute(callback: ReplacementProductListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeReplacementProductListAttribute( + callback: ReplacementProductListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AdministratorCommissioningCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AdministratorCommissioningCluster.kt new file mode 100644 index 00000000000000..5d2ec55d786c40 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AdministratorCommissioningCluster.kt @@ -0,0 +1,206 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class AdministratorCommissioningCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 60u + } + + fun openCommissioningWindow( + callback: DefaultClusterCallback, + commissioningTimeout: Integer, + PAKEPasscodeVerifier: ByteArray, + discriminator: Integer, + iterations: Long, + salt: ByteArray, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun openBasicCommissioningWindow( + callback: DefaultClusterCallback, + commissioningTimeout: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun revokeCommissioning(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + interface AdminFabricIndexAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AdminVendorIdAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readWindowStatusAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeWindowStatusAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAdminFabricIndexAttribute(callback: AdminFabricIndexAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAdminFabricIndexAttribute( + callback: AdminFabricIndexAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAdminVendorIdAttribute(callback: AdminVendorIdAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAdminVendorIdAttribute( + callback: AdminVendorIdAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AirQualityCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AirQualityCluster.kt new file mode 100644 index 00000000000000..c81674a306021c --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AirQualityCluster.kt @@ -0,0 +1,142 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class AirQualityCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 91u + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readAirQualityAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAirQualityAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ApplicationBasicCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ApplicationBasicCluster.kt new file mode 100644 index 00000000000000..6c315058fa2e9f --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ApplicationBasicCluster.kt @@ -0,0 +1,242 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class ApplicationBasicCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 1293u + } + + interface ApplicationAttributeCallback { + fun onSuccess(value: ChipStructs.ApplicationBasicClusterApplicationStruct) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AllowedVendorListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readVendorNameAttribute(callback: CharStringAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeVendorNameAttribute( + callback: CharStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readVendorIDAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeVendorIDAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readApplicationNameAttribute(callback: CharStringAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeApplicationNameAttribute( + callback: CharStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readProductIDAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeProductIDAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readApplicationAttribute(callback: ApplicationAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeApplicationAttribute( + callback: ApplicationAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readStatusAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeStatusAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readApplicationVersionAttribute(callback: CharStringAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeApplicationVersionAttribute( + callback: CharStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAllowedVendorListAttribute(callback: AllowedVendorListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAllowedVendorListAttribute( + callback: AllowedVendorListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ApplicationLauncherCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ApplicationLauncherCluster.kt new file mode 100644 index 00000000000000..21bfb4f5e37d19 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ApplicationLauncherCluster.kt @@ -0,0 +1,238 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class ApplicationLauncherCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 1292u + } + + fun launchApp( + callback: LauncherResponseCallback, + application: ChipStructs.ApplicationLauncherClusterApplicationStruct?, + data: ByteArray? + ) { + // Implementation needs to be added here + } + + fun launchApp( + callback: LauncherResponseCallback, + application: ChipStructs.ApplicationLauncherClusterApplicationStruct?, + data: ByteArray?, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun stopApp( + callback: LauncherResponseCallback, + application: ChipStructs.ApplicationLauncherClusterApplicationStruct? + ) { + // Implementation needs to be added here + } + + fun stopApp( + callback: LauncherResponseCallback, + application: ChipStructs.ApplicationLauncherClusterApplicationStruct?, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun hideApp( + callback: LauncherResponseCallback, + application: ChipStructs.ApplicationLauncherClusterApplicationStruct? + ) { + // Implementation needs to be added here + } + + fun hideApp( + callback: LauncherResponseCallback, + application: ChipStructs.ApplicationLauncherClusterApplicationStruct?, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + interface LauncherResponseCallback { + fun onSuccess(status: Integer, data: ByteArray?) + + fun onError(error: Exception) + } + + interface CatalogListAttributeCallback { + fun onSuccess(value: ArrayList?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface CurrentAppAttributeCallback { + fun onSuccess(value: ChipStructs.ApplicationLauncherClusterApplicationEPStruct?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readCatalogListAttribute(callback: CatalogListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeCatalogListAttribute( + callback: CatalogListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readCurrentAppAttribute(callback: CurrentAppAttributeCallback) { + // Implementation needs to be added here + } + + fun writeCurrentAppAttribute( + callback: DefaultClusterCallback, + value: ChipStructs.ApplicationLauncherClusterApplicationEPStruct + ) { + // Implementation needs to be added here + } + + fun writeCurrentAppAttribute( + callback: DefaultClusterCallback, + value: ChipStructs.ApplicationLauncherClusterApplicationEPStruct, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeCurrentAppAttribute( + callback: CurrentAppAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AudioOutputCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AudioOutputCluster.kt new file mode 100644 index 00000000000000..3eaae5e7ab157d --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AudioOutputCluster.kt @@ -0,0 +1,183 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class AudioOutputCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 1291u + } + + fun selectOutput(callback: DefaultClusterCallback, index: Integer) { + // Implementation needs to be added here + } + + fun selectOutput(callback: DefaultClusterCallback, index: Integer, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + fun renameOutput(callback: DefaultClusterCallback, index: Integer, name: String) { + // Implementation needs to be added here + } + + fun renameOutput( + callback: DefaultClusterCallback, + index: Integer, + name: String, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + interface OutputListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readOutputListAttribute(callback: OutputListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeOutputListAttribute( + callback: OutputListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readCurrentOutputAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeCurrentOutputAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BallastConfigurationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BallastConfigurationCluster.kt new file mode 100644 index 00000000000000..b0efd271d427f3 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BallastConfigurationCluster.kt @@ -0,0 +1,458 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class BallastConfigurationCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 769u + } + + interface IntrinsicBallastFactorAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface BallastFactorAdjustmentAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface LampRatedHoursAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface LampBurnHoursAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface LampBurnHoursTripPointAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readPhysicalMinLevelAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePhysicalMinLevelAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPhysicalMaxLevelAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePhysicalMaxLevelAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readBallastStatusAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeBallastStatusAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMinLevelAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeMinLevelAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeMinLevelAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeMinLevelAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMaxLevelAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeMaxLevelAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeMaxLevelAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeMaxLevelAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readIntrinsicBallastFactorAttribute(callback: IntrinsicBallastFactorAttributeCallback) { + // Implementation needs to be added here + } + + fun writeIntrinsicBallastFactorAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeIntrinsicBallastFactorAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeIntrinsicBallastFactorAttribute( + callback: IntrinsicBallastFactorAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readBallastFactorAdjustmentAttribute(callback: BallastFactorAdjustmentAttributeCallback) { + // Implementation needs to be added here + } + + fun writeBallastFactorAdjustmentAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeBallastFactorAdjustmentAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeBallastFactorAdjustmentAttribute( + callback: BallastFactorAdjustmentAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readLampQuantityAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeLampQuantityAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readLampTypeAttribute(callback: CharStringAttributeCallback) { + // Implementation needs to be added here + } + + fun writeLampTypeAttribute(callback: DefaultClusterCallback, value: String) { + // Implementation needs to be added here + } + + fun writeLampTypeAttribute( + callback: DefaultClusterCallback, + value: String, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeLampTypeAttribute( + callback: CharStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readLampManufacturerAttribute(callback: CharStringAttributeCallback) { + // Implementation needs to be added here + } + + fun writeLampManufacturerAttribute(callback: DefaultClusterCallback, value: String) { + // Implementation needs to be added here + } + + fun writeLampManufacturerAttribute( + callback: DefaultClusterCallback, + value: String, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeLampManufacturerAttribute( + callback: CharStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readLampRatedHoursAttribute(callback: LampRatedHoursAttributeCallback) { + // Implementation needs to be added here + } + + fun writeLampRatedHoursAttribute(callback: DefaultClusterCallback, value: Long) { + // Implementation needs to be added here + } + + fun writeLampRatedHoursAttribute( + callback: DefaultClusterCallback, + value: Long, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeLampRatedHoursAttribute( + callback: LampRatedHoursAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readLampBurnHoursAttribute(callback: LampBurnHoursAttributeCallback) { + // Implementation needs to be added here + } + + fun writeLampBurnHoursAttribute(callback: DefaultClusterCallback, value: Long) { + // Implementation needs to be added here + } + + fun writeLampBurnHoursAttribute( + callback: DefaultClusterCallback, + value: Long, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeLampBurnHoursAttribute( + callback: LampBurnHoursAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readLampAlarmModeAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeLampAlarmModeAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeLampAlarmModeAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeLampAlarmModeAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readLampBurnHoursTripPointAttribute(callback: LampBurnHoursTripPointAttributeCallback) { + // Implementation needs to be added here + } + + fun writeLampBurnHoursTripPointAttribute(callback: DefaultClusterCallback, value: Long) { + // Implementation needs to be added here + } + + fun writeLampBurnHoursTripPointAttribute( + callback: DefaultClusterCallback, + value: Long, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeLampBurnHoursTripPointAttribute( + callback: LampBurnHoursTripPointAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BarrierControlCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BarrierControlCluster.kt new file mode 100644 index 00000000000000..946845dcc57905 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BarrierControlCluster.kt @@ -0,0 +1,342 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class BarrierControlCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 259u + } + + fun barrierControlGoToPercent(callback: DefaultClusterCallback, percentOpen: Integer) { + // Implementation needs to be added here + } + + fun barrierControlGoToPercent( + callback: DefaultClusterCallback, + percentOpen: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun barrierControlStop(callback: DefaultClusterCallback) { + // Implementation needs to be added here + } + + fun barrierControlStop(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readBarrierMovingStateAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeBarrierMovingStateAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readBarrierSafetyStatusAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeBarrierSafetyStatusAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readBarrierCapabilitiesAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeBarrierCapabilitiesAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readBarrierOpenEventsAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeBarrierOpenEventsAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeBarrierOpenEventsAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeBarrierOpenEventsAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readBarrierCloseEventsAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeBarrierCloseEventsAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeBarrierCloseEventsAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeBarrierCloseEventsAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readBarrierCommandOpenEventsAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeBarrierCommandOpenEventsAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeBarrierCommandOpenEventsAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeBarrierCommandOpenEventsAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readBarrierCommandCloseEventsAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeBarrierCommandCloseEventsAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeBarrierCommandCloseEventsAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeBarrierCommandCloseEventsAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readBarrierOpenPeriodAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeBarrierOpenPeriodAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeBarrierOpenPeriodAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeBarrierOpenPeriodAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readBarrierClosePeriodAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeBarrierClosePeriodAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeBarrierClosePeriodAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeBarrierClosePeriodAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readBarrierPositionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeBarrierPositionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BasicInformationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BasicInformationCluster.kt new file mode 100644 index 00000000000000..7c9043360ea567 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BasicInformationCluster.kt @@ -0,0 +1,442 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class BasicInformationCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 40u + } + + fun mfgSpecificPing(callback: DefaultClusterCallback) { + // Implementation needs to be added here + } + + fun mfgSpecificPing(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + interface CapabilityMinimaAttributeCallback { + fun onSuccess(value: ChipStructs.BasicInformationClusterCapabilityMinimaStruct) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface ProductAppearanceAttributeCallback { + fun onSuccess(value: ChipStructs.BasicInformationClusterProductAppearanceStruct?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readDataModelRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeDataModelRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readVendorNameAttribute(callback: CharStringAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeVendorNameAttribute( + callback: CharStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readVendorIDAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeVendorIDAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readProductNameAttribute(callback: CharStringAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeProductNameAttribute( + callback: CharStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readProductIDAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeProductIDAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNodeLabelAttribute(callback: CharStringAttributeCallback) { + // Implementation needs to be added here + } + + fun writeNodeLabelAttribute(callback: DefaultClusterCallback, value: String) { + // Implementation needs to be added here + } + + fun writeNodeLabelAttribute( + callback: DefaultClusterCallback, + value: String, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeNodeLabelAttribute( + callback: CharStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readLocationAttribute(callback: CharStringAttributeCallback) { + // Implementation needs to be added here + } + + fun writeLocationAttribute(callback: DefaultClusterCallback, value: String) { + // Implementation needs to be added here + } + + fun writeLocationAttribute( + callback: DefaultClusterCallback, + value: String, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeLocationAttribute( + callback: CharStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readHardwareVersionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeHardwareVersionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readHardwareVersionStringAttribute(callback: CharStringAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeHardwareVersionStringAttribute( + callback: CharStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readSoftwareVersionAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeSoftwareVersionAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readSoftwareVersionStringAttribute(callback: CharStringAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeSoftwareVersionStringAttribute( + callback: CharStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readManufacturingDateAttribute(callback: CharStringAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeManufacturingDateAttribute( + callback: CharStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPartNumberAttribute(callback: CharStringAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePartNumberAttribute( + callback: CharStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readProductURLAttribute(callback: CharStringAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeProductURLAttribute( + callback: CharStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readProductLabelAttribute(callback: CharStringAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeProductLabelAttribute( + callback: CharStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readSerialNumberAttribute(callback: CharStringAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeSerialNumberAttribute( + callback: CharStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readLocalConfigDisabledAttribute(callback: BooleanAttributeCallback) { + // Implementation needs to be added here + } + + fun writeLocalConfigDisabledAttribute(callback: DefaultClusterCallback, value: Boolean) { + // Implementation needs to be added here + } + + fun writeLocalConfigDisabledAttribute( + callback: DefaultClusterCallback, + value: Boolean, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeLocalConfigDisabledAttribute( + callback: BooleanAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readReachableAttribute(callback: BooleanAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeReachableAttribute( + callback: BooleanAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readUniqueIDAttribute(callback: CharStringAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeUniqueIDAttribute( + callback: CharStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readCapabilityMinimaAttribute(callback: CapabilityMinimaAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeCapabilityMinimaAttribute( + callback: CapabilityMinimaAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readProductAppearanceAttribute(callback: ProductAppearanceAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeProductAppearanceAttribute( + callback: ProductAppearanceAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BinaryInputBasicCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BinaryInputBasicCluster.kt new file mode 100644 index 00000000000000..13102a5d6e7289 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BinaryInputBasicCluster.kt @@ -0,0 +1,310 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class BinaryInputBasicCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 15u + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readActiveTextAttribute(callback: CharStringAttributeCallback) { + // Implementation needs to be added here + } + + fun writeActiveTextAttribute(callback: DefaultClusterCallback, value: String) { + // Implementation needs to be added here + } + + fun writeActiveTextAttribute( + callback: DefaultClusterCallback, + value: String, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeActiveTextAttribute( + callback: CharStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readDescriptionAttribute(callback: CharStringAttributeCallback) { + // Implementation needs to be added here + } + + fun writeDescriptionAttribute(callback: DefaultClusterCallback, value: String) { + // Implementation needs to be added here + } + + fun writeDescriptionAttribute( + callback: DefaultClusterCallback, + value: String, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeDescriptionAttribute( + callback: CharStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readInactiveTextAttribute(callback: CharStringAttributeCallback) { + // Implementation needs to be added here + } + + fun writeInactiveTextAttribute(callback: DefaultClusterCallback, value: String) { + // Implementation needs to be added here + } + + fun writeInactiveTextAttribute( + callback: DefaultClusterCallback, + value: String, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeInactiveTextAttribute( + callback: CharStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readOutOfServiceAttribute(callback: BooleanAttributeCallback) { + // Implementation needs to be added here + } + + fun writeOutOfServiceAttribute(callback: DefaultClusterCallback, value: Boolean) { + // Implementation needs to be added here + } + + fun writeOutOfServiceAttribute( + callback: DefaultClusterCallback, + value: Boolean, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeOutOfServiceAttribute( + callback: BooleanAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPolarityAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePolarityAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPresentValueAttribute(callback: BooleanAttributeCallback) { + // Implementation needs to be added here + } + + fun writePresentValueAttribute(callback: DefaultClusterCallback, value: Boolean) { + // Implementation needs to be added here + } + + fun writePresentValueAttribute( + callback: DefaultClusterCallback, + value: Boolean, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribePresentValueAttribute( + callback: BooleanAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readReliabilityAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeReliabilityAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeReliabilityAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeReliabilityAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readStatusFlagsAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeStatusFlagsAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readApplicationTypeAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeApplicationTypeAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BindingCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BindingCluster.kt new file mode 100644 index 00000000000000..4ed086c2a795c7 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BindingCluster.kt @@ -0,0 +1,172 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class BindingCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 30u + } + + interface BindingAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readBindingAttribute(callback: BindingAttributeCallback) { + // Implementation needs to be added here + } + + fun readBindingAttributeWithFabricFilter( + callback: BindingAttributeCallback, + isFabricFiltered: Boolean + ) { + // Implementation needs to be added here + } + + fun writeBindingAttribute( + callback: DefaultClusterCallback, + value: ArrayList + ) { + // Implementation needs to be added here + } + + fun writeBindingAttribute( + callback: DefaultClusterCallback, + value: ArrayList, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeBindingAttribute( + callback: BindingAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BooleanStateCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BooleanStateCluster.kt new file mode 100644 index 00000000000000..8d3a717e618c5f --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BooleanStateCluster.kt @@ -0,0 +1,142 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class BooleanStateCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 69u + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readStateValueAttribute(callback: BooleanAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeStateValueAttribute( + callback: BooleanAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BridgedDeviceBasicInformationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BridgedDeviceBasicInformationCluster.kt new file mode 100644 index 00000000000000..e7171b39cead18 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BridgedDeviceBasicInformationCluster.kt @@ -0,0 +1,342 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class BridgedDeviceBasicInformationCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 57u + } + + interface ProductAppearanceAttributeCallback { + fun onSuccess(value: ChipStructs.BridgedDeviceBasicInformationClusterProductAppearanceStruct?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readVendorNameAttribute(callback: CharStringAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeVendorNameAttribute( + callback: CharStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readVendorIDAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeVendorIDAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readProductNameAttribute(callback: CharStringAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeProductNameAttribute( + callback: CharStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNodeLabelAttribute(callback: CharStringAttributeCallback) { + // Implementation needs to be added here + } + + fun writeNodeLabelAttribute(callback: DefaultClusterCallback, value: String) { + // Implementation needs to be added here + } + + fun writeNodeLabelAttribute( + callback: DefaultClusterCallback, + value: String, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeNodeLabelAttribute( + callback: CharStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readHardwareVersionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeHardwareVersionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readHardwareVersionStringAttribute(callback: CharStringAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeHardwareVersionStringAttribute( + callback: CharStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readSoftwareVersionAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeSoftwareVersionAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readSoftwareVersionStringAttribute(callback: CharStringAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeSoftwareVersionStringAttribute( + callback: CharStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readManufacturingDateAttribute(callback: CharStringAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeManufacturingDateAttribute( + callback: CharStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPartNumberAttribute(callback: CharStringAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePartNumberAttribute( + callback: CharStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readProductURLAttribute(callback: CharStringAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeProductURLAttribute( + callback: CharStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readProductLabelAttribute(callback: CharStringAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeProductLabelAttribute( + callback: CharStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readSerialNumberAttribute(callback: CharStringAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeSerialNumberAttribute( + callback: CharStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readReachableAttribute(callback: BooleanAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeReachableAttribute( + callback: BooleanAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readUniqueIDAttribute(callback: CharStringAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeUniqueIDAttribute( + callback: CharStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readProductAppearanceAttribute(callback: ProductAppearanceAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeProductAppearanceAttribute( + callback: ProductAppearanceAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/CarbonDioxideConcentrationMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/CarbonDioxideConcentrationMeasurementCluster.kt new file mode 100644 index 00000000000000..6562abd82bb5c1 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/CarbonDioxideConcentrationMeasurementCluster.kt @@ -0,0 +1,302 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class CarbonDioxideConcentrationMeasurementCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 1037u + } + + interface MeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface MinMeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface MaxMeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface PeakMeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AverageMeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readMeasuredValueAttribute(callback: MeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasuredValueAttribute( + callback: MeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMinMeasuredValueAttribute(callback: MinMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMinMeasuredValueAttribute( + callback: MinMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMaxMeasuredValueAttribute(callback: MaxMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMaxMeasuredValueAttribute( + callback: MaxMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPeakMeasuredValueAttribute(callback: PeakMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePeakMeasuredValueAttribute( + callback: PeakMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPeakMeasuredValueWindowAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePeakMeasuredValueWindowAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAverageMeasuredValueAttribute(callback: AverageMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAverageMeasuredValueAttribute( + callback: AverageMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAverageMeasuredValueWindowAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAverageMeasuredValueWindowAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readUncertaintyAttribute(callback: FloatAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeUncertaintyAttribute( + callback: FloatAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMeasurementUnitAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasurementUnitAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMeasurementMediumAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasurementMediumAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readLevelValueAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeLevelValueAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/CarbonMonoxideConcentrationMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/CarbonMonoxideConcentrationMeasurementCluster.kt new file mode 100644 index 00000000000000..451b4a986c2cf6 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/CarbonMonoxideConcentrationMeasurementCluster.kt @@ -0,0 +1,302 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class CarbonMonoxideConcentrationMeasurementCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 1036u + } + + interface MeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface MinMeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface MaxMeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface PeakMeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AverageMeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readMeasuredValueAttribute(callback: MeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasuredValueAttribute( + callback: MeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMinMeasuredValueAttribute(callback: MinMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMinMeasuredValueAttribute( + callback: MinMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMaxMeasuredValueAttribute(callback: MaxMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMaxMeasuredValueAttribute( + callback: MaxMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPeakMeasuredValueAttribute(callback: PeakMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePeakMeasuredValueAttribute( + callback: PeakMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPeakMeasuredValueWindowAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePeakMeasuredValueWindowAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAverageMeasuredValueAttribute(callback: AverageMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAverageMeasuredValueAttribute( + callback: AverageMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAverageMeasuredValueWindowAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAverageMeasuredValueWindowAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readUncertaintyAttribute(callback: FloatAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeUncertaintyAttribute( + callback: FloatAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMeasurementUnitAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasurementUnitAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMeasurementMediumAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasurementMediumAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readLevelValueAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeLevelValueAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ChannelCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ChannelCluster.kt new file mode 100644 index 00000000000000..125a7045445cf1 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ChannelCluster.kt @@ -0,0 +1,233 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class ChannelCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 1284u + } + + fun changeChannel(callback: ChangeChannelResponseCallback, match: String) { + // Implementation needs to be added here + } + + fun changeChannel( + callback: ChangeChannelResponseCallback, + match: String, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun changeChannelByNumber( + callback: DefaultClusterCallback, + majorNumber: Integer, + minorNumber: Integer + ) { + // Implementation needs to be added here + } + + fun changeChannelByNumber( + callback: DefaultClusterCallback, + majorNumber: Integer, + minorNumber: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun skipChannel(callback: DefaultClusterCallback, count: Integer) { + // Implementation needs to be added here + } + + fun skipChannel(callback: DefaultClusterCallback, count: Integer, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + interface ChangeChannelResponseCallback { + fun onSuccess(status: Integer, data: String?) + + fun onError(error: Exception) + } + + interface ChannelListAttributeCallback { + fun onSuccess(value: ArrayList?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface LineupAttributeCallback { + fun onSuccess(value: ChipStructs.ChannelClusterLineupInfoStruct?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface CurrentChannelAttributeCallback { + fun onSuccess(value: ChipStructs.ChannelClusterChannelInfoStruct?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readChannelListAttribute(callback: ChannelListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeChannelListAttribute( + callback: ChannelListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readLineupAttribute(callback: LineupAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeLineupAttribute( + callback: LineupAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readCurrentChannelAttribute(callback: CurrentChannelAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeCurrentChannelAttribute( + callback: CurrentChannelAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ColorControlCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ColorControlCluster.kt new file mode 100644 index 00000000000000..0faf5c751ba20b --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ColorControlCluster.kt @@ -0,0 +1,1432 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class ColorControlCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 768u + } + + fun moveToHue( + callback: DefaultClusterCallback, + hue: Integer, + direction: Integer, + transitionTime: Integer, + optionsMask: Integer, + optionsOverride: Integer + ) { + // Implementation needs to be added here + } + + fun moveToHue( + callback: DefaultClusterCallback, + hue: Integer, + direction: Integer, + transitionTime: Integer, + optionsMask: Integer, + optionsOverride: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun moveHue( + callback: DefaultClusterCallback, + moveMode: Integer, + rate: Integer, + optionsMask: Integer, + optionsOverride: Integer + ) { + // Implementation needs to be added here + } + + fun moveHue( + callback: DefaultClusterCallback, + moveMode: Integer, + rate: Integer, + optionsMask: Integer, + optionsOverride: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun stepHue( + callback: DefaultClusterCallback, + stepMode: Integer, + stepSize: Integer, + transitionTime: Integer, + optionsMask: Integer, + optionsOverride: Integer + ) { + // Implementation needs to be added here + } + + fun stepHue( + callback: DefaultClusterCallback, + stepMode: Integer, + stepSize: Integer, + transitionTime: Integer, + optionsMask: Integer, + optionsOverride: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun moveToSaturation( + callback: DefaultClusterCallback, + saturation: Integer, + transitionTime: Integer, + optionsMask: Integer, + optionsOverride: Integer + ) { + // Implementation needs to be added here + } + + fun moveToSaturation( + callback: DefaultClusterCallback, + saturation: Integer, + transitionTime: Integer, + optionsMask: Integer, + optionsOverride: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun moveSaturation( + callback: DefaultClusterCallback, + moveMode: Integer, + rate: Integer, + optionsMask: Integer, + optionsOverride: Integer + ) { + // Implementation needs to be added here + } + + fun moveSaturation( + callback: DefaultClusterCallback, + moveMode: Integer, + rate: Integer, + optionsMask: Integer, + optionsOverride: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun stepSaturation( + callback: DefaultClusterCallback, + stepMode: Integer, + stepSize: Integer, + transitionTime: Integer, + optionsMask: Integer, + optionsOverride: Integer + ) { + // Implementation needs to be added here + } + + fun stepSaturation( + callback: DefaultClusterCallback, + stepMode: Integer, + stepSize: Integer, + transitionTime: Integer, + optionsMask: Integer, + optionsOverride: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun moveToHueAndSaturation( + callback: DefaultClusterCallback, + hue: Integer, + saturation: Integer, + transitionTime: Integer, + optionsMask: Integer, + optionsOverride: Integer + ) { + // Implementation needs to be added here + } + + fun moveToHueAndSaturation( + callback: DefaultClusterCallback, + hue: Integer, + saturation: Integer, + transitionTime: Integer, + optionsMask: Integer, + optionsOverride: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun moveToColor( + callback: DefaultClusterCallback, + colorX: Integer, + colorY: Integer, + transitionTime: Integer, + optionsMask: Integer, + optionsOverride: Integer + ) { + // Implementation needs to be added here + } + + fun moveToColor( + callback: DefaultClusterCallback, + colorX: Integer, + colorY: Integer, + transitionTime: Integer, + optionsMask: Integer, + optionsOverride: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun moveColor( + callback: DefaultClusterCallback, + rateX: Integer, + rateY: Integer, + optionsMask: Integer, + optionsOverride: Integer + ) { + // Implementation needs to be added here + } + + fun moveColor( + callback: DefaultClusterCallback, + rateX: Integer, + rateY: Integer, + optionsMask: Integer, + optionsOverride: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun stepColor( + callback: DefaultClusterCallback, + stepX: Integer, + stepY: Integer, + transitionTime: Integer, + optionsMask: Integer, + optionsOverride: Integer + ) { + // Implementation needs to be added here + } + + fun stepColor( + callback: DefaultClusterCallback, + stepX: Integer, + stepY: Integer, + transitionTime: Integer, + optionsMask: Integer, + optionsOverride: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun moveToColorTemperature( + callback: DefaultClusterCallback, + colorTemperatureMireds: Integer, + transitionTime: Integer, + optionsMask: Integer, + optionsOverride: Integer + ) { + // Implementation needs to be added here + } + + fun moveToColorTemperature( + callback: DefaultClusterCallback, + colorTemperatureMireds: Integer, + transitionTime: Integer, + optionsMask: Integer, + optionsOverride: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun enhancedMoveToHue( + callback: DefaultClusterCallback, + enhancedHue: Integer, + direction: Integer, + transitionTime: Integer, + optionsMask: Integer, + optionsOverride: Integer + ) { + // Implementation needs to be added here + } + + fun enhancedMoveToHue( + callback: DefaultClusterCallback, + enhancedHue: Integer, + direction: Integer, + transitionTime: Integer, + optionsMask: Integer, + optionsOverride: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun enhancedMoveHue( + callback: DefaultClusterCallback, + moveMode: Integer, + rate: Integer, + optionsMask: Integer, + optionsOverride: Integer + ) { + // Implementation needs to be added here + } + + fun enhancedMoveHue( + callback: DefaultClusterCallback, + moveMode: Integer, + rate: Integer, + optionsMask: Integer, + optionsOverride: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun enhancedStepHue( + callback: DefaultClusterCallback, + stepMode: Integer, + stepSize: Integer, + transitionTime: Integer, + optionsMask: Integer, + optionsOverride: Integer + ) { + // Implementation needs to be added here + } + + fun enhancedStepHue( + callback: DefaultClusterCallback, + stepMode: Integer, + stepSize: Integer, + transitionTime: Integer, + optionsMask: Integer, + optionsOverride: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun enhancedMoveToHueAndSaturation( + callback: DefaultClusterCallback, + enhancedHue: Integer, + saturation: Integer, + transitionTime: Integer, + optionsMask: Integer, + optionsOverride: Integer + ) { + // Implementation needs to be added here + } + + fun enhancedMoveToHueAndSaturation( + callback: DefaultClusterCallback, + enhancedHue: Integer, + saturation: Integer, + transitionTime: Integer, + optionsMask: Integer, + optionsOverride: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun colorLoopSet( + callback: DefaultClusterCallback, + updateFlags: Integer, + action: Integer, + direction: Integer, + time: Integer, + startHue: Integer, + optionsMask: Integer, + optionsOverride: Integer + ) { + // Implementation needs to be added here + } + + fun colorLoopSet( + callback: DefaultClusterCallback, + updateFlags: Integer, + action: Integer, + direction: Integer, + time: Integer, + startHue: Integer, + optionsMask: Integer, + optionsOverride: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun stopMoveStep( + callback: DefaultClusterCallback, + optionsMask: Integer, + optionsOverride: Integer + ) { + // Implementation needs to be added here + } + + fun stopMoveStep( + callback: DefaultClusterCallback, + optionsMask: Integer, + optionsOverride: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun moveColorTemperature( + callback: DefaultClusterCallback, + moveMode: Integer, + rate: Integer, + colorTemperatureMinimumMireds: Integer, + colorTemperatureMaximumMireds: Integer, + optionsMask: Integer, + optionsOverride: Integer + ) { + // Implementation needs to be added here + } + + fun moveColorTemperature( + callback: DefaultClusterCallback, + moveMode: Integer, + rate: Integer, + colorTemperatureMinimumMireds: Integer, + colorTemperatureMaximumMireds: Integer, + optionsMask: Integer, + optionsOverride: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun stepColorTemperature( + callback: DefaultClusterCallback, + stepMode: Integer, + stepSize: Integer, + transitionTime: Integer, + colorTemperatureMinimumMireds: Integer, + colorTemperatureMaximumMireds: Integer, + optionsMask: Integer, + optionsOverride: Integer + ) { + // Implementation needs to be added here + } + + fun stepColorTemperature( + callback: DefaultClusterCallback, + stepMode: Integer, + stepSize: Integer, + transitionTime: Integer, + colorTemperatureMinimumMireds: Integer, + colorTemperatureMaximumMireds: Integer, + optionsMask: Integer, + optionsOverride: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + interface NumberOfPrimariesAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface Primary1IntensityAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface Primary2IntensityAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface Primary3IntensityAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface Primary4IntensityAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface Primary5IntensityAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface Primary6IntensityAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface ColorPointRIntensityAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface ColorPointGIntensityAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface ColorPointBIntensityAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface StartUpColorTemperatureMiredsAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readCurrentHueAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeCurrentHueAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readCurrentSaturationAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeCurrentSaturationAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRemainingTimeAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRemainingTimeAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readCurrentXAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeCurrentXAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readCurrentYAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeCurrentYAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readDriftCompensationAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeDriftCompensationAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readCompensationTextAttribute(callback: CharStringAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeCompensationTextAttribute( + callback: CharStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readColorTemperatureMiredsAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeColorTemperatureMiredsAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readColorModeAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeColorModeAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readOptionsAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeOptionsAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeOptionsAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeOptionsAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNumberOfPrimariesAttribute(callback: NumberOfPrimariesAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeNumberOfPrimariesAttribute( + callback: NumberOfPrimariesAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPrimary1XAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePrimary1XAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPrimary1YAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePrimary1YAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPrimary1IntensityAttribute(callback: Primary1IntensityAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePrimary1IntensityAttribute( + callback: Primary1IntensityAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPrimary2XAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePrimary2XAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPrimary2YAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePrimary2YAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPrimary2IntensityAttribute(callback: Primary2IntensityAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePrimary2IntensityAttribute( + callback: Primary2IntensityAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPrimary3XAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePrimary3XAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPrimary3YAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePrimary3YAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPrimary3IntensityAttribute(callback: Primary3IntensityAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePrimary3IntensityAttribute( + callback: Primary3IntensityAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPrimary4XAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePrimary4XAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPrimary4YAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePrimary4YAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPrimary4IntensityAttribute(callback: Primary4IntensityAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePrimary4IntensityAttribute( + callback: Primary4IntensityAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPrimary5XAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePrimary5XAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPrimary5YAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePrimary5YAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPrimary5IntensityAttribute(callback: Primary5IntensityAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePrimary5IntensityAttribute( + callback: Primary5IntensityAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPrimary6XAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePrimary6XAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPrimary6YAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePrimary6YAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPrimary6IntensityAttribute(callback: Primary6IntensityAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePrimary6IntensityAttribute( + callback: Primary6IntensityAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readWhitePointXAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeWhitePointXAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeWhitePointXAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeWhitePointXAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readWhitePointYAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeWhitePointYAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeWhitePointYAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeWhitePointYAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readColorPointRXAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeColorPointRXAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeColorPointRXAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeColorPointRXAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readColorPointRYAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeColorPointRYAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeColorPointRYAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeColorPointRYAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readColorPointRIntensityAttribute(callback: ColorPointRIntensityAttributeCallback) { + // Implementation needs to be added here + } + + fun writeColorPointRIntensityAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeColorPointRIntensityAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeColorPointRIntensityAttribute( + callback: ColorPointRIntensityAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readColorPointGXAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeColorPointGXAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeColorPointGXAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeColorPointGXAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readColorPointGYAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeColorPointGYAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeColorPointGYAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeColorPointGYAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readColorPointGIntensityAttribute(callback: ColorPointGIntensityAttributeCallback) { + // Implementation needs to be added here + } + + fun writeColorPointGIntensityAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeColorPointGIntensityAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeColorPointGIntensityAttribute( + callback: ColorPointGIntensityAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readColorPointBXAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeColorPointBXAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeColorPointBXAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeColorPointBXAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readColorPointBYAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeColorPointBYAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeColorPointBYAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeColorPointBYAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readColorPointBIntensityAttribute(callback: ColorPointBIntensityAttributeCallback) { + // Implementation needs to be added here + } + + fun writeColorPointBIntensityAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeColorPointBIntensityAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeColorPointBIntensityAttribute( + callback: ColorPointBIntensityAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEnhancedCurrentHueAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEnhancedCurrentHueAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEnhancedColorModeAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEnhancedColorModeAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readColorLoopActiveAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeColorLoopActiveAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readColorLoopDirectionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeColorLoopDirectionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readColorLoopTimeAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeColorLoopTimeAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readColorLoopStartEnhancedHueAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeColorLoopStartEnhancedHueAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readColorLoopStoredEnhancedHueAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeColorLoopStoredEnhancedHueAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readColorCapabilitiesAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeColorCapabilitiesAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readColorTempPhysicalMinMiredsAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeColorTempPhysicalMinMiredsAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readColorTempPhysicalMaxMiredsAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeColorTempPhysicalMaxMiredsAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readCoupleColorTempToLevelMinMiredsAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeCoupleColorTempToLevelMinMiredsAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readStartUpColorTemperatureMiredsAttribute( + callback: StartUpColorTemperatureMiredsAttributeCallback + ) { + // Implementation needs to be added here + } + + fun writeStartUpColorTemperatureMiredsAttribute( + callback: DefaultClusterCallback, + value: Integer + ) { + // Implementation needs to be added here + } + + fun writeStartUpColorTemperatureMiredsAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeStartUpColorTemperatureMiredsAttribute( + callback: StartUpColorTemperatureMiredsAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ContentLauncherCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ContentLauncherCluster.kt new file mode 100644 index 00000000000000..31c53d05ec49b6 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ContentLauncherCluster.kt @@ -0,0 +1,218 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class ContentLauncherCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 1290u + } + + fun launchContent( + callback: LauncherResponseCallback, + search: ChipStructs.ContentLauncherClusterContentSearchStruct, + autoPlay: Boolean, + data: String? + ) { + // Implementation needs to be added here + } + + fun launchContent( + callback: LauncherResponseCallback, + search: ChipStructs.ContentLauncherClusterContentSearchStruct, + autoPlay: Boolean, + data: String?, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun launchURL( + callback: LauncherResponseCallback, + contentURL: String, + displayString: String?, + brandingInformation: ChipStructs.ContentLauncherClusterBrandingInformationStruct? + ) { + // Implementation needs to be added here + } + + fun launchURL( + callback: LauncherResponseCallback, + contentURL: String, + displayString: String?, + brandingInformation: ChipStructs.ContentLauncherClusterBrandingInformationStruct?, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + interface LauncherResponseCallback { + fun onSuccess(status: Integer, data: String?) + + fun onError(error: Exception) + } + + interface AcceptHeaderAttributeCallback { + fun onSuccess(value: ArrayList?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readAcceptHeaderAttribute(callback: AcceptHeaderAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptHeaderAttribute( + callback: AcceptHeaderAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readSupportedStreamingProtocolsAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun writeSupportedStreamingProtocolsAttribute(callback: DefaultClusterCallback, value: Long) { + // Implementation needs to be added here + } + + fun writeSupportedStreamingProtocolsAttribute( + callback: DefaultClusterCallback, + value: Long, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeSupportedStreamingProtocolsAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DescriptorCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DescriptorCluster.kt new file mode 100644 index 00000000000000..fc0bc78ddddbfd --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DescriptorCluster.kt @@ -0,0 +1,230 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class DescriptorCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 29u + } + + interface DeviceTypeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface ServerListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface ClientListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface PartsListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface TagListAttributeCallback { + fun onSuccess(value: ArrayList?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readDeviceTypeListAttribute(callback: DeviceTypeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeDeviceTypeListAttribute( + callback: DeviceTypeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readServerListAttribute(callback: ServerListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeServerListAttribute( + callback: ServerListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClientListAttribute(callback: ClientListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClientListAttribute( + callback: ClientListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPartsListAttribute(callback: PartsListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePartsListAttribute( + callback: PartsListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readTagListAttribute(callback: TagListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeTagListAttribute( + callback: TagListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DiagnosticLogsCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DiagnosticLogsCluster.kt new file mode 100644 index 00000000000000..1eaf5b35f573f4 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DiagnosticLogsCluster.kt @@ -0,0 +1,155 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class DiagnosticLogsCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 50u + } + + fun retrieveLogsRequest( + callback: RetrieveLogsResponseCallback, + intent: Integer, + requestedProtocol: Integer, + transferFileDesignator: String? + ) { + // Implementation needs to be added here + } + + fun retrieveLogsRequest( + callback: RetrieveLogsResponseCallback, + intent: Integer, + requestedProtocol: Integer, + transferFileDesignator: String?, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + interface RetrieveLogsResponseCallback { + fun onSuccess(status: Integer, logContent: ByteArray, UTCTimeStamp: Long?, timeSinceBoot: Long?) + + fun onError(error: Exception) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DishwasherAlarmCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DishwasherAlarmCluster.kt new file mode 100644 index 00000000000000..fca1a80c6793eb --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DishwasherAlarmCluster.kt @@ -0,0 +1,182 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class DishwasherAlarmCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 93u + } + + fun reset(callback: DefaultClusterCallback, alarms: Long) { + // Implementation needs to be added here + } + + fun reset(callback: DefaultClusterCallback, alarms: Long, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + fun modifyEnabledAlarms(callback: DefaultClusterCallback, mask: Long) { + // Implementation needs to be added here + } + + fun modifyEnabledAlarms(callback: DefaultClusterCallback, mask: Long, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readMaskAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMaskAttribute(callback: LongAttributeCallback, minInterval: Int, maxInterval: Int) { + // Implementation needs to be added here + } + + fun readLatchAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeLatchAttribute(callback: LongAttributeCallback, minInterval: Int, maxInterval: Int) { + // Implementation needs to be added here + } + + fun readStateAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeStateAttribute(callback: LongAttributeCallback, minInterval: Int, maxInterval: Int) { + // Implementation needs to be added here + } + + fun readSupportedAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeSupportedAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DishwasherModeCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DishwasherModeCluster.kt new file mode 100644 index 00000000000000..22ea8827c31e0c --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DishwasherModeCluster.kt @@ -0,0 +1,244 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class DishwasherModeCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 89u + } + + fun changeToMode(callback: ChangeToModeResponseCallback, newMode: Integer) { + // Implementation needs to be added here + } + + fun changeToMode( + callback: ChangeToModeResponseCallback, + newMode: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + interface ChangeToModeResponseCallback { + fun onSuccess(status: Integer, statusText: String?) + + fun onError(error: Exception) + } + + interface SupportedModesAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface StartUpModeAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface OnModeAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readSupportedModesAttribute(callback: SupportedModesAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeSupportedModesAttribute( + callback: SupportedModesAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readCurrentModeAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeCurrentModeAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readStartUpModeAttribute(callback: StartUpModeAttributeCallback) { + // Implementation needs to be added here + } + + fun writeStartUpModeAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeStartUpModeAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeStartUpModeAttribute( + callback: StartUpModeAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readOnModeAttribute(callback: OnModeAttributeCallback) { + // Implementation needs to be added here + } + + fun writeOnModeAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeOnModeAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeOnModeAttribute( + callback: OnModeAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DoorLockCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DoorLockCluster.kt new file mode 100644 index 00000000000000..38253f104f8acb --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DoorLockCluster.kt @@ -0,0 +1,1112 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class DoorLockCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 257u + } + + fun lockDoor(callback: DefaultClusterCallback, PINCode: ByteArray?, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + fun unlockDoor(callback: DefaultClusterCallback, PINCode: ByteArray?, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + fun unlockWithTimeout( + callback: DefaultClusterCallback, + timeout: Integer, + PINCode: ByteArray?, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun setWeekDaySchedule( + callback: DefaultClusterCallback, + weekDayIndex: Integer, + userIndex: Integer, + daysMask: Integer, + startHour: Integer, + startMinute: Integer, + endHour: Integer, + endMinute: Integer + ) { + // Implementation needs to be added here + } + + fun setWeekDaySchedule( + callback: DefaultClusterCallback, + weekDayIndex: Integer, + userIndex: Integer, + daysMask: Integer, + startHour: Integer, + startMinute: Integer, + endHour: Integer, + endMinute: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun getWeekDaySchedule( + callback: GetWeekDayScheduleResponseCallback, + weekDayIndex: Integer, + userIndex: Integer + ) { + // Implementation needs to be added here + } + + fun getWeekDaySchedule( + callback: GetWeekDayScheduleResponseCallback, + weekDayIndex: Integer, + userIndex: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun clearWeekDaySchedule( + callback: DefaultClusterCallback, + weekDayIndex: Integer, + userIndex: Integer + ) { + // Implementation needs to be added here + } + + fun clearWeekDaySchedule( + callback: DefaultClusterCallback, + weekDayIndex: Integer, + userIndex: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun setYearDaySchedule( + callback: DefaultClusterCallback, + yearDayIndex: Integer, + userIndex: Integer, + localStartTime: Long, + localEndTime: Long + ) { + // Implementation needs to be added here + } + + fun setYearDaySchedule( + callback: DefaultClusterCallback, + yearDayIndex: Integer, + userIndex: Integer, + localStartTime: Long, + localEndTime: Long, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun getYearDaySchedule( + callback: GetYearDayScheduleResponseCallback, + yearDayIndex: Integer, + userIndex: Integer + ) { + // Implementation needs to be added here + } + + fun getYearDaySchedule( + callback: GetYearDayScheduleResponseCallback, + yearDayIndex: Integer, + userIndex: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun clearYearDaySchedule( + callback: DefaultClusterCallback, + yearDayIndex: Integer, + userIndex: Integer + ) { + // Implementation needs to be added here + } + + fun clearYearDaySchedule( + callback: DefaultClusterCallback, + yearDayIndex: Integer, + userIndex: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun setHolidaySchedule( + callback: DefaultClusterCallback, + holidayIndex: Integer, + localStartTime: Long, + localEndTime: Long, + operatingMode: Integer + ) { + // Implementation needs to be added here + } + + fun setHolidaySchedule( + callback: DefaultClusterCallback, + holidayIndex: Integer, + localStartTime: Long, + localEndTime: Long, + operatingMode: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun getHolidaySchedule(callback: GetHolidayScheduleResponseCallback, holidayIndex: Integer) { + // Implementation needs to be added here + } + + fun getHolidaySchedule( + callback: GetHolidayScheduleResponseCallback, + holidayIndex: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun clearHolidaySchedule(callback: DefaultClusterCallback, holidayIndex: Integer) { + // Implementation needs to be added here + } + + fun clearHolidaySchedule( + callback: DefaultClusterCallback, + holidayIndex: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun setUser( + callback: DefaultClusterCallback, + operationType: Integer, + userIndex: Integer, + userName: String?, + userUniqueID: Long?, + userStatus: Integer?, + userType: Integer?, + credentialRule: Integer?, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun getUser(callback: GetUserResponseCallback, userIndex: Integer) { + // Implementation needs to be added here + } + + fun getUser(callback: GetUserResponseCallback, userIndex: Integer, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + fun clearUser(callback: DefaultClusterCallback, userIndex: Integer, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + fun setCredential( + callback: SetCredentialResponseCallback, + operationType: Integer, + credential: ChipStructs.DoorLockClusterCredentialStruct, + credentialData: ByteArray, + userIndex: Integer?, + userStatus: Integer?, + userType: Integer?, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun getCredentialStatus( + callback: GetCredentialStatusResponseCallback, + credential: ChipStructs.DoorLockClusterCredentialStruct + ) { + // Implementation needs to be added here + } + + fun getCredentialStatus( + callback: GetCredentialStatusResponseCallback, + credential: ChipStructs.DoorLockClusterCredentialStruct, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun clearCredential( + callback: DefaultClusterCallback, + credential: ChipStructs.DoorLockClusterCredentialStruct?, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun unboltDoor(callback: DefaultClusterCallback, PINCode: ByteArray?, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + interface GetWeekDayScheduleResponseCallback { + fun onSuccess( + weekDayIndex: Integer, + userIndex: Integer, + status: Integer, + daysMask: Integer?, + startHour: Integer?, + startMinute: Integer?, + endHour: Integer?, + endMinute: Integer? + ) + + fun onError(error: Exception) + } + + interface GetYearDayScheduleResponseCallback { + fun onSuccess( + yearDayIndex: Integer, + userIndex: Integer, + status: Integer, + localStartTime: Long?, + localEndTime: Long? + ) + + fun onError(error: Exception) + } + + interface GetHolidayScheduleResponseCallback { + fun onSuccess( + holidayIndex: Integer, + status: Integer, + localStartTime: Long?, + localEndTime: Long?, + operatingMode: Integer? + ) + + fun onError(error: Exception) + } + + interface GetUserResponseCallback { + fun onSuccess( + userIndex: Integer, + userName: String?, + userUniqueID: Long?, + userStatus: Integer?, + userType: Integer?, + credentialRule: Integer?, + credentials: ArrayList?, + creatorFabricIndex: Integer?, + lastModifiedFabricIndex: Integer?, + nextUserIndex: Integer? + ) + + fun onError(error: Exception) + } + + interface SetCredentialResponseCallback { + fun onSuccess(status: Integer, userIndex: Integer?, nextCredentialIndex: Integer?) + + fun onError(error: Exception) + } + + interface GetCredentialStatusResponseCallback { + fun onSuccess( + credentialExists: Boolean, + userIndex: Integer?, + creatorFabricIndex: Integer?, + lastModifiedFabricIndex: Integer?, + nextCredentialIndex: Integer? + ) + + fun onError(error: Exception) + } + + interface LockStateAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface DoorStateAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readLockStateAttribute(callback: LockStateAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeLockStateAttribute( + callback: LockStateAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readLockTypeAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeLockTypeAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readActuatorEnabledAttribute(callback: BooleanAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeActuatorEnabledAttribute( + callback: BooleanAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readDoorStateAttribute(callback: DoorStateAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeDoorStateAttribute( + callback: DoorStateAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readDoorOpenEventsAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun writeDoorOpenEventsAttribute(callback: DefaultClusterCallback, value: Long) { + // Implementation needs to be added here + } + + fun writeDoorOpenEventsAttribute( + callback: DefaultClusterCallback, + value: Long, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeDoorOpenEventsAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readDoorClosedEventsAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun writeDoorClosedEventsAttribute(callback: DefaultClusterCallback, value: Long) { + // Implementation needs to be added here + } + + fun writeDoorClosedEventsAttribute( + callback: DefaultClusterCallback, + value: Long, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeDoorClosedEventsAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readOpenPeriodAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeOpenPeriodAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeOpenPeriodAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeOpenPeriodAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNumberOfTotalUsersSupportedAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeNumberOfTotalUsersSupportedAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNumberOfPINUsersSupportedAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeNumberOfPINUsersSupportedAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNumberOfRFIDUsersSupportedAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeNumberOfRFIDUsersSupportedAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNumberOfWeekDaySchedulesSupportedPerUserAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeNumberOfWeekDaySchedulesSupportedPerUserAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNumberOfYearDaySchedulesSupportedPerUserAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeNumberOfYearDaySchedulesSupportedPerUserAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNumberOfHolidaySchedulesSupportedAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeNumberOfHolidaySchedulesSupportedAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMaxPINCodeLengthAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMaxPINCodeLengthAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMinPINCodeLengthAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMinPINCodeLengthAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMaxRFIDCodeLengthAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMaxRFIDCodeLengthAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMinRFIDCodeLengthAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMinRFIDCodeLengthAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readCredentialRulesSupportAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeCredentialRulesSupportAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNumberOfCredentialsSupportedPerUserAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeNumberOfCredentialsSupportedPerUserAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readLanguageAttribute(callback: CharStringAttributeCallback) { + // Implementation needs to be added here + } + + fun writeLanguageAttribute(callback: DefaultClusterCallback, value: String) { + // Implementation needs to be added here + } + + fun writeLanguageAttribute( + callback: DefaultClusterCallback, + value: String, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeLanguageAttribute( + callback: CharStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readLEDSettingsAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeLEDSettingsAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeLEDSettingsAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeLEDSettingsAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAutoRelockTimeAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun writeAutoRelockTimeAttribute(callback: DefaultClusterCallback, value: Long) { + // Implementation needs to be added here + } + + fun writeAutoRelockTimeAttribute( + callback: DefaultClusterCallback, + value: Long, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeAutoRelockTimeAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readSoundVolumeAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeSoundVolumeAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeSoundVolumeAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeSoundVolumeAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readOperatingModeAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeOperatingModeAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeOperatingModeAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeOperatingModeAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readSupportedOperatingModesAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeSupportedOperatingModesAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readDefaultConfigurationRegisterAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeDefaultConfigurationRegisterAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEnableLocalProgrammingAttribute(callback: BooleanAttributeCallback) { + // Implementation needs to be added here + } + + fun writeEnableLocalProgrammingAttribute(callback: DefaultClusterCallback, value: Boolean) { + // Implementation needs to be added here + } + + fun writeEnableLocalProgrammingAttribute( + callback: DefaultClusterCallback, + value: Boolean, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeEnableLocalProgrammingAttribute( + callback: BooleanAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEnableOneTouchLockingAttribute(callback: BooleanAttributeCallback) { + // Implementation needs to be added here + } + + fun writeEnableOneTouchLockingAttribute(callback: DefaultClusterCallback, value: Boolean) { + // Implementation needs to be added here + } + + fun writeEnableOneTouchLockingAttribute( + callback: DefaultClusterCallback, + value: Boolean, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeEnableOneTouchLockingAttribute( + callback: BooleanAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEnableInsideStatusLEDAttribute(callback: BooleanAttributeCallback) { + // Implementation needs to be added here + } + + fun writeEnableInsideStatusLEDAttribute(callback: DefaultClusterCallback, value: Boolean) { + // Implementation needs to be added here + } + + fun writeEnableInsideStatusLEDAttribute( + callback: DefaultClusterCallback, + value: Boolean, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeEnableInsideStatusLEDAttribute( + callback: BooleanAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEnablePrivacyModeButtonAttribute(callback: BooleanAttributeCallback) { + // Implementation needs to be added here + } + + fun writeEnablePrivacyModeButtonAttribute(callback: DefaultClusterCallback, value: Boolean) { + // Implementation needs to be added here + } + + fun writeEnablePrivacyModeButtonAttribute( + callback: DefaultClusterCallback, + value: Boolean, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeEnablePrivacyModeButtonAttribute( + callback: BooleanAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readLocalProgrammingFeaturesAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeLocalProgrammingFeaturesAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeLocalProgrammingFeaturesAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeLocalProgrammingFeaturesAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readWrongCodeEntryLimitAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeWrongCodeEntryLimitAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeWrongCodeEntryLimitAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeWrongCodeEntryLimitAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readUserCodeTemporaryDisableTimeAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeUserCodeTemporaryDisableTimeAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeUserCodeTemporaryDisableTimeAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeUserCodeTemporaryDisableTimeAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readSendPINOverTheAirAttribute(callback: BooleanAttributeCallback) { + // Implementation needs to be added here + } + + fun writeSendPINOverTheAirAttribute(callback: DefaultClusterCallback, value: Boolean) { + // Implementation needs to be added here + } + + fun writeSendPINOverTheAirAttribute( + callback: DefaultClusterCallback, + value: Boolean, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeSendPINOverTheAirAttribute( + callback: BooleanAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRequirePINforRemoteOperationAttribute(callback: BooleanAttributeCallback) { + // Implementation needs to be added here + } + + fun writeRequirePINforRemoteOperationAttribute(callback: DefaultClusterCallback, value: Boolean) { + // Implementation needs to be added here + } + + fun writeRequirePINforRemoteOperationAttribute( + callback: DefaultClusterCallback, + value: Boolean, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeRequirePINforRemoteOperationAttribute( + callback: BooleanAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readExpiringUserTimeoutAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeExpiringUserTimeoutAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeExpiringUserTimeoutAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeExpiringUserTimeoutAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ElectricalMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ElectricalMeasurementCluster.kt new file mode 100644 index 00000000000000..bd0c67644a9f2e --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ElectricalMeasurementCluster.kt @@ -0,0 +1,1795 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class ElectricalMeasurementCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 2820u + } + + fun getProfileInfoCommand(callback: DefaultClusterCallback) { + // Implementation needs to be added here + } + + fun getProfileInfoCommand(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + fun getMeasurementProfileCommand( + callback: DefaultClusterCallback, + attributeId: Integer, + startTime: Long, + numberOfIntervals: Integer + ) { + // Implementation needs to be added here + } + + fun getMeasurementProfileCommand( + callback: DefaultClusterCallback, + attributeId: Integer, + startTime: Long, + numberOfIntervals: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readMeasurementTypeAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasurementTypeAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readDcVoltageAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeDcVoltageAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readDcVoltageMinAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeDcVoltageMinAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readDcVoltageMaxAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeDcVoltageMaxAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readDcCurrentAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeDcCurrentAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readDcCurrentMinAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeDcCurrentMinAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readDcCurrentMaxAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeDcCurrentMaxAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readDcPowerAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeDcPowerAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readDcPowerMinAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeDcPowerMinAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readDcPowerMaxAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeDcPowerMaxAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readDcVoltageMultiplierAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeDcVoltageMultiplierAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readDcVoltageDivisorAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeDcVoltageDivisorAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readDcCurrentMultiplierAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeDcCurrentMultiplierAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readDcCurrentDivisorAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeDcCurrentDivisorAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readDcPowerMultiplierAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeDcPowerMultiplierAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readDcPowerDivisorAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeDcPowerDivisorAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcFrequencyAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcFrequencyAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcFrequencyMinAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcFrequencyMinAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcFrequencyMaxAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcFrequencyMaxAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNeutralCurrentAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeNeutralCurrentAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readTotalActivePowerAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeTotalActivePowerAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readTotalReactivePowerAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeTotalReactivePowerAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readTotalApparentPowerAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeTotalApparentPowerAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMeasured1stHarmonicCurrentAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasured1stHarmonicCurrentAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMeasured3rdHarmonicCurrentAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasured3rdHarmonicCurrentAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMeasured5thHarmonicCurrentAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasured5thHarmonicCurrentAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMeasured7thHarmonicCurrentAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasured7thHarmonicCurrentAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMeasured9thHarmonicCurrentAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasured9thHarmonicCurrentAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMeasured11thHarmonicCurrentAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasured11thHarmonicCurrentAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMeasuredPhase1stHarmonicCurrentAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasuredPhase1stHarmonicCurrentAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMeasuredPhase3rdHarmonicCurrentAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasuredPhase3rdHarmonicCurrentAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMeasuredPhase5thHarmonicCurrentAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasuredPhase5thHarmonicCurrentAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMeasuredPhase7thHarmonicCurrentAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasuredPhase7thHarmonicCurrentAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMeasuredPhase9thHarmonicCurrentAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasuredPhase9thHarmonicCurrentAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMeasuredPhase11thHarmonicCurrentAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasuredPhase11thHarmonicCurrentAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcFrequencyMultiplierAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcFrequencyMultiplierAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcFrequencyDivisorAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcFrequencyDivisorAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPowerMultiplierAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePowerMultiplierAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPowerDivisorAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePowerDivisorAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readHarmonicCurrentMultiplierAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeHarmonicCurrentMultiplierAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPhaseHarmonicCurrentMultiplierAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePhaseHarmonicCurrentMultiplierAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readInstantaneousVoltageAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeInstantaneousVoltageAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readInstantaneousLineCurrentAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeInstantaneousLineCurrentAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readInstantaneousActiveCurrentAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeInstantaneousActiveCurrentAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readInstantaneousReactiveCurrentAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeInstantaneousReactiveCurrentAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readInstantaneousPowerAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeInstantaneousPowerAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRmsVoltageAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRmsVoltageAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRmsVoltageMinAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRmsVoltageMinAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRmsVoltageMaxAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRmsVoltageMaxAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRmsCurrentAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRmsCurrentAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRmsCurrentMinAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRmsCurrentMinAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRmsCurrentMaxAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRmsCurrentMaxAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readActivePowerAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeActivePowerAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readActivePowerMinAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeActivePowerMinAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readActivePowerMaxAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeActivePowerMaxAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readReactivePowerAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeReactivePowerAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readApparentPowerAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeApparentPowerAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPowerFactorAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePowerFactorAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAverageRmsVoltageMeasurementPeriodAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeAverageRmsVoltageMeasurementPeriodAttribute( + callback: DefaultClusterCallback, + value: Integer + ) { + // Implementation needs to be added here + } + + fun writeAverageRmsVoltageMeasurementPeriodAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeAverageRmsVoltageMeasurementPeriodAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAverageRmsUnderVoltageCounterAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeAverageRmsUnderVoltageCounterAttribute( + callback: DefaultClusterCallback, + value: Integer + ) { + // Implementation needs to be added here + } + + fun writeAverageRmsUnderVoltageCounterAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeAverageRmsUnderVoltageCounterAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRmsExtremeOverVoltagePeriodAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeRmsExtremeOverVoltagePeriodAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeRmsExtremeOverVoltagePeriodAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeRmsExtremeOverVoltagePeriodAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRmsExtremeUnderVoltagePeriodAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeRmsExtremeUnderVoltagePeriodAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeRmsExtremeUnderVoltagePeriodAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeRmsExtremeUnderVoltagePeriodAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRmsVoltageSagPeriodAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeRmsVoltageSagPeriodAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeRmsVoltageSagPeriodAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeRmsVoltageSagPeriodAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRmsVoltageSwellPeriodAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeRmsVoltageSwellPeriodAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeRmsVoltageSwellPeriodAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeRmsVoltageSwellPeriodAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcVoltageMultiplierAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcVoltageMultiplierAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcVoltageDivisorAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcVoltageDivisorAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcCurrentMultiplierAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcCurrentMultiplierAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcCurrentDivisorAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcCurrentDivisorAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcPowerMultiplierAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcPowerMultiplierAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcPowerDivisorAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcPowerDivisorAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readOverloadAlarmsMaskAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeOverloadAlarmsMaskAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeOverloadAlarmsMaskAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeOverloadAlarmsMaskAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readVoltageOverloadAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeVoltageOverloadAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readCurrentOverloadAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeCurrentOverloadAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcOverloadAlarmsMaskAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeAcOverloadAlarmsMaskAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeAcOverloadAlarmsMaskAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeAcOverloadAlarmsMaskAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcVoltageOverloadAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcVoltageOverloadAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcCurrentOverloadAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcCurrentOverloadAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcActivePowerOverloadAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcActivePowerOverloadAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcReactivePowerOverloadAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcReactivePowerOverloadAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAverageRmsOverVoltageAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAverageRmsOverVoltageAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAverageRmsUnderVoltageAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAverageRmsUnderVoltageAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRmsExtremeOverVoltageAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRmsExtremeOverVoltageAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRmsExtremeUnderVoltageAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRmsExtremeUnderVoltageAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRmsVoltageSagAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRmsVoltageSagAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRmsVoltageSwellAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRmsVoltageSwellAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readLineCurrentPhaseBAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeLineCurrentPhaseBAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readActiveCurrentPhaseBAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeActiveCurrentPhaseBAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readReactiveCurrentPhaseBAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeReactiveCurrentPhaseBAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRmsVoltagePhaseBAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRmsVoltagePhaseBAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRmsVoltageMinPhaseBAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRmsVoltageMinPhaseBAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRmsVoltageMaxPhaseBAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRmsVoltageMaxPhaseBAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRmsCurrentPhaseBAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRmsCurrentPhaseBAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRmsCurrentMinPhaseBAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRmsCurrentMinPhaseBAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRmsCurrentMaxPhaseBAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRmsCurrentMaxPhaseBAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readActivePowerPhaseBAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeActivePowerPhaseBAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readActivePowerMinPhaseBAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeActivePowerMinPhaseBAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readActivePowerMaxPhaseBAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeActivePowerMaxPhaseBAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readReactivePowerPhaseBAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeReactivePowerPhaseBAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readApparentPowerPhaseBAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeApparentPowerPhaseBAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPowerFactorPhaseBAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePowerFactorPhaseBAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAverageRmsVoltageMeasurementPeriodPhaseBAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAverageRmsVoltageMeasurementPeriodPhaseBAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAverageRmsOverVoltageCounterPhaseBAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAverageRmsOverVoltageCounterPhaseBAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAverageRmsUnderVoltageCounterPhaseBAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAverageRmsUnderVoltageCounterPhaseBAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRmsExtremeOverVoltagePeriodPhaseBAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRmsExtremeOverVoltagePeriodPhaseBAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRmsExtremeUnderVoltagePeriodPhaseBAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRmsExtremeUnderVoltagePeriodPhaseBAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRmsVoltageSagPeriodPhaseBAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRmsVoltageSagPeriodPhaseBAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRmsVoltageSwellPeriodPhaseBAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRmsVoltageSwellPeriodPhaseBAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readLineCurrentPhaseCAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeLineCurrentPhaseCAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readActiveCurrentPhaseCAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeActiveCurrentPhaseCAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readReactiveCurrentPhaseCAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeReactiveCurrentPhaseCAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRmsVoltagePhaseCAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRmsVoltagePhaseCAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRmsVoltageMinPhaseCAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRmsVoltageMinPhaseCAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRmsVoltageMaxPhaseCAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRmsVoltageMaxPhaseCAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRmsCurrentPhaseCAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRmsCurrentPhaseCAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRmsCurrentMinPhaseCAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRmsCurrentMinPhaseCAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRmsCurrentMaxPhaseCAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRmsCurrentMaxPhaseCAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readActivePowerPhaseCAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeActivePowerPhaseCAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readActivePowerMinPhaseCAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeActivePowerMinPhaseCAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readActivePowerMaxPhaseCAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeActivePowerMaxPhaseCAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readReactivePowerPhaseCAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeReactivePowerPhaseCAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readApparentPowerPhaseCAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeApparentPowerPhaseCAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPowerFactorPhaseCAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePowerFactorPhaseCAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAverageRmsVoltageMeasurementPeriodPhaseCAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAverageRmsVoltageMeasurementPeriodPhaseCAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAverageRmsOverVoltageCounterPhaseCAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAverageRmsOverVoltageCounterPhaseCAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAverageRmsUnderVoltageCounterPhaseCAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAverageRmsUnderVoltageCounterPhaseCAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRmsExtremeOverVoltagePeriodPhaseCAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRmsExtremeOverVoltagePeriodPhaseCAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRmsExtremeUnderVoltagePeriodPhaseCAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRmsExtremeUnderVoltagePeriodPhaseCAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRmsVoltageSagPeriodPhaseCAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRmsVoltageSagPeriodPhaseCAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRmsVoltageSwellPeriodPhaseCAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRmsVoltageSwellPeriodPhaseCAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/EthernetNetworkDiagnosticsCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/EthernetNetworkDiagnosticsCluster.kt new file mode 100644 index 00000000000000..f61cf30b5f114a --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/EthernetNetworkDiagnosticsCluster.kt @@ -0,0 +1,270 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class EthernetNetworkDiagnosticsCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 55u + } + + fun resetCounts(callback: DefaultClusterCallback) { + // Implementation needs to be added here + } + + fun resetCounts(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + interface PHYRateAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface FullDuplexAttributeCallback { + fun onSuccess(value: Boolean?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface CarrierDetectAttributeCallback { + fun onSuccess(value: Boolean?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readPHYRateAttribute(callback: PHYRateAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePHYRateAttribute( + callback: PHYRateAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFullDuplexAttribute(callback: FullDuplexAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFullDuplexAttribute( + callback: FullDuplexAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPacketRxCountAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePacketRxCountAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPacketTxCountAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePacketTxCountAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readTxErrCountAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeTxErrCountAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readCollisionCountAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeCollisionCountAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readOverrunCountAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeOverrunCountAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readCarrierDetectAttribute(callback: CarrierDetectAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeCarrierDetectAttribute( + callback: CarrierDetectAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readTimeSinceResetAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeTimeSinceResetAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FanControlCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FanControlCluster.kt new file mode 100644 index 00000000000000..fea630a32e28c0 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FanControlCluster.kt @@ -0,0 +1,393 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class FanControlCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 514u + } + + fun step( + callback: DefaultClusterCallback, + direction: Integer, + wrap: Boolean?, + lowestOff: Boolean? + ) { + // Implementation needs to be added here + } + + fun step( + callback: DefaultClusterCallback, + direction: Integer, + wrap: Boolean?, + lowestOff: Boolean?, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + interface PercentSettingAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface SpeedSettingAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readFanModeAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeFanModeAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeFanModeAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeFanModeAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFanModeSequenceAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeFanModeSequenceAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeFanModeSequenceAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeFanModeSequenceAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPercentSettingAttribute(callback: PercentSettingAttributeCallback) { + // Implementation needs to be added here + } + + fun writePercentSettingAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writePercentSettingAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribePercentSettingAttribute( + callback: PercentSettingAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPercentCurrentAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePercentCurrentAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readSpeedMaxAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeSpeedMaxAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readSpeedSettingAttribute(callback: SpeedSettingAttributeCallback) { + // Implementation needs to be added here + } + + fun writeSpeedSettingAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeSpeedSettingAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeSpeedSettingAttribute( + callback: SpeedSettingAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readSpeedCurrentAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeSpeedCurrentAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRockSupportAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRockSupportAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRockSettingAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeRockSettingAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeRockSettingAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeRockSettingAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readWindSupportAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeWindSupportAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readWindSettingAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeWindSettingAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeWindSettingAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeWindSettingAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAirflowDirectionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeAirflowDirectionAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeAirflowDirectionAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeAirflowDirectionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FaultInjectionCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FaultInjectionCluster.kt new file mode 100644 index 00000000000000..e7fe9587313e38 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FaultInjectionCluster.kt @@ -0,0 +1,172 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class FaultInjectionCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 4294048774u + } + + fun failAtFault( + callback: DefaultClusterCallback, + type: Integer, + id: Long, + numCallsToSkip: Long, + numCallsToFail: Long, + takeMutex: Boolean + ) { + // Implementation needs to be added here + } + + fun failAtFault( + callback: DefaultClusterCallback, + type: Integer, + id: Long, + numCallsToSkip: Long, + numCallsToFail: Long, + takeMutex: Boolean, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun failRandomlyAtFault( + callback: DefaultClusterCallback, + type: Integer, + id: Long, + percentage: Integer + ) { + // Implementation needs to be added here + } + + fun failRandomlyAtFault( + callback: DefaultClusterCallback, + type: Integer, + id: Long, + percentage: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FixedLabelCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FixedLabelCluster.kt new file mode 100644 index 00000000000000..bab84393fc7fd2 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FixedLabelCluster.kt @@ -0,0 +1,150 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class FixedLabelCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 64u + } + + interface LabelListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readLabelListAttribute(callback: LabelListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeLabelListAttribute( + callback: LabelListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FlowMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FlowMeasurementCluster.kt new file mode 100644 index 00000000000000..f1075fa6282d2b --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FlowMeasurementCluster.kt @@ -0,0 +1,202 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class FlowMeasurementCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 1028u + } + + interface MeasuredValueAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface MinMeasuredValueAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface MaxMeasuredValueAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readMeasuredValueAttribute(callback: MeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasuredValueAttribute( + callback: MeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMinMeasuredValueAttribute(callback: MinMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMinMeasuredValueAttribute( + callback: MinMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMaxMeasuredValueAttribute(callback: MaxMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMaxMeasuredValueAttribute( + callback: MaxMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readToleranceAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeToleranceAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FormaldehydeConcentrationMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FormaldehydeConcentrationMeasurementCluster.kt new file mode 100644 index 00000000000000..5ab1994b688368 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FormaldehydeConcentrationMeasurementCluster.kt @@ -0,0 +1,302 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class FormaldehydeConcentrationMeasurementCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 1067u + } + + interface MeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface MinMeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface MaxMeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface PeakMeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AverageMeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readMeasuredValueAttribute(callback: MeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasuredValueAttribute( + callback: MeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMinMeasuredValueAttribute(callback: MinMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMinMeasuredValueAttribute( + callback: MinMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMaxMeasuredValueAttribute(callback: MaxMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMaxMeasuredValueAttribute( + callback: MaxMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPeakMeasuredValueAttribute(callback: PeakMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePeakMeasuredValueAttribute( + callback: PeakMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPeakMeasuredValueWindowAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePeakMeasuredValueWindowAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAverageMeasuredValueAttribute(callback: AverageMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAverageMeasuredValueAttribute( + callback: AverageMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAverageMeasuredValueWindowAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAverageMeasuredValueWindowAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readUncertaintyAttribute(callback: FloatAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeUncertaintyAttribute( + callback: FloatAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMeasurementUnitAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasurementUnitAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMeasurementMediumAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasurementMediumAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readLevelValueAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeLevelValueAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GeneralCommissioningCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GeneralCommissioningCluster.kt new file mode 100644 index 00000000000000..de430114295af6 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GeneralCommissioningCluster.kt @@ -0,0 +1,275 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class GeneralCommissioningCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 48u + } + + fun armFailSafe( + callback: ArmFailSafeResponseCallback, + expiryLengthSeconds: Integer, + breadcrumb: Long + ) { + // Implementation needs to be added here + } + + fun armFailSafe( + callback: ArmFailSafeResponseCallback, + expiryLengthSeconds: Integer, + breadcrumb: Long, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun setRegulatoryConfig( + callback: SetRegulatoryConfigResponseCallback, + newRegulatoryConfig: Integer, + countryCode: String, + breadcrumb: Long + ) { + // Implementation needs to be added here + } + + fun setRegulatoryConfig( + callback: SetRegulatoryConfigResponseCallback, + newRegulatoryConfig: Integer, + countryCode: String, + breadcrumb: Long, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun commissioningComplete(callback: CommissioningCompleteResponseCallback) { + // Implementation needs to be added here + } + + fun commissioningComplete( + callback: CommissioningCompleteResponseCallback, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + interface ArmFailSafeResponseCallback { + fun onSuccess(errorCode: Integer, debugText: String) + + fun onError(error: Exception) + } + + interface SetRegulatoryConfigResponseCallback { + fun onSuccess(errorCode: Integer, debugText: String) + + fun onError(error: Exception) + } + + interface CommissioningCompleteResponseCallback { + fun onSuccess(errorCode: Integer, debugText: String) + + fun onError(error: Exception) + } + + interface BasicCommissioningInfoAttributeCallback { + fun onSuccess(value: ChipStructs.GeneralCommissioningClusterBasicCommissioningInfo) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readBreadcrumbAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun writeBreadcrumbAttribute(callback: DefaultClusterCallback, value: Long) { + // Implementation needs to be added here + } + + fun writeBreadcrumbAttribute( + callback: DefaultClusterCallback, + value: Long, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeBreadcrumbAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readBasicCommissioningInfoAttribute(callback: BasicCommissioningInfoAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeBasicCommissioningInfoAttribute( + callback: BasicCommissioningInfoAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRegulatoryConfigAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRegulatoryConfigAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readLocationCapabilityAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeLocationCapabilityAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readSupportsConcurrentConnectionAttribute(callback: BooleanAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeSupportsConcurrentConnectionAttribute( + callback: BooleanAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GeneralDiagnosticsCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GeneralDiagnosticsCluster.kt new file mode 100644 index 00000000000000..931f3f1904afd6 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GeneralDiagnosticsCluster.kt @@ -0,0 +1,295 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class GeneralDiagnosticsCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 51u + } + + fun testEventTrigger(callback: DefaultClusterCallback, enableKey: ByteArray, eventTrigger: Long) { + // Implementation needs to be added here + } + + fun testEventTrigger( + callback: DefaultClusterCallback, + enableKey: ByteArray, + eventTrigger: Long, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + interface NetworkInterfacesAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface ActiveHardwareFaultsAttributeCallback { + fun onSuccess(value: ArrayList?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface ActiveRadioFaultsAttributeCallback { + fun onSuccess(value: ArrayList?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface ActiveNetworkFaultsAttributeCallback { + fun onSuccess(value: ArrayList?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readNetworkInterfacesAttribute(callback: NetworkInterfacesAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeNetworkInterfacesAttribute( + callback: NetworkInterfacesAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRebootCountAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRebootCountAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readUpTimeAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeUpTimeAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readTotalOperationalHoursAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeTotalOperationalHoursAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readBootReasonAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeBootReasonAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readActiveHardwareFaultsAttribute(callback: ActiveHardwareFaultsAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeActiveHardwareFaultsAttribute( + callback: ActiveHardwareFaultsAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readActiveRadioFaultsAttribute(callback: ActiveRadioFaultsAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeActiveRadioFaultsAttribute( + callback: ActiveRadioFaultsAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readActiveNetworkFaultsAttribute(callback: ActiveNetworkFaultsAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeActiveNetworkFaultsAttribute( + callback: ActiveNetworkFaultsAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readTestEventTriggersEnabledAttribute(callback: BooleanAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeTestEventTriggersEnabledAttribute( + callback: BooleanAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAverageWearCountAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAverageWearCountAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GroupKeyManagementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GroupKeyManagementCluster.kt new file mode 100644 index 00000000000000..724e266df3b59f --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GroupKeyManagementCluster.kt @@ -0,0 +1,285 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class GroupKeyManagementCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 63u + } + + fun keySetWrite( + callback: DefaultClusterCallback, + groupKeySet: ChipStructs.GroupKeyManagementClusterGroupKeySetStruct + ) { + // Implementation needs to be added here + } + + fun keySetWrite( + callback: DefaultClusterCallback, + groupKeySet: ChipStructs.GroupKeyManagementClusterGroupKeySetStruct, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun keySetRead(callback: KeySetReadResponseCallback, groupKeySetID: Integer) { + // Implementation needs to be added here + } + + fun keySetRead( + callback: KeySetReadResponseCallback, + groupKeySetID: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun keySetRemove(callback: DefaultClusterCallback, groupKeySetID: Integer) { + // Implementation needs to be added here + } + + fun keySetRemove( + callback: DefaultClusterCallback, + groupKeySetID: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun keySetReadAllIndices(callback: KeySetReadAllIndicesResponseCallback) { + // Implementation needs to be added here + } + + fun keySetReadAllIndices( + callback: KeySetReadAllIndicesResponseCallback, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + interface KeySetReadResponseCallback { + fun onSuccess(groupKeySet: ChipStructs.GroupKeyManagementClusterGroupKeySetStruct) + + fun onError(error: Exception) + } + + interface KeySetReadAllIndicesResponseCallback { + fun onSuccess(groupKeySetIDs: ArrayList) + + fun onError(error: Exception) + } + + interface GroupKeyMapAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GroupTableAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readGroupKeyMapAttribute(callback: GroupKeyMapAttributeCallback) { + // Implementation needs to be added here + } + + fun readGroupKeyMapAttributeWithFabricFilter( + callback: GroupKeyMapAttributeCallback, + isFabricFiltered: Boolean + ) { + // Implementation needs to be added here + } + + fun writeGroupKeyMapAttribute( + callback: DefaultClusterCallback, + value: ArrayList + ) { + // Implementation needs to be added here + } + + fun writeGroupKeyMapAttribute( + callback: DefaultClusterCallback, + value: ArrayList, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeGroupKeyMapAttribute( + callback: GroupKeyMapAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGroupTableAttribute(callback: GroupTableAttributeCallback) { + // Implementation needs to be added here + } + + fun readGroupTableAttributeWithFabricFilter( + callback: GroupTableAttributeCallback, + isFabricFiltered: Boolean + ) { + // Implementation needs to be added here + } + + fun subscribeGroupTableAttribute( + callback: GroupTableAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMaxGroupsPerFabricAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMaxGroupsPerFabricAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMaxGroupKeysPerFabricAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMaxGroupKeysPerFabricAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GroupsCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GroupsCluster.kt new file mode 100644 index 00000000000000..95af698e4a9098 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GroupsCluster.kt @@ -0,0 +1,235 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class GroupsCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 4u + } + + fun addGroup(callback: AddGroupResponseCallback, groupID: Integer, groupName: String) { + // Implementation needs to be added here + } + + fun addGroup( + callback: AddGroupResponseCallback, + groupID: Integer, + groupName: String, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun viewGroup(callback: ViewGroupResponseCallback, groupID: Integer) { + // Implementation needs to be added here + } + + fun viewGroup(callback: ViewGroupResponseCallback, groupID: Integer, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + fun getGroupMembership( + callback: GetGroupMembershipResponseCallback, + groupList: ArrayList + ) { + // Implementation needs to be added here + } + + fun getGroupMembership( + callback: GetGroupMembershipResponseCallback, + groupList: ArrayList, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun removeGroup(callback: RemoveGroupResponseCallback, groupID: Integer) { + // Implementation needs to be added here + } + + fun removeGroup( + callback: RemoveGroupResponseCallback, + groupID: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun removeAllGroups(callback: DefaultClusterCallback) { + // Implementation needs to be added here + } + + fun removeAllGroups(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + fun addGroupIfIdentifying(callback: DefaultClusterCallback, groupID: Integer, groupName: String) { + // Implementation needs to be added here + } + + fun addGroupIfIdentifying( + callback: DefaultClusterCallback, + groupID: Integer, + groupName: String, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + interface AddGroupResponseCallback { + fun onSuccess(status: Integer, groupID: Integer) + + fun onError(error: Exception) + } + + interface ViewGroupResponseCallback { + fun onSuccess(status: Integer, groupID: Integer, groupName: String) + + fun onError(error: Exception) + } + + interface GetGroupMembershipResponseCallback { + fun onSuccess(capacity: Integer?, groupList: ArrayList) + + fun onError(error: Exception) + } + + interface RemoveGroupResponseCallback { + fun onSuccess(status: Integer, groupID: Integer) + + fun onError(error: Exception) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readNameSupportAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeNameSupportAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/HepaFilterMonitoringCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/HepaFilterMonitoringCluster.kt new file mode 100644 index 00000000000000..197ec7b96c2d35 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/HepaFilterMonitoringCluster.kt @@ -0,0 +1,240 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class HepaFilterMonitoringCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 113u + } + + fun resetCondition(callback: DefaultClusterCallback) { + // Implementation needs to be added here + } + + fun resetCondition(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + interface LastChangedTimeAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface ReplacementProductListAttributeCallback { + fun onSuccess( + value: ArrayList? + ) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readConditionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeConditionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readDegradationDirectionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeDegradationDirectionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readChangeIndicationAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeChangeIndicationAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readInPlaceIndicatorAttribute(callback: BooleanAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeInPlaceIndicatorAttribute( + callback: BooleanAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readLastChangedTimeAttribute(callback: LastChangedTimeAttributeCallback) { + // Implementation needs to be added here + } + + fun writeLastChangedTimeAttribute(callback: DefaultClusterCallback, value: Long) { + // Implementation needs to be added here + } + + fun writeLastChangedTimeAttribute( + callback: DefaultClusterCallback, + value: Long, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeLastChangedTimeAttribute( + callback: LastChangedTimeAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readReplacementProductListAttribute(callback: ReplacementProductListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeReplacementProductListAttribute( + callback: ReplacementProductListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IcdManagementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IcdManagementCluster.kt new file mode 100644 index 00000000000000..5356755c8cab03 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IcdManagementCluster.kt @@ -0,0 +1,269 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class IcdManagementCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 70u + } + + fun registerClient( + callback: RegisterClientResponseCallback, + checkInNodeID: Long, + monitoredSubject: Long, + key: ByteArray, + verificationKey: ByteArray? + ) { + // Implementation needs to be added here + } + + fun registerClient( + callback: RegisterClientResponseCallback, + checkInNodeID: Long, + monitoredSubject: Long, + key: ByteArray, + verificationKey: ByteArray?, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun unregisterClient( + callback: DefaultClusterCallback, + checkInNodeID: Long, + verificationKey: ByteArray? + ) { + // Implementation needs to be added here + } + + fun unregisterClient( + callback: DefaultClusterCallback, + checkInNodeID: Long, + verificationKey: ByteArray?, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun stayActiveRequest(callback: DefaultClusterCallback) { + // Implementation needs to be added here + } + + fun stayActiveRequest(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + interface RegisterClientResponseCallback { + fun onSuccess(ICDCounter: Long) + + fun onError(error: Exception) + } + + interface RegisteredClientsAttributeCallback { + fun onSuccess(value: ArrayList?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readIdleModeDurationAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeIdleModeDurationAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readActiveModeDurationAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeActiveModeDurationAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readActiveModeThresholdAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeActiveModeThresholdAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRegisteredClientsAttribute(callback: RegisteredClientsAttributeCallback) { + // Implementation needs to be added here + } + + fun readRegisteredClientsAttributeWithFabricFilter( + callback: RegisteredClientsAttributeCallback, + isFabricFiltered: Boolean + ) { + // Implementation needs to be added here + } + + fun subscribeRegisteredClientsAttribute( + callback: RegisteredClientsAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readICDCounterAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeICDCounterAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClientsSupportedPerFabricAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClientsSupportedPerFabricAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IdentifyCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IdentifyCluster.kt new file mode 100644 index 00000000000000..be3173b944c2f3 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IdentifyCluster.kt @@ -0,0 +1,191 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class IdentifyCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 3u + } + + fun identify(callback: DefaultClusterCallback, identifyTime: Integer) { + // Implementation needs to be added here + } + + fun identify(callback: DefaultClusterCallback, identifyTime: Integer, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + fun triggerEffect( + callback: DefaultClusterCallback, + effectIdentifier: Integer, + effectVariant: Integer + ) { + // Implementation needs to be added here + } + + fun triggerEffect( + callback: DefaultClusterCallback, + effectIdentifier: Integer, + effectVariant: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readIdentifyTimeAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeIdentifyTimeAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeIdentifyTimeAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeIdentifyTimeAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readIdentifyTypeAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeIdentifyTypeAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IlluminanceMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IlluminanceMeasurementCluster.kt new file mode 100644 index 00000000000000..ddd3a319e7954c --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IlluminanceMeasurementCluster.kt @@ -0,0 +1,222 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class IlluminanceMeasurementCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 1024u + } + + interface MeasuredValueAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface MinMeasuredValueAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface MaxMeasuredValueAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface LightSensorTypeAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readMeasuredValueAttribute(callback: MeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasuredValueAttribute( + callback: MeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMinMeasuredValueAttribute(callback: MinMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMinMeasuredValueAttribute( + callback: MinMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMaxMeasuredValueAttribute(callback: MaxMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMaxMeasuredValueAttribute( + callback: MaxMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readToleranceAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeToleranceAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readLightSensorTypeAttribute(callback: LightSensorTypeAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeLightSensorTypeAttribute( + callback: LightSensorTypeAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/KeypadInputCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/KeypadInputCluster.kt new file mode 100644 index 00000000000000..cb3b2175937043 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/KeypadInputCluster.kt @@ -0,0 +1,144 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class KeypadInputCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 1289u + } + + fun sendKey(callback: SendKeyResponseCallback, keyCode: Integer) { + // Implementation needs to be added here + } + + fun sendKey(callback: SendKeyResponseCallback, keyCode: Integer, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + interface SendKeyResponseCallback { + fun onSuccess(status: Integer) + + fun onError(error: Exception) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryWasherControlsCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryWasherControlsCluster.kt new file mode 100644 index 00000000000000..525094a60feb69 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryWasherControlsCluster.kt @@ -0,0 +1,226 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class LaundryWasherControlsCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 83u + } + + interface SpinSpeedsAttributeCallback { + fun onSuccess(value: ArrayList?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface SpinSpeedCurrentAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface SupportedRinsesAttributeCallback { + fun onSuccess(value: ArrayList?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readSpinSpeedsAttribute(callback: SpinSpeedsAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeSpinSpeedsAttribute( + callback: SpinSpeedsAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readSpinSpeedCurrentAttribute(callback: SpinSpeedCurrentAttributeCallback) { + // Implementation needs to be added here + } + + fun writeSpinSpeedCurrentAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeSpinSpeedCurrentAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeSpinSpeedCurrentAttribute( + callback: SpinSpeedCurrentAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNumberOfRinsesAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeNumberOfRinsesAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeNumberOfRinsesAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeNumberOfRinsesAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readSupportedRinsesAttribute(callback: SupportedRinsesAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeSupportedRinsesAttribute( + callback: SupportedRinsesAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryWasherModeCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryWasherModeCluster.kt new file mode 100644 index 00000000000000..0064e8588a5bc3 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryWasherModeCluster.kt @@ -0,0 +1,244 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class LaundryWasherModeCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 81u + } + + fun changeToMode(callback: ChangeToModeResponseCallback, newMode: Integer) { + // Implementation needs to be added here + } + + fun changeToMode( + callback: ChangeToModeResponseCallback, + newMode: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + interface ChangeToModeResponseCallback { + fun onSuccess(status: Integer, statusText: String?) + + fun onError(error: Exception) + } + + interface SupportedModesAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface StartUpModeAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface OnModeAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readSupportedModesAttribute(callback: SupportedModesAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeSupportedModesAttribute( + callback: SupportedModesAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readCurrentModeAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeCurrentModeAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readStartUpModeAttribute(callback: StartUpModeAttributeCallback) { + // Implementation needs to be added here + } + + fun writeStartUpModeAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeStartUpModeAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeStartUpModeAttribute( + callback: StartUpModeAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readOnModeAttribute(callback: OnModeAttributeCallback) { + // Implementation needs to be added here + } + + fun writeOnModeAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeOnModeAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeOnModeAttribute( + callback: OnModeAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LevelControlCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LevelControlCluster.kt new file mode 100644 index 00000000000000..fd0c0ecd34dc6c --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LevelControlCluster.kt @@ -0,0 +1,602 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class LevelControlCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 8u + } + + fun moveToLevel( + callback: DefaultClusterCallback, + level: Integer, + transitionTime: Integer?, + optionsMask: Integer, + optionsOverride: Integer + ) { + // Implementation needs to be added here + } + + fun moveToLevel( + callback: DefaultClusterCallback, + level: Integer, + transitionTime: Integer?, + optionsMask: Integer, + optionsOverride: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun move( + callback: DefaultClusterCallback, + moveMode: Integer, + rate: Integer?, + optionsMask: Integer, + optionsOverride: Integer + ) { + // Implementation needs to be added here + } + + fun move( + callback: DefaultClusterCallback, + moveMode: Integer, + rate: Integer?, + optionsMask: Integer, + optionsOverride: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun step( + callback: DefaultClusterCallback, + stepMode: Integer, + stepSize: Integer, + transitionTime: Integer?, + optionsMask: Integer, + optionsOverride: Integer + ) { + // Implementation needs to be added here + } + + fun step( + callback: DefaultClusterCallback, + stepMode: Integer, + stepSize: Integer, + transitionTime: Integer?, + optionsMask: Integer, + optionsOverride: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun stop(callback: DefaultClusterCallback, optionsMask: Integer, optionsOverride: Integer) { + // Implementation needs to be added here + } + + fun stop( + callback: DefaultClusterCallback, + optionsMask: Integer, + optionsOverride: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun moveToLevelWithOnOff( + callback: DefaultClusterCallback, + level: Integer, + transitionTime: Integer?, + optionsMask: Integer, + optionsOverride: Integer + ) { + // Implementation needs to be added here + } + + fun moveToLevelWithOnOff( + callback: DefaultClusterCallback, + level: Integer, + transitionTime: Integer?, + optionsMask: Integer, + optionsOverride: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun moveWithOnOff( + callback: DefaultClusterCallback, + moveMode: Integer, + rate: Integer?, + optionsMask: Integer, + optionsOverride: Integer + ) { + // Implementation needs to be added here + } + + fun moveWithOnOff( + callback: DefaultClusterCallback, + moveMode: Integer, + rate: Integer?, + optionsMask: Integer, + optionsOverride: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun stepWithOnOff( + callback: DefaultClusterCallback, + stepMode: Integer, + stepSize: Integer, + transitionTime: Integer?, + optionsMask: Integer, + optionsOverride: Integer + ) { + // Implementation needs to be added here + } + + fun stepWithOnOff( + callback: DefaultClusterCallback, + stepMode: Integer, + stepSize: Integer, + transitionTime: Integer?, + optionsMask: Integer, + optionsOverride: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun stopWithOnOff( + callback: DefaultClusterCallback, + optionsMask: Integer, + optionsOverride: Integer + ) { + // Implementation needs to be added here + } + + fun stopWithOnOff( + callback: DefaultClusterCallback, + optionsMask: Integer, + optionsOverride: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun moveToClosestFrequency(callback: DefaultClusterCallback, frequency: Integer) { + // Implementation needs to be added here + } + + fun moveToClosestFrequency( + callback: DefaultClusterCallback, + frequency: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + interface CurrentLevelAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface OnLevelAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface OnTransitionTimeAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface OffTransitionTimeAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface DefaultMoveRateAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface StartUpCurrentLevelAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readCurrentLevelAttribute(callback: CurrentLevelAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeCurrentLevelAttribute( + callback: CurrentLevelAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRemainingTimeAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRemainingTimeAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMinLevelAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMinLevelAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMaxLevelAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMaxLevelAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readCurrentFrequencyAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeCurrentFrequencyAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMinFrequencyAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMinFrequencyAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMaxFrequencyAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMaxFrequencyAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readOptionsAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeOptionsAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeOptionsAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeOptionsAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readOnOffTransitionTimeAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeOnOffTransitionTimeAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeOnOffTransitionTimeAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeOnOffTransitionTimeAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readOnLevelAttribute(callback: OnLevelAttributeCallback) { + // Implementation needs to be added here + } + + fun writeOnLevelAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeOnLevelAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeOnLevelAttribute( + callback: OnLevelAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readOnTransitionTimeAttribute(callback: OnTransitionTimeAttributeCallback) { + // Implementation needs to be added here + } + + fun writeOnTransitionTimeAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeOnTransitionTimeAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeOnTransitionTimeAttribute( + callback: OnTransitionTimeAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readOffTransitionTimeAttribute(callback: OffTransitionTimeAttributeCallback) { + // Implementation needs to be added here + } + + fun writeOffTransitionTimeAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeOffTransitionTimeAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeOffTransitionTimeAttribute( + callback: OffTransitionTimeAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readDefaultMoveRateAttribute(callback: DefaultMoveRateAttributeCallback) { + // Implementation needs to be added here + } + + fun writeDefaultMoveRateAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeDefaultMoveRateAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeDefaultMoveRateAttribute( + callback: DefaultMoveRateAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readStartUpCurrentLevelAttribute(callback: StartUpCurrentLevelAttributeCallback) { + // Implementation needs to be added here + } + + fun writeStartUpCurrentLevelAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeStartUpCurrentLevelAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeStartUpCurrentLevelAttribute( + callback: StartUpCurrentLevelAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LocalizationConfigurationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LocalizationConfigurationCluster.kt new file mode 100644 index 00000000000000..f83ccd57f56f5d --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LocalizationConfigurationCluster.kt @@ -0,0 +1,174 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class LocalizationConfigurationCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 43u + } + + interface SupportedLocalesAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readActiveLocaleAttribute(callback: CharStringAttributeCallback) { + // Implementation needs to be added here + } + + fun writeActiveLocaleAttribute(callback: DefaultClusterCallback, value: String) { + // Implementation needs to be added here + } + + fun writeActiveLocaleAttribute( + callback: DefaultClusterCallback, + value: String, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeActiveLocaleAttribute( + callback: CharStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readSupportedLocalesAttribute(callback: SupportedLocalesAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeSupportedLocalesAttribute( + callback: SupportedLocalesAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LowPowerCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LowPowerCluster.kt new file mode 100644 index 00000000000000..b21f9f213b3bf0 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LowPowerCluster.kt @@ -0,0 +1,138 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class LowPowerCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 1288u + } + + fun sleep(callback: DefaultClusterCallback) { + // Implementation needs to be added here + } + + fun sleep(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MediaInputCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MediaInputCluster.kt new file mode 100644 index 00000000000000..27482138fe32a0 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MediaInputCluster.kt @@ -0,0 +1,199 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class MediaInputCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 1287u + } + + fun selectInput(callback: DefaultClusterCallback, index: Integer) { + // Implementation needs to be added here + } + + fun selectInput(callback: DefaultClusterCallback, index: Integer, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + fun showInputStatus(callback: DefaultClusterCallback) { + // Implementation needs to be added here + } + + fun showInputStatus(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + fun hideInputStatus(callback: DefaultClusterCallback) { + // Implementation needs to be added here + } + + fun hideInputStatus(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + fun renameInput(callback: DefaultClusterCallback, index: Integer, name: String) { + // Implementation needs to be added here + } + + fun renameInput( + callback: DefaultClusterCallback, + index: Integer, + name: String, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + interface InputListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readInputListAttribute(callback: InputListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeInputListAttribute( + callback: InputListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readCurrentInputAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeCurrentInputAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MediaPlaybackCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MediaPlaybackCluster.kt new file mode 100644 index 00000000000000..cfceceef431065 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MediaPlaybackCluster.kt @@ -0,0 +1,356 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class MediaPlaybackCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 1286u + } + + fun play(callback: PlaybackResponseCallback) { + // Implementation needs to be added here + } + + fun play(callback: PlaybackResponseCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + fun pause(callback: PlaybackResponseCallback) { + // Implementation needs to be added here + } + + fun pause(callback: PlaybackResponseCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + fun stop(callback: PlaybackResponseCallback) { + // Implementation needs to be added here + } + + fun stop(callback: PlaybackResponseCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + fun startOver(callback: PlaybackResponseCallback) { + // Implementation needs to be added here + } + + fun startOver(callback: PlaybackResponseCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + fun previous(callback: PlaybackResponseCallback) { + // Implementation needs to be added here + } + + fun previous(callback: PlaybackResponseCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + fun next(callback: PlaybackResponseCallback) { + // Implementation needs to be added here + } + + fun next(callback: PlaybackResponseCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + fun rewind(callback: PlaybackResponseCallback) { + // Implementation needs to be added here + } + + fun rewind(callback: PlaybackResponseCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + fun fastForward(callback: PlaybackResponseCallback) { + // Implementation needs to be added here + } + + fun fastForward(callback: PlaybackResponseCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + fun skipForward(callback: PlaybackResponseCallback, deltaPositionMilliseconds: Long) { + // Implementation needs to be added here + } + + fun skipForward( + callback: PlaybackResponseCallback, + deltaPositionMilliseconds: Long, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun skipBackward(callback: PlaybackResponseCallback, deltaPositionMilliseconds: Long) { + // Implementation needs to be added here + } + + fun skipBackward( + callback: PlaybackResponseCallback, + deltaPositionMilliseconds: Long, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun seek(callback: PlaybackResponseCallback, position: Long) { + // Implementation needs to be added here + } + + fun seek(callback: PlaybackResponseCallback, position: Long, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + interface PlaybackResponseCallback { + fun onSuccess(status: Integer, data: String?) + + fun onError(error: Exception) + } + + interface StartTimeAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface DurationAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface SampledPositionAttributeCallback { + fun onSuccess(value: ChipStructs.MediaPlaybackClusterPlaybackPositionStruct?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface SeekRangeEndAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface SeekRangeStartAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readCurrentStateAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeCurrentStateAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readStartTimeAttribute(callback: StartTimeAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeStartTimeAttribute( + callback: StartTimeAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readDurationAttribute(callback: DurationAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeDurationAttribute( + callback: DurationAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readSampledPositionAttribute(callback: SampledPositionAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeSampledPositionAttribute( + callback: SampledPositionAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPlaybackSpeedAttribute(callback: FloatAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePlaybackSpeedAttribute( + callback: FloatAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readSeekRangeEndAttribute(callback: SeekRangeEndAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeSeekRangeEndAttribute( + callback: SeekRangeEndAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readSeekRangeStartAttribute(callback: SeekRangeStartAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeSeekRangeStartAttribute( + callback: SeekRangeStartAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ModeSelectCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ModeSelectCluster.kt new file mode 100644 index 00000000000000..a54d83e4866bba --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ModeSelectCluster.kt @@ -0,0 +1,266 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class ModeSelectCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 80u + } + + fun changeToMode(callback: DefaultClusterCallback, newMode: Integer) { + // Implementation needs to be added here + } + + fun changeToMode(callback: DefaultClusterCallback, newMode: Integer, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + interface StandardNamespaceAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface SupportedModesAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface StartUpModeAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface OnModeAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readDescriptionAttribute(callback: CharStringAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeDescriptionAttribute( + callback: CharStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readStandardNamespaceAttribute(callback: StandardNamespaceAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeStandardNamespaceAttribute( + callback: StandardNamespaceAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readSupportedModesAttribute(callback: SupportedModesAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeSupportedModesAttribute( + callback: SupportedModesAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readCurrentModeAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeCurrentModeAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readStartUpModeAttribute(callback: StartUpModeAttributeCallback) { + // Implementation needs to be added here + } + + fun writeStartUpModeAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeStartUpModeAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeStartUpModeAttribute( + callback: StartUpModeAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readOnModeAttribute(callback: OnModeAttributeCallback) { + // Implementation needs to be added here + } + + fun writeOnModeAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeOnModeAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeOnModeAttribute( + callback: OnModeAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/NetworkCommissioningCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/NetworkCommissioningCluster.kt new file mode 100644 index 00000000000000..a946c8cb89c8b7 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/NetworkCommissioningCluster.kt @@ -0,0 +1,441 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class NetworkCommissioningCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 49u + } + + fun scanNetworks(callback: ScanNetworksResponseCallback, ssid: ByteArray?, breadcrumb: Long?) { + // Implementation needs to be added here + } + + fun scanNetworks( + callback: ScanNetworksResponseCallback, + ssid: ByteArray?, + breadcrumb: Long?, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun addOrUpdateWiFiNetwork( + callback: NetworkConfigResponseCallback, + ssid: ByteArray, + credentials: ByteArray, + breadcrumb: Long? + ) { + // Implementation needs to be added here + } + + fun addOrUpdateWiFiNetwork( + callback: NetworkConfigResponseCallback, + ssid: ByteArray, + credentials: ByteArray, + breadcrumb: Long?, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun addOrUpdateThreadNetwork( + callback: NetworkConfigResponseCallback, + operationalDataset: ByteArray, + breadcrumb: Long? + ) { + // Implementation needs to be added here + } + + fun addOrUpdateThreadNetwork( + callback: NetworkConfigResponseCallback, + operationalDataset: ByteArray, + breadcrumb: Long?, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun removeNetwork( + callback: NetworkConfigResponseCallback, + networkID: ByteArray, + breadcrumb: Long? + ) { + // Implementation needs to be added here + } + + fun removeNetwork( + callback: NetworkConfigResponseCallback, + networkID: ByteArray, + breadcrumb: Long?, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun connectNetwork( + callback: ConnectNetworkResponseCallback, + networkID: ByteArray, + breadcrumb: Long? + ) { + // Implementation needs to be added here + } + + fun connectNetwork( + callback: ConnectNetworkResponseCallback, + networkID: ByteArray, + breadcrumb: Long?, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun reorderNetwork( + callback: NetworkConfigResponseCallback, + networkID: ByteArray, + networkIndex: Integer, + breadcrumb: Long? + ) { + // Implementation needs to be added here + } + + fun reorderNetwork( + callback: NetworkConfigResponseCallback, + networkID: ByteArray, + networkIndex: Integer, + breadcrumb: Long?, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + interface ScanNetworksResponseCallback { + fun onSuccess( + networkingStatus: Integer, + debugText: String?, + wiFiScanResults: + ArrayList?, + threadScanResults: + ArrayList? + ) + + fun onError(error: Exception) + } + + interface NetworkConfigResponseCallback { + fun onSuccess(networkingStatus: Integer, debugText: String?, networkIndex: Integer?) + + fun onError(error: Exception) + } + + interface ConnectNetworkResponseCallback { + fun onSuccess(networkingStatus: Integer, debugText: String?, errorValue: Long?) + + fun onError(error: Exception) + } + + interface NetworksAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface LastNetworkingStatusAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface LastNetworkIDAttributeCallback { + fun onSuccess(value: ByteArray?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface LastConnectErrorValueAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface SupportedWiFiBandsAttributeCallback { + fun onSuccess(value: ArrayList?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readMaxNetworksAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMaxNetworksAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNetworksAttribute(callback: NetworksAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeNetworksAttribute( + callback: NetworksAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readScanMaxTimeSecondsAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeScanMaxTimeSecondsAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readConnectMaxTimeSecondsAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeConnectMaxTimeSecondsAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readInterfaceEnabledAttribute(callback: BooleanAttributeCallback) { + // Implementation needs to be added here + } + + fun writeInterfaceEnabledAttribute(callback: DefaultClusterCallback, value: Boolean) { + // Implementation needs to be added here + } + + fun writeInterfaceEnabledAttribute( + callback: DefaultClusterCallback, + value: Boolean, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeInterfaceEnabledAttribute( + callback: BooleanAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readLastNetworkingStatusAttribute(callback: LastNetworkingStatusAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeLastNetworkingStatusAttribute( + callback: LastNetworkingStatusAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readLastNetworkIDAttribute(callback: LastNetworkIDAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeLastNetworkIDAttribute( + callback: LastNetworkIDAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readLastConnectErrorValueAttribute(callback: LastConnectErrorValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeLastConnectErrorValueAttribute( + callback: LastConnectErrorValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readSupportedWiFiBandsAttribute(callback: SupportedWiFiBandsAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeSupportedWiFiBandsAttribute( + callback: SupportedWiFiBandsAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readSupportedThreadFeaturesAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeSupportedThreadFeaturesAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readThreadVersionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeThreadVersionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/NitrogenDioxideConcentrationMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/NitrogenDioxideConcentrationMeasurementCluster.kt new file mode 100644 index 00000000000000..5d1496588b3d58 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/NitrogenDioxideConcentrationMeasurementCluster.kt @@ -0,0 +1,302 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class NitrogenDioxideConcentrationMeasurementCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 1043u + } + + interface MeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface MinMeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface MaxMeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface PeakMeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AverageMeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readMeasuredValueAttribute(callback: MeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasuredValueAttribute( + callback: MeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMinMeasuredValueAttribute(callback: MinMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMinMeasuredValueAttribute( + callback: MinMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMaxMeasuredValueAttribute(callback: MaxMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMaxMeasuredValueAttribute( + callback: MaxMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPeakMeasuredValueAttribute(callback: PeakMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePeakMeasuredValueAttribute( + callback: PeakMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPeakMeasuredValueWindowAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePeakMeasuredValueWindowAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAverageMeasuredValueAttribute(callback: AverageMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAverageMeasuredValueAttribute( + callback: AverageMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAverageMeasuredValueWindowAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAverageMeasuredValueWindowAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readUncertaintyAttribute(callback: FloatAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeUncertaintyAttribute( + callback: FloatAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMeasurementUnitAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasurementUnitAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMeasurementMediumAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasurementMediumAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readLevelValueAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeLevelValueAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OccupancySensingCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OccupancySensingCluster.kt new file mode 100644 index 00000000000000..f6fbba4620386b --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OccupancySensingCluster.kt @@ -0,0 +1,405 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class OccupancySensingCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 1030u + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readOccupancyAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeOccupancyAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readOccupancySensorTypeAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeOccupancySensorTypeAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readOccupancySensorTypeBitmapAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeOccupancySensorTypeBitmapAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPIROccupiedToUnoccupiedDelayAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writePIROccupiedToUnoccupiedDelayAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writePIROccupiedToUnoccupiedDelayAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribePIROccupiedToUnoccupiedDelayAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPIRUnoccupiedToOccupiedDelayAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writePIRUnoccupiedToOccupiedDelayAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writePIRUnoccupiedToOccupiedDelayAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribePIRUnoccupiedToOccupiedDelayAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPIRUnoccupiedToOccupiedThresholdAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writePIRUnoccupiedToOccupiedThresholdAttribute( + callback: DefaultClusterCallback, + value: Integer + ) { + // Implementation needs to be added here + } + + fun writePIRUnoccupiedToOccupiedThresholdAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribePIRUnoccupiedToOccupiedThresholdAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readUltrasonicOccupiedToUnoccupiedDelayAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeUltrasonicOccupiedToUnoccupiedDelayAttribute( + callback: DefaultClusterCallback, + value: Integer + ) { + // Implementation needs to be added here + } + + fun writeUltrasonicOccupiedToUnoccupiedDelayAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeUltrasonicOccupiedToUnoccupiedDelayAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readUltrasonicUnoccupiedToOccupiedDelayAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeUltrasonicUnoccupiedToOccupiedDelayAttribute( + callback: DefaultClusterCallback, + value: Integer + ) { + // Implementation needs to be added here + } + + fun writeUltrasonicUnoccupiedToOccupiedDelayAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeUltrasonicUnoccupiedToOccupiedDelayAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readUltrasonicUnoccupiedToOccupiedThresholdAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeUltrasonicUnoccupiedToOccupiedThresholdAttribute( + callback: DefaultClusterCallback, + value: Integer + ) { + // Implementation needs to be added here + } + + fun writeUltrasonicUnoccupiedToOccupiedThresholdAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeUltrasonicUnoccupiedToOccupiedThresholdAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPhysicalContactOccupiedToUnoccupiedDelayAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writePhysicalContactOccupiedToUnoccupiedDelayAttribute( + callback: DefaultClusterCallback, + value: Integer + ) { + // Implementation needs to be added here + } + + fun writePhysicalContactOccupiedToUnoccupiedDelayAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribePhysicalContactOccupiedToUnoccupiedDelayAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPhysicalContactUnoccupiedToOccupiedDelayAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writePhysicalContactUnoccupiedToOccupiedDelayAttribute( + callback: DefaultClusterCallback, + value: Integer + ) { + // Implementation needs to be added here + } + + fun writePhysicalContactUnoccupiedToOccupiedDelayAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribePhysicalContactUnoccupiedToOccupiedDelayAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPhysicalContactUnoccupiedToOccupiedThresholdAttribute( + callback: IntegerAttributeCallback + ) { + // Implementation needs to be added here + } + + fun writePhysicalContactUnoccupiedToOccupiedThresholdAttribute( + callback: DefaultClusterCallback, + value: Integer + ) { + // Implementation needs to be added here + } + + fun writePhysicalContactUnoccupiedToOccupiedThresholdAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribePhysicalContactUnoccupiedToOccupiedThresholdAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OnOffCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OnOffCluster.kt new file mode 100644 index 00000000000000..85474449bd5c4d --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OnOffCluster.kt @@ -0,0 +1,302 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class OnOffCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 6u + } + + fun off(callback: DefaultClusterCallback) { + // Implementation needs to be added here + } + + fun off(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + fun on(callback: DefaultClusterCallback) { + // Implementation needs to be added here + } + + fun on(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + fun toggle(callback: DefaultClusterCallback) { + // Implementation needs to be added here + } + + fun toggle(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + fun offWithEffect( + callback: DefaultClusterCallback, + effectIdentifier: Integer, + effectVariant: Integer + ) { + // Implementation needs to be added here + } + + fun offWithEffect( + callback: DefaultClusterCallback, + effectIdentifier: Integer, + effectVariant: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun onWithRecallGlobalScene(callback: DefaultClusterCallback) { + // Implementation needs to be added here + } + + fun onWithRecallGlobalScene(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + fun onWithTimedOff( + callback: DefaultClusterCallback, + onOffControl: Integer, + onTime: Integer, + offWaitTime: Integer + ) { + // Implementation needs to be added here + } + + fun onWithTimedOff( + callback: DefaultClusterCallback, + onOffControl: Integer, + onTime: Integer, + offWaitTime: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + interface StartUpOnOffAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readOnOffAttribute(callback: BooleanAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeOnOffAttribute( + callback: BooleanAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGlobalSceneControlAttribute(callback: BooleanAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGlobalSceneControlAttribute( + callback: BooleanAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readOnTimeAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeOnTimeAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeOnTimeAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeOnTimeAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readOffWaitTimeAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeOffWaitTimeAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeOffWaitTimeAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeOffWaitTimeAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readStartUpOnOffAttribute(callback: StartUpOnOffAttributeCallback) { + // Implementation needs to be added here + } + + fun writeStartUpOnOffAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeStartUpOnOffAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeStartUpOnOffAttribute( + callback: StartUpOnOffAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OnOffSwitchConfigurationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OnOffSwitchConfigurationCluster.kt new file mode 100644 index 00000000000000..b7317187237aca --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OnOffSwitchConfigurationCluster.kt @@ -0,0 +1,166 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class OnOffSwitchConfigurationCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 7u + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readSwitchTypeAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeSwitchTypeAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readSwitchActionsAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeSwitchActionsAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeSwitchActionsAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeSwitchActionsAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OperationalCredentialsCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OperationalCredentialsCluster.kt new file mode 100644 index 00000000000000..7bb50af382d269 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OperationalCredentialsCluster.kt @@ -0,0 +1,364 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class OperationalCredentialsCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 62u + } + + fun attestationRequest(callback: AttestationResponseCallback, attestationNonce: ByteArray) { + // Implementation needs to be added here + } + + fun attestationRequest( + callback: AttestationResponseCallback, + attestationNonce: ByteArray, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun certificateChainRequest( + callback: CertificateChainResponseCallback, + certificateType: Integer + ) { + // Implementation needs to be added here + } + + fun certificateChainRequest( + callback: CertificateChainResponseCallback, + certificateType: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun CSRRequest(callback: CSRResponseCallback, CSRNonce: ByteArray, isForUpdateNOC: Boolean?) { + // Implementation needs to be added here + } + + fun CSRRequest( + callback: CSRResponseCallback, + CSRNonce: ByteArray, + isForUpdateNOC: Boolean?, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun addNOC( + callback: NOCResponseCallback, + NOCValue: ByteArray, + ICACValue: ByteArray?, + IPKValue: ByteArray, + caseAdminSubject: Long, + adminVendorId: Integer + ) { + // Implementation needs to be added here + } + + fun addNOC( + callback: NOCResponseCallback, + NOCValue: ByteArray, + ICACValue: ByteArray?, + IPKValue: ByteArray, + caseAdminSubject: Long, + adminVendorId: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun updateNOC(callback: NOCResponseCallback, NOCValue: ByteArray, ICACValue: ByteArray?) { + // Implementation needs to be added here + } + + fun updateNOC( + callback: NOCResponseCallback, + NOCValue: ByteArray, + ICACValue: ByteArray?, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun updateFabricLabel(callback: NOCResponseCallback, label: String) { + // Implementation needs to be added here + } + + fun updateFabricLabel(callback: NOCResponseCallback, label: String, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + fun removeFabric(callback: NOCResponseCallback, fabricIndex: Integer) { + // Implementation needs to be added here + } + + fun removeFabric(callback: NOCResponseCallback, fabricIndex: Integer, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + fun addTrustedRootCertificate(callback: DefaultClusterCallback, rootCACertificate: ByteArray) { + // Implementation needs to be added here + } + + fun addTrustedRootCertificate( + callback: DefaultClusterCallback, + rootCACertificate: ByteArray, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + interface AttestationResponseCallback { + fun onSuccess(attestationElements: ByteArray, attestationSignature: ByteArray) + + fun onError(error: Exception) + } + + interface CertificateChainResponseCallback { + fun onSuccess(certificate: ByteArray) + + fun onError(error: Exception) + } + + interface CSRResponseCallback { + fun onSuccess(NOCSRElements: ByteArray, attestationSignature: ByteArray) + + fun onError(error: Exception) + } + + interface NOCResponseCallback { + fun onSuccess(statusCode: Integer, fabricIndex: Integer?, debugText: String?) + + fun onError(error: Exception) + } + + interface NOCsAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface FabricsAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface TrustedRootCertificatesAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readNOCsAttribute(callback: NOCsAttributeCallback) { + // Implementation needs to be added here + } + + fun readNOCsAttributeWithFabricFilter( + callback: NOCsAttributeCallback, + isFabricFiltered: Boolean + ) { + // Implementation needs to be added here + } + + fun subscribeNOCsAttribute(callback: NOCsAttributeCallback, minInterval: Int, maxInterval: Int) { + // Implementation needs to be added here + } + + fun readFabricsAttribute(callback: FabricsAttributeCallback) { + // Implementation needs to be added here + } + + fun readFabricsAttributeWithFabricFilter( + callback: FabricsAttributeCallback, + isFabricFiltered: Boolean + ) { + // Implementation needs to be added here + } + + fun subscribeFabricsAttribute( + callback: FabricsAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readSupportedFabricsAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeSupportedFabricsAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readCommissionedFabricsAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeCommissionedFabricsAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readTrustedRootCertificatesAttribute(callback: TrustedRootCertificatesAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeTrustedRootCertificatesAttribute( + callback: TrustedRootCertificatesAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readCurrentFabricIndexAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeCurrentFabricIndexAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OperationalStateCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OperationalStateCluster.kt new file mode 100644 index 00000000000000..df377c879437b6 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OperationalStateCluster.kt @@ -0,0 +1,280 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class OperationalStateCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 96u + } + + fun pause(callback: OperationalCommandResponseCallback) { + // Implementation needs to be added here + } + + fun pause(callback: OperationalCommandResponseCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + fun stop(callback: OperationalCommandResponseCallback) { + // Implementation needs to be added here + } + + fun stop(callback: OperationalCommandResponseCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + fun start(callback: OperationalCommandResponseCallback) { + // Implementation needs to be added here + } + + fun start(callback: OperationalCommandResponseCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + fun resume(callback: OperationalCommandResponseCallback) { + // Implementation needs to be added here + } + + fun resume(callback: OperationalCommandResponseCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + interface OperationalCommandResponseCallback { + fun onSuccess(commandResponseState: ChipStructs.OperationalStateClusterErrorStateStruct) + + fun onError(error: Exception) + } + + interface PhaseListAttributeCallback { + fun onSuccess(value: ArrayList?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface CurrentPhaseAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface CountdownTimeAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface OperationalStateListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface OperationalErrorAttributeCallback { + fun onSuccess(value: ChipStructs.OperationalStateClusterErrorStateStruct) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readPhaseListAttribute(callback: PhaseListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePhaseListAttribute( + callback: PhaseListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readCurrentPhaseAttribute(callback: CurrentPhaseAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeCurrentPhaseAttribute( + callback: CurrentPhaseAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readCountdownTimeAttribute(callback: CountdownTimeAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeCountdownTimeAttribute( + callback: CountdownTimeAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readOperationalStateListAttribute(callback: OperationalStateListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeOperationalStateListAttribute( + callback: OperationalStateListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readOperationalStateAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeOperationalStateAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readOperationalErrorAttribute(callback: OperationalErrorAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeOperationalErrorAttribute( + callback: OperationalErrorAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OtaSoftwareUpdateProviderCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OtaSoftwareUpdateProviderCluster.kt new file mode 100644 index 00000000000000..04a51a0416f34d --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OtaSoftwareUpdateProviderCluster.kt @@ -0,0 +1,214 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class OtaSoftwareUpdateProviderCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 41u + } + + fun queryImage( + callback: QueryImageResponseCallback, + vendorID: Integer, + productID: Integer, + softwareVersion: Long, + protocolsSupported: ArrayList, + hardwareVersion: Integer?, + location: String?, + requestorCanConsent: Boolean?, + metadataForProvider: ByteArray? + ) { + // Implementation needs to be added here + } + + fun queryImage( + callback: QueryImageResponseCallback, + vendorID: Integer, + productID: Integer, + softwareVersion: Long, + protocolsSupported: ArrayList, + hardwareVersion: Integer?, + location: String?, + requestorCanConsent: Boolean?, + metadataForProvider: ByteArray?, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun applyUpdateRequest( + callback: ApplyUpdateResponseCallback, + updateToken: ByteArray, + newVersion: Long + ) { + // Implementation needs to be added here + } + + fun applyUpdateRequest( + callback: ApplyUpdateResponseCallback, + updateToken: ByteArray, + newVersion: Long, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun notifyUpdateApplied( + callback: DefaultClusterCallback, + updateToken: ByteArray, + softwareVersion: Long + ) { + // Implementation needs to be added here + } + + fun notifyUpdateApplied( + callback: DefaultClusterCallback, + updateToken: ByteArray, + softwareVersion: Long, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + interface QueryImageResponseCallback { + fun onSuccess( + status: Integer, + delayedActionTime: Long?, + imageURI: String?, + softwareVersion: Long?, + softwareVersionString: String?, + updateToken: ByteArray?, + userConsentNeeded: Boolean?, + metadataForRequestor: ByteArray? + ) + + fun onError(error: Exception) + } + + interface ApplyUpdateResponseCallback { + fun onSuccess(action: Integer, delayedActionTime: Long) + + fun onError(error: Exception) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OtaSoftwareUpdateRequestorCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OtaSoftwareUpdateRequestorCluster.kt new file mode 100644 index 00000000000000..6085a4e7e6d2d3 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OtaSoftwareUpdateRequestorCluster.kt @@ -0,0 +1,239 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class OtaSoftwareUpdateRequestorCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 42u + } + + fun announceOTAProvider( + callback: DefaultClusterCallback, + providerNodeID: Long, + vendorID: Integer, + announcementReason: Integer, + metadataForNode: ByteArray?, + endpoint: Integer + ) { + // Implementation needs to be added here + } + + fun announceOTAProvider( + callback: DefaultClusterCallback, + providerNodeID: Long, + vendorID: Integer, + announcementReason: Integer, + metadataForNode: ByteArray?, + endpoint: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + interface DefaultOTAProvidersAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface UpdateStateProgressAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readDefaultOTAProvidersAttribute(callback: DefaultOTAProvidersAttributeCallback) { + // Implementation needs to be added here + } + + fun readDefaultOTAProvidersAttributeWithFabricFilter( + callback: DefaultOTAProvidersAttributeCallback, + isFabricFiltered: Boolean + ) { + // Implementation needs to be added here + } + + fun writeDefaultOTAProvidersAttribute( + callback: DefaultClusterCallback, + value: ArrayList + ) { + // Implementation needs to be added here + } + + fun writeDefaultOTAProvidersAttribute( + callback: DefaultClusterCallback, + value: ArrayList, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeDefaultOTAProvidersAttribute( + callback: DefaultOTAProvidersAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readUpdatePossibleAttribute(callback: BooleanAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeUpdatePossibleAttribute( + callback: BooleanAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readUpdateStateAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeUpdateStateAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readUpdateStateProgressAttribute(callback: UpdateStateProgressAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeUpdateStateProgressAttribute( + callback: UpdateStateProgressAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OzoneConcentrationMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OzoneConcentrationMeasurementCluster.kt new file mode 100644 index 00000000000000..b63a519ed9b572 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OzoneConcentrationMeasurementCluster.kt @@ -0,0 +1,302 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class OzoneConcentrationMeasurementCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 1045u + } + + interface MeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface MinMeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface MaxMeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface PeakMeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AverageMeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readMeasuredValueAttribute(callback: MeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasuredValueAttribute( + callback: MeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMinMeasuredValueAttribute(callback: MinMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMinMeasuredValueAttribute( + callback: MinMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMaxMeasuredValueAttribute(callback: MaxMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMaxMeasuredValueAttribute( + callback: MaxMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPeakMeasuredValueAttribute(callback: PeakMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePeakMeasuredValueAttribute( + callback: PeakMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPeakMeasuredValueWindowAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePeakMeasuredValueWindowAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAverageMeasuredValueAttribute(callback: AverageMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAverageMeasuredValueAttribute( + callback: AverageMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAverageMeasuredValueWindowAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAverageMeasuredValueWindowAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readUncertaintyAttribute(callback: FloatAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeUncertaintyAttribute( + callback: FloatAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMeasurementUnitAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasurementUnitAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMeasurementMediumAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasurementMediumAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readLevelValueAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeLevelValueAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm10ConcentrationMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm10ConcentrationMeasurementCluster.kt new file mode 100644 index 00000000000000..c700eb641f2fb9 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm10ConcentrationMeasurementCluster.kt @@ -0,0 +1,302 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class Pm10ConcentrationMeasurementCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 1069u + } + + interface MeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface MinMeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface MaxMeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface PeakMeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AverageMeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readMeasuredValueAttribute(callback: MeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasuredValueAttribute( + callback: MeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMinMeasuredValueAttribute(callback: MinMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMinMeasuredValueAttribute( + callback: MinMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMaxMeasuredValueAttribute(callback: MaxMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMaxMeasuredValueAttribute( + callback: MaxMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPeakMeasuredValueAttribute(callback: PeakMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePeakMeasuredValueAttribute( + callback: PeakMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPeakMeasuredValueWindowAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePeakMeasuredValueWindowAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAverageMeasuredValueAttribute(callback: AverageMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAverageMeasuredValueAttribute( + callback: AverageMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAverageMeasuredValueWindowAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAverageMeasuredValueWindowAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readUncertaintyAttribute(callback: FloatAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeUncertaintyAttribute( + callback: FloatAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMeasurementUnitAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasurementUnitAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMeasurementMediumAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasurementMediumAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readLevelValueAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeLevelValueAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm1ConcentrationMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm1ConcentrationMeasurementCluster.kt new file mode 100644 index 00000000000000..5a3c72eb8e30dc --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm1ConcentrationMeasurementCluster.kt @@ -0,0 +1,302 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class Pm1ConcentrationMeasurementCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 1068u + } + + interface MeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface MinMeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface MaxMeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface PeakMeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AverageMeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readMeasuredValueAttribute(callback: MeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasuredValueAttribute( + callback: MeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMinMeasuredValueAttribute(callback: MinMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMinMeasuredValueAttribute( + callback: MinMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMaxMeasuredValueAttribute(callback: MaxMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMaxMeasuredValueAttribute( + callback: MaxMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPeakMeasuredValueAttribute(callback: PeakMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePeakMeasuredValueAttribute( + callback: PeakMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPeakMeasuredValueWindowAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePeakMeasuredValueWindowAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAverageMeasuredValueAttribute(callback: AverageMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAverageMeasuredValueAttribute( + callback: AverageMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAverageMeasuredValueWindowAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAverageMeasuredValueWindowAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readUncertaintyAttribute(callback: FloatAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeUncertaintyAttribute( + callback: FloatAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMeasurementUnitAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasurementUnitAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMeasurementMediumAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasurementMediumAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readLevelValueAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeLevelValueAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm25ConcentrationMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm25ConcentrationMeasurementCluster.kt new file mode 100644 index 00000000000000..cd979770c0f4f5 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm25ConcentrationMeasurementCluster.kt @@ -0,0 +1,302 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class Pm25ConcentrationMeasurementCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 1066u + } + + interface MeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface MinMeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface MaxMeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface PeakMeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AverageMeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readMeasuredValueAttribute(callback: MeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasuredValueAttribute( + callback: MeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMinMeasuredValueAttribute(callback: MinMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMinMeasuredValueAttribute( + callback: MinMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMaxMeasuredValueAttribute(callback: MaxMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMaxMeasuredValueAttribute( + callback: MaxMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPeakMeasuredValueAttribute(callback: PeakMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePeakMeasuredValueAttribute( + callback: PeakMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPeakMeasuredValueWindowAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePeakMeasuredValueWindowAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAverageMeasuredValueAttribute(callback: AverageMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAverageMeasuredValueAttribute( + callback: AverageMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAverageMeasuredValueWindowAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAverageMeasuredValueWindowAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readUncertaintyAttribute(callback: FloatAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeUncertaintyAttribute( + callback: FloatAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMeasurementUnitAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasurementUnitAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMeasurementMediumAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasurementMediumAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readLevelValueAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeLevelValueAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PowerSourceCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PowerSourceCluster.kt new file mode 100644 index 00000000000000..b2e21c408b0e8c --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PowerSourceCluster.kt @@ -0,0 +1,612 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class PowerSourceCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 47u + } + + interface WiredAssessedInputVoltageAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface WiredAssessedInputFrequencyAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface WiredAssessedCurrentAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface ActiveWiredFaultsAttributeCallback { + fun onSuccess(value: ArrayList?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface BatVoltageAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface BatPercentRemainingAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface BatTimeRemainingAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface ActiveBatFaultsAttributeCallback { + fun onSuccess(value: ArrayList?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface BatTimeToFullChargeAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface BatChargingCurrentAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface ActiveBatChargeFaultsAttributeCallback { + fun onSuccess(value: ArrayList?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EndpointListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readStatusAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeStatusAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readOrderAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeOrderAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readDescriptionAttribute(callback: CharStringAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeDescriptionAttribute( + callback: CharStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readWiredAssessedInputVoltageAttribute(callback: WiredAssessedInputVoltageAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeWiredAssessedInputVoltageAttribute( + callback: WiredAssessedInputVoltageAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readWiredAssessedInputFrequencyAttribute( + callback: WiredAssessedInputFrequencyAttributeCallback + ) { + // Implementation needs to be added here + } + + fun subscribeWiredAssessedInputFrequencyAttribute( + callback: WiredAssessedInputFrequencyAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readWiredCurrentTypeAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeWiredCurrentTypeAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readWiredAssessedCurrentAttribute(callback: WiredAssessedCurrentAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeWiredAssessedCurrentAttribute( + callback: WiredAssessedCurrentAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readWiredNominalVoltageAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeWiredNominalVoltageAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readWiredMaximumCurrentAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeWiredMaximumCurrentAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readWiredPresentAttribute(callback: BooleanAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeWiredPresentAttribute( + callback: BooleanAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readActiveWiredFaultsAttribute(callback: ActiveWiredFaultsAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeActiveWiredFaultsAttribute( + callback: ActiveWiredFaultsAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readBatVoltageAttribute(callback: BatVoltageAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeBatVoltageAttribute( + callback: BatVoltageAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readBatPercentRemainingAttribute(callback: BatPercentRemainingAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeBatPercentRemainingAttribute( + callback: BatPercentRemainingAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readBatTimeRemainingAttribute(callback: BatTimeRemainingAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeBatTimeRemainingAttribute( + callback: BatTimeRemainingAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readBatChargeLevelAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeBatChargeLevelAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readBatReplacementNeededAttribute(callback: BooleanAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeBatReplacementNeededAttribute( + callback: BooleanAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readBatReplaceabilityAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeBatReplaceabilityAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readBatPresentAttribute(callback: BooleanAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeBatPresentAttribute( + callback: BooleanAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readActiveBatFaultsAttribute(callback: ActiveBatFaultsAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeActiveBatFaultsAttribute( + callback: ActiveBatFaultsAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readBatReplacementDescriptionAttribute(callback: CharStringAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeBatReplacementDescriptionAttribute( + callback: CharStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readBatCommonDesignationAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeBatCommonDesignationAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readBatANSIDesignationAttribute(callback: CharStringAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeBatANSIDesignationAttribute( + callback: CharStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readBatIECDesignationAttribute(callback: CharStringAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeBatIECDesignationAttribute( + callback: CharStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readBatApprovedChemistryAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeBatApprovedChemistryAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readBatCapacityAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeBatCapacityAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readBatQuantityAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeBatQuantityAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readBatChargeStateAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeBatChargeStateAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readBatTimeToFullChargeAttribute(callback: BatTimeToFullChargeAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeBatTimeToFullChargeAttribute( + callback: BatTimeToFullChargeAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readBatFunctionalWhileChargingAttribute(callback: BooleanAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeBatFunctionalWhileChargingAttribute( + callback: BooleanAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readBatChargingCurrentAttribute(callback: BatChargingCurrentAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeBatChargingCurrentAttribute( + callback: BatChargingCurrentAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readActiveBatChargeFaultsAttribute(callback: ActiveBatChargeFaultsAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeActiveBatChargeFaultsAttribute( + callback: ActiveBatChargeFaultsAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEndpointListAttribute(callback: EndpointListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEndpointListAttribute( + callback: EndpointListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PowerSourceConfigurationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PowerSourceConfigurationCluster.kt new file mode 100644 index 00000000000000..d81ff7109df0b8 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PowerSourceConfigurationCluster.kt @@ -0,0 +1,150 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class PowerSourceConfigurationCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 46u + } + + interface SourcesAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readSourcesAttribute(callback: SourcesAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeSourcesAttribute( + callback: SourcesAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PressureMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PressureMeasurementCluster.kt new file mode 100644 index 00000000000000..46a06ca398630e --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PressureMeasurementCluster.kt @@ -0,0 +1,286 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class PressureMeasurementCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 1027u + } + + interface MeasuredValueAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface MinMeasuredValueAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface MaxMeasuredValueAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface ScaledValueAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface MinScaledValueAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface MaxScaledValueAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readMeasuredValueAttribute(callback: MeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasuredValueAttribute( + callback: MeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMinMeasuredValueAttribute(callback: MinMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMinMeasuredValueAttribute( + callback: MinMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMaxMeasuredValueAttribute(callback: MaxMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMaxMeasuredValueAttribute( + callback: MaxMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readToleranceAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeToleranceAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readScaledValueAttribute(callback: ScaledValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeScaledValueAttribute( + callback: ScaledValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMinScaledValueAttribute(callback: MinScaledValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMinScaledValueAttribute( + callback: MinScaledValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMaxScaledValueAttribute(callback: MaxScaledValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMaxScaledValueAttribute( + callback: MaxScaledValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readScaledToleranceAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeScaledToleranceAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readScaleAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeScaleAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyConfigurationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyConfigurationCluster.kt new file mode 100644 index 00000000000000..6c558514fc7a72 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyConfigurationCluster.kt @@ -0,0 +1,130 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class ProxyConfigurationCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 66u + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyDiscoveryCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyDiscoveryCluster.kt new file mode 100644 index 00000000000000..aa4463f9176547 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyDiscoveryCluster.kt @@ -0,0 +1,130 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class ProxyDiscoveryCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 67u + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyValidCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyValidCluster.kt new file mode 100644 index 00000000000000..7903220186e8c0 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyValidCluster.kt @@ -0,0 +1,130 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class ProxyValidCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 68u + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PulseWidthModulationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PulseWidthModulationCluster.kt new file mode 100644 index 00000000000000..1c2a93699d5d41 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PulseWidthModulationCluster.kt @@ -0,0 +1,130 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class PulseWidthModulationCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 28u + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PumpConfigurationAndControlCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PumpConfigurationAndControlCluster.kt new file mode 100644 index 00000000000000..add5d698398fb5 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PumpConfigurationAndControlCluster.kt @@ -0,0 +1,598 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class PumpConfigurationAndControlCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 512u + } + + interface MaxPressureAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface MaxSpeedAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface MaxFlowAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface MinConstPressureAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface MaxConstPressureAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface MinCompPressureAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface MaxCompPressureAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface MinConstSpeedAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface MaxConstSpeedAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface MinConstFlowAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface MaxConstFlowAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface MinConstTempAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface MaxConstTempAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface CapacityAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface SpeedAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface LifetimeRunningHoursAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface PowerAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface LifetimeEnergyConsumedAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readMaxPressureAttribute(callback: MaxPressureAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMaxPressureAttribute( + callback: MaxPressureAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMaxSpeedAttribute(callback: MaxSpeedAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMaxSpeedAttribute( + callback: MaxSpeedAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMaxFlowAttribute(callback: MaxFlowAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMaxFlowAttribute( + callback: MaxFlowAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMinConstPressureAttribute(callback: MinConstPressureAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMinConstPressureAttribute( + callback: MinConstPressureAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMaxConstPressureAttribute(callback: MaxConstPressureAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMaxConstPressureAttribute( + callback: MaxConstPressureAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMinCompPressureAttribute(callback: MinCompPressureAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMinCompPressureAttribute( + callback: MinCompPressureAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMaxCompPressureAttribute(callback: MaxCompPressureAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMaxCompPressureAttribute( + callback: MaxCompPressureAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMinConstSpeedAttribute(callback: MinConstSpeedAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMinConstSpeedAttribute( + callback: MinConstSpeedAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMaxConstSpeedAttribute(callback: MaxConstSpeedAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMaxConstSpeedAttribute( + callback: MaxConstSpeedAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMinConstFlowAttribute(callback: MinConstFlowAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMinConstFlowAttribute( + callback: MinConstFlowAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMaxConstFlowAttribute(callback: MaxConstFlowAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMaxConstFlowAttribute( + callback: MaxConstFlowAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMinConstTempAttribute(callback: MinConstTempAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMinConstTempAttribute( + callback: MinConstTempAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMaxConstTempAttribute(callback: MaxConstTempAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMaxConstTempAttribute( + callback: MaxConstTempAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPumpStatusAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePumpStatusAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEffectiveOperationModeAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEffectiveOperationModeAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEffectiveControlModeAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEffectiveControlModeAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readCapacityAttribute(callback: CapacityAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeCapacityAttribute( + callback: CapacityAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readSpeedAttribute(callback: SpeedAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeSpeedAttribute( + callback: SpeedAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readLifetimeRunningHoursAttribute(callback: LifetimeRunningHoursAttributeCallback) { + // Implementation needs to be added here + } + + fun writeLifetimeRunningHoursAttribute(callback: DefaultClusterCallback, value: Long) { + // Implementation needs to be added here + } + + fun writeLifetimeRunningHoursAttribute( + callback: DefaultClusterCallback, + value: Long, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeLifetimeRunningHoursAttribute( + callback: LifetimeRunningHoursAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPowerAttribute(callback: PowerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePowerAttribute( + callback: PowerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readLifetimeEnergyConsumedAttribute(callback: LifetimeEnergyConsumedAttributeCallback) { + // Implementation needs to be added here + } + + fun writeLifetimeEnergyConsumedAttribute(callback: DefaultClusterCallback, value: Long) { + // Implementation needs to be added here + } + + fun writeLifetimeEnergyConsumedAttribute( + callback: DefaultClusterCallback, + value: Long, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeLifetimeEnergyConsumedAttribute( + callback: LifetimeEnergyConsumedAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readOperationModeAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeOperationModeAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeOperationModeAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeOperationModeAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readControlModeAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeControlModeAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeControlModeAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeControlModeAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RadonConcentrationMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RadonConcentrationMeasurementCluster.kt new file mode 100644 index 00000000000000..53454570dcc3c5 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RadonConcentrationMeasurementCluster.kt @@ -0,0 +1,302 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class RadonConcentrationMeasurementCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 1071u + } + + interface MeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface MinMeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface MaxMeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface PeakMeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AverageMeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readMeasuredValueAttribute(callback: MeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasuredValueAttribute( + callback: MeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMinMeasuredValueAttribute(callback: MinMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMinMeasuredValueAttribute( + callback: MinMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMaxMeasuredValueAttribute(callback: MaxMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMaxMeasuredValueAttribute( + callback: MaxMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPeakMeasuredValueAttribute(callback: PeakMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePeakMeasuredValueAttribute( + callback: PeakMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPeakMeasuredValueWindowAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePeakMeasuredValueWindowAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAverageMeasuredValueAttribute(callback: AverageMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAverageMeasuredValueAttribute( + callback: AverageMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAverageMeasuredValueWindowAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAverageMeasuredValueWindowAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readUncertaintyAttribute(callback: FloatAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeUncertaintyAttribute( + callback: FloatAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMeasurementUnitAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasurementUnitAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMeasurementMediumAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasurementMediumAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readLevelValueAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeLevelValueAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RefrigeratorAlarmCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RefrigeratorAlarmCluster.kt new file mode 100644 index 00000000000000..f401bcd1ad70bf --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RefrigeratorAlarmCluster.kt @@ -0,0 +1,158 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class RefrigeratorAlarmCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 87u + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readMaskAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMaskAttribute(callback: LongAttributeCallback, minInterval: Int, maxInterval: Int) { + // Implementation needs to be added here + } + + fun readStateAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeStateAttribute(callback: LongAttributeCallback, minInterval: Int, maxInterval: Int) { + // Implementation needs to be added here + } + + fun readSupportedAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeSupportedAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RefrigeratorAndTemperatureControlledCabinetModeCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RefrigeratorAndTemperatureControlledCabinetModeCluster.kt new file mode 100644 index 00000000000000..bbb249603c474c --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RefrigeratorAndTemperatureControlledCabinetModeCluster.kt @@ -0,0 +1,249 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class RefrigeratorAndTemperatureControlledCabinetModeCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 82u + } + + fun changeToMode(callback: ChangeToModeResponseCallback, newMode: Integer) { + // Implementation needs to be added here + } + + fun changeToMode( + callback: ChangeToModeResponseCallback, + newMode: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + interface ChangeToModeResponseCallback { + fun onSuccess(status: Integer, statusText: String?) + + fun onError(error: Exception) + } + + interface SupportedModesAttributeCallback { + fun onSuccess( + value: + ArrayList< + ChipStructs.RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct + > + ) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface StartUpModeAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface OnModeAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readSupportedModesAttribute(callback: SupportedModesAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeSupportedModesAttribute( + callback: SupportedModesAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readCurrentModeAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeCurrentModeAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readStartUpModeAttribute(callback: StartUpModeAttributeCallback) { + // Implementation needs to be added here + } + + fun writeStartUpModeAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeStartUpModeAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeStartUpModeAttribute( + callback: StartUpModeAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readOnModeAttribute(callback: OnModeAttributeCallback) { + // Implementation needs to be added here + } + + fun writeOnModeAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeOnModeAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeOnModeAttribute( + callback: OnModeAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RelativeHumidityMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RelativeHumidityMeasurementCluster.kt new file mode 100644 index 00000000000000..7efad29eaaf8f0 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RelativeHumidityMeasurementCluster.kt @@ -0,0 +1,202 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class RelativeHumidityMeasurementCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 1029u + } + + interface MeasuredValueAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface MinMeasuredValueAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface MaxMeasuredValueAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readMeasuredValueAttribute(callback: MeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasuredValueAttribute( + callback: MeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMinMeasuredValueAttribute(callback: MinMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMinMeasuredValueAttribute( + callback: MinMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMaxMeasuredValueAttribute(callback: MaxMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMaxMeasuredValueAttribute( + callback: MaxMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readToleranceAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeToleranceAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcCleanModeCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcCleanModeCluster.kt new file mode 100644 index 00000000000000..f51c947cd1c472 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcCleanModeCluster.kt @@ -0,0 +1,212 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class RvcCleanModeCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 85u + } + + fun changeToMode(callback: ChangeToModeResponseCallback, newMode: Integer) { + // Implementation needs to be added here + } + + fun changeToMode( + callback: ChangeToModeResponseCallback, + newMode: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + interface ChangeToModeResponseCallback { + fun onSuccess(status: Integer, statusText: String?) + + fun onError(error: Exception) + } + + interface SupportedModesAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface OnModeAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readSupportedModesAttribute(callback: SupportedModesAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeSupportedModesAttribute( + callback: SupportedModesAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readCurrentModeAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeCurrentModeAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readOnModeAttribute(callback: OnModeAttributeCallback) { + // Implementation needs to be added here + } + + fun writeOnModeAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeOnModeAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeOnModeAttribute( + callback: OnModeAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcOperationalStateCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcOperationalStateCluster.kt new file mode 100644 index 00000000000000..dab1335f74f2cd --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcOperationalStateCluster.kt @@ -0,0 +1,280 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class RvcOperationalStateCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 97u + } + + fun pause(callback: OperationalCommandResponseCallback) { + // Implementation needs to be added here + } + + fun pause(callback: OperationalCommandResponseCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + fun stop(callback: OperationalCommandResponseCallback) { + // Implementation needs to be added here + } + + fun stop(callback: OperationalCommandResponseCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + fun start(callback: OperationalCommandResponseCallback) { + // Implementation needs to be added here + } + + fun start(callback: OperationalCommandResponseCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + fun resume(callback: OperationalCommandResponseCallback) { + // Implementation needs to be added here + } + + fun resume(callback: OperationalCommandResponseCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + interface OperationalCommandResponseCallback { + fun onSuccess(commandResponseState: ChipStructs.RvcOperationalStateClusterErrorStateStruct) + + fun onError(error: Exception) + } + + interface PhaseListAttributeCallback { + fun onSuccess(value: ArrayList?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface CurrentPhaseAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface CountdownTimeAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface OperationalStateListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface OperationalErrorAttributeCallback { + fun onSuccess(value: ChipStructs.RvcOperationalStateClusterErrorStateStruct) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readPhaseListAttribute(callback: PhaseListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePhaseListAttribute( + callback: PhaseListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readCurrentPhaseAttribute(callback: CurrentPhaseAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeCurrentPhaseAttribute( + callback: CurrentPhaseAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readCountdownTimeAttribute(callback: CountdownTimeAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeCountdownTimeAttribute( + callback: CountdownTimeAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readOperationalStateListAttribute(callback: OperationalStateListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeOperationalStateListAttribute( + callback: OperationalStateListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readOperationalStateAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeOperationalStateAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readOperationalErrorAttribute(callback: OperationalErrorAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeOperationalErrorAttribute( + callback: OperationalErrorAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcRunModeCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcRunModeCluster.kt new file mode 100644 index 00000000000000..0160a183f48e96 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcRunModeCluster.kt @@ -0,0 +1,212 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class RvcRunModeCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 84u + } + + fun changeToMode(callback: ChangeToModeResponseCallback, newMode: Integer) { + // Implementation needs to be added here + } + + fun changeToMode( + callback: ChangeToModeResponseCallback, + newMode: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + interface ChangeToModeResponseCallback { + fun onSuccess(status: Integer, statusText: String?) + + fun onError(error: Exception) + } + + interface SupportedModesAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface OnModeAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readSupportedModesAttribute(callback: SupportedModesAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeSupportedModesAttribute( + callback: SupportedModesAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readCurrentModeAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeCurrentModeAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readOnModeAttribute(callback: OnModeAttributeCallback) { + // Implementation needs to be added here + } + + fun writeOnModeAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeOnModeAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeOnModeAttribute( + callback: OnModeAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SampleMeiCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SampleMeiCluster.kt new file mode 100644 index 00000000000000..37d98e704f5d10 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SampleMeiCluster.kt @@ -0,0 +1,181 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class SampleMeiCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 4294048800u + } + + fun ping(callback: DefaultClusterCallback) { + // Implementation needs to be added here + } + + fun ping(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + fun addArguments(callback: AddArgumentsResponseCallback, arg1: Integer, arg2: Integer) { + // Implementation needs to be added here + } + + fun addArguments( + callback: AddArgumentsResponseCallback, + arg1: Integer, + arg2: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + interface AddArgumentsResponseCallback { + fun onSuccess(returnValue: Integer) + + fun onError(error: Exception) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readFlipFlopAttribute(callback: BooleanAttributeCallback) { + // Implementation needs to be added here + } + + fun writeFlipFlopAttribute(callback: DefaultClusterCallback, value: Boolean) { + // Implementation needs to be added here + } + + fun writeFlipFlopAttribute( + callback: DefaultClusterCallback, + value: Boolean, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeFlipFlopAttribute( + callback: BooleanAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ScenesCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ScenesCluster.kt new file mode 100644 index 00000000000000..a075d23e1129ae --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ScenesCluster.kt @@ -0,0 +1,475 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class ScenesCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 5u + } + + fun addScene( + callback: AddSceneResponseCallback, + groupID: Integer, + sceneID: Integer, + transitionTime: Integer, + sceneName: String, + extensionFieldSets: ArrayList + ) { + // Implementation needs to be added here + } + + fun addScene( + callback: AddSceneResponseCallback, + groupID: Integer, + sceneID: Integer, + transitionTime: Integer, + sceneName: String, + extensionFieldSets: ArrayList, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun viewScene(callback: ViewSceneResponseCallback, groupID: Integer, sceneID: Integer) { + // Implementation needs to be added here + } + + fun viewScene( + callback: ViewSceneResponseCallback, + groupID: Integer, + sceneID: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun removeScene(callback: RemoveSceneResponseCallback, groupID: Integer, sceneID: Integer) { + // Implementation needs to be added here + } + + fun removeScene( + callback: RemoveSceneResponseCallback, + groupID: Integer, + sceneID: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun removeAllScenes(callback: RemoveAllScenesResponseCallback, groupID: Integer) { + // Implementation needs to be added here + } + + fun removeAllScenes( + callback: RemoveAllScenesResponseCallback, + groupID: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun storeScene(callback: StoreSceneResponseCallback, groupID: Integer, sceneID: Integer) { + // Implementation needs to be added here + } + + fun storeScene( + callback: StoreSceneResponseCallback, + groupID: Integer, + sceneID: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun recallScene( + callback: DefaultClusterCallback, + groupID: Integer, + sceneID: Integer, + transitionTime: Integer? + ) { + // Implementation needs to be added here + } + + fun recallScene( + callback: DefaultClusterCallback, + groupID: Integer, + sceneID: Integer, + transitionTime: Integer?, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun getSceneMembership(callback: GetSceneMembershipResponseCallback, groupID: Integer) { + // Implementation needs to be added here + } + + fun getSceneMembership( + callback: GetSceneMembershipResponseCallback, + groupID: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun enhancedAddScene( + callback: EnhancedAddSceneResponseCallback, + groupID: Integer, + sceneID: Integer, + transitionTime: Integer, + sceneName: String, + extensionFieldSets: ArrayList + ) { + // Implementation needs to be added here + } + + fun enhancedAddScene( + callback: EnhancedAddSceneResponseCallback, + groupID: Integer, + sceneID: Integer, + transitionTime: Integer, + sceneName: String, + extensionFieldSets: ArrayList, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun enhancedViewScene( + callback: EnhancedViewSceneResponseCallback, + groupID: Integer, + sceneID: Integer + ) { + // Implementation needs to be added here + } + + fun enhancedViewScene( + callback: EnhancedViewSceneResponseCallback, + groupID: Integer, + sceneID: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun copyScene( + callback: CopySceneResponseCallback, + mode: Integer, + groupIdentifierFrom: Integer, + sceneIdentifierFrom: Integer, + groupIdentifierTo: Integer, + sceneIdentifierTo: Integer + ) { + // Implementation needs to be added here + } + + fun copyScene( + callback: CopySceneResponseCallback, + mode: Integer, + groupIdentifierFrom: Integer, + sceneIdentifierFrom: Integer, + groupIdentifierTo: Integer, + sceneIdentifierTo: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + interface AddSceneResponseCallback { + fun onSuccess(status: Integer, groupID: Integer, sceneID: Integer) + + fun onError(error: Exception) + } + + interface ViewSceneResponseCallback { + fun onSuccess( + status: Integer, + groupID: Integer, + sceneID: Integer, + transitionTime: Integer?, + sceneName: String?, + extensionFieldSets: ArrayList? + ) + + fun onError(error: Exception) + } + + interface RemoveSceneResponseCallback { + fun onSuccess(status: Integer, groupID: Integer, sceneID: Integer) + + fun onError(error: Exception) + } + + interface RemoveAllScenesResponseCallback { + fun onSuccess(status: Integer, groupID: Integer) + + fun onError(error: Exception) + } + + interface StoreSceneResponseCallback { + fun onSuccess(status: Integer, groupID: Integer, sceneID: Integer) + + fun onError(error: Exception) + } + + interface GetSceneMembershipResponseCallback { + fun onSuccess( + status: Integer, + capacity: Integer?, + groupID: Integer, + sceneList: ArrayList? + ) + + fun onError(error: Exception) + } + + interface EnhancedAddSceneResponseCallback { + fun onSuccess(status: Integer, groupID: Integer, sceneID: Integer) + + fun onError(error: Exception) + } + + interface EnhancedViewSceneResponseCallback { + fun onSuccess( + status: Integer, + groupID: Integer, + sceneID: Integer, + transitionTime: Integer?, + sceneName: String?, + extensionFieldSets: ArrayList? + ) + + fun onError(error: Exception) + } + + interface CopySceneResponseCallback { + fun onSuccess(status: Integer, groupIdentifierFrom: Integer, sceneIdentifierFrom: Integer) + + fun onError(error: Exception) + } + + interface LastConfiguredByAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readSceneCountAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeSceneCountAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readCurrentSceneAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeCurrentSceneAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readCurrentGroupAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeCurrentGroupAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readSceneValidAttribute(callback: BooleanAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeSceneValidAttribute( + callback: BooleanAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNameSupportAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeNameSupportAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readLastConfiguredByAttribute(callback: LastConfiguredByAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeLastConfiguredByAttribute( + callback: LastConfiguredByAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readSceneTableSizeAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeSceneTableSizeAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRemainingCapacityAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRemainingCapacityAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SmokeCoAlarmCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SmokeCoAlarmCluster.kt new file mode 100644 index 00000000000000..eae9b36d990a6d --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SmokeCoAlarmCluster.kt @@ -0,0 +1,306 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class SmokeCoAlarmCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 92u + } + + fun selfTestRequest(callback: DefaultClusterCallback) { + // Implementation needs to be added here + } + + fun selfTestRequest(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readExpressedStateAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeExpressedStateAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readSmokeStateAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeSmokeStateAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readCOStateAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeCOStateAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readBatteryAlertAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeBatteryAlertAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readDeviceMutedAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeDeviceMutedAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readTestInProgressAttribute(callback: BooleanAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeTestInProgressAttribute( + callback: BooleanAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readHardwareFaultAlertAttribute(callback: BooleanAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeHardwareFaultAlertAttribute( + callback: BooleanAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEndOfServiceAlertAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEndOfServiceAlertAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readInterconnectSmokeAlarmAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeInterconnectSmokeAlarmAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readInterconnectCOAlarmAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeInterconnectCOAlarmAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readContaminationStateAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeContaminationStateAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readSmokeSensitivityLevelAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeSmokeSensitivityLevelAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeSmokeSensitivityLevelAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeSmokeSensitivityLevelAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readExpiryDateAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeExpiryDateAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SoftwareDiagnosticsCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SoftwareDiagnosticsCluster.kt new file mode 100644 index 00000000000000..79c817ba943239 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SoftwareDiagnosticsCluster.kt @@ -0,0 +1,194 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class SoftwareDiagnosticsCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 52u + } + + fun resetWatermarks(callback: DefaultClusterCallback) { + // Implementation needs to be added here + } + + fun resetWatermarks(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + interface ThreadMetricsAttributeCallback { + fun onSuccess(value: ArrayList?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readThreadMetricsAttribute(callback: ThreadMetricsAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeThreadMetricsAttribute( + callback: ThreadMetricsAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readCurrentHeapFreeAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeCurrentHeapFreeAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readCurrentHeapUsedAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeCurrentHeapUsedAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readCurrentHeapHighWatermarkAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeCurrentHeapHighWatermarkAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SwitchCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SwitchCluster.kt new file mode 100644 index 00000000000000..7d9685744e2ffc --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SwitchCluster.kt @@ -0,0 +1,166 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class SwitchCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 59u + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readNumberOfPositionsAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeNumberOfPositionsAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readCurrentPositionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeCurrentPositionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMultiPressMaxAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMultiPressMaxAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TargetNavigatorCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TargetNavigatorCluster.kt new file mode 100644 index 00000000000000..11eebe726ebc63 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TargetNavigatorCluster.kt @@ -0,0 +1,181 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class TargetNavigatorCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 1285u + } + + fun navigateTarget(callback: NavigateTargetResponseCallback, target: Integer, data: String?) { + // Implementation needs to be added here + } + + fun navigateTarget( + callback: NavigateTargetResponseCallback, + target: Integer, + data: String?, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + interface NavigateTargetResponseCallback { + fun onSuccess(status: Integer, data: String?) + + fun onError(error: Exception) + } + + interface TargetListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readTargetListAttribute(callback: TargetListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeTargetListAttribute( + callback: TargetListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readCurrentTargetAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeCurrentTargetAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TemperatureControlCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TemperatureControlCluster.kt new file mode 100644 index 00000000000000..e828002cddf0b8 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TemperatureControlCluster.kt @@ -0,0 +1,229 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class TemperatureControlCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 86u + } + + fun setTemperature( + callback: DefaultClusterCallback, + targetTemperature: Integer?, + targetTemperatureLevel: Integer? + ) { + // Implementation needs to be added here + } + + fun setTemperature( + callback: DefaultClusterCallback, + targetTemperature: Integer?, + targetTemperatureLevel: Integer?, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + interface SupportedTemperatureLevelsAttributeCallback { + fun onSuccess(value: ArrayList?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readTemperatureSetpointAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeTemperatureSetpointAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMinTemperatureAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMinTemperatureAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMaxTemperatureAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMaxTemperatureAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readStepAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeStepAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readSelectedTemperatureLevelAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeSelectedTemperatureLevelAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readSupportedTemperatureLevelsAttribute( + callback: SupportedTemperatureLevelsAttributeCallback + ) { + // Implementation needs to be added here + } + + fun subscribeSupportedTemperatureLevelsAttribute( + callback: SupportedTemperatureLevelsAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TemperatureMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TemperatureMeasurementCluster.kt new file mode 100644 index 00000000000000..cda7f5102d348b --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TemperatureMeasurementCluster.kt @@ -0,0 +1,202 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class TemperatureMeasurementCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 1026u + } + + interface MeasuredValueAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface MinMeasuredValueAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface MaxMeasuredValueAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readMeasuredValueAttribute(callback: MeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasuredValueAttribute( + callback: MeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMinMeasuredValueAttribute(callback: MinMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMinMeasuredValueAttribute( + callback: MinMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMaxMeasuredValueAttribute(callback: MaxMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMaxMeasuredValueAttribute( + callback: MaxMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readToleranceAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeToleranceAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThermostatCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThermostatCluster.kt new file mode 100644 index 00000000000000..efe49d68aa9df2 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThermostatCluster.kt @@ -0,0 +1,1208 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class ThermostatCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 513u + } + + fun setpointRaiseLower(callback: DefaultClusterCallback, mode: Integer, amount: Integer) { + // Implementation needs to be added here + } + + fun setpointRaiseLower( + callback: DefaultClusterCallback, + mode: Integer, + amount: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun setWeeklySchedule( + callback: DefaultClusterCallback, + numberOfTransitionsForSequence: Integer, + dayOfWeekForSequence: Integer, + modeForSequence: Integer, + transitions: ArrayList + ) { + // Implementation needs to be added here + } + + fun setWeeklySchedule( + callback: DefaultClusterCallback, + numberOfTransitionsForSequence: Integer, + dayOfWeekForSequence: Integer, + modeForSequence: Integer, + transitions: ArrayList, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun getWeeklySchedule( + callback: GetWeeklyScheduleResponseCallback, + daysToReturn: Integer, + modeToReturn: Integer + ) { + // Implementation needs to be added here + } + + fun getWeeklySchedule( + callback: GetWeeklyScheduleResponseCallback, + daysToReturn: Integer, + modeToReturn: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun clearWeeklySchedule(callback: DefaultClusterCallback) { + // Implementation needs to be added here + } + + fun clearWeeklySchedule(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + interface GetWeeklyScheduleResponseCallback { + fun onSuccess( + numberOfTransitionsForSequence: Integer, + dayOfWeekForSequence: Integer, + modeForSequence: Integer, + transitions: ArrayList + ) + + fun onError(error: Exception) + } + + interface LocalTemperatureAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface OutdoorTemperatureAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface TemperatureSetpointHoldDurationAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface SetpointChangeAmountAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface OccupiedSetbackAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface OccupiedSetbackMinAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface OccupiedSetbackMaxAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface UnoccupiedSetbackAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface UnoccupiedSetbackMinAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface UnoccupiedSetbackMaxAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface ACCoilTemperatureAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readLocalTemperatureAttribute(callback: LocalTemperatureAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeLocalTemperatureAttribute( + callback: LocalTemperatureAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readOutdoorTemperatureAttribute(callback: OutdoorTemperatureAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeOutdoorTemperatureAttribute( + callback: OutdoorTemperatureAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readOccupancyAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeOccupancyAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAbsMinHeatSetpointLimitAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAbsMinHeatSetpointLimitAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAbsMaxHeatSetpointLimitAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAbsMaxHeatSetpointLimitAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAbsMinCoolSetpointLimitAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAbsMinCoolSetpointLimitAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAbsMaxCoolSetpointLimitAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAbsMaxCoolSetpointLimitAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPICoolingDemandAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePICoolingDemandAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPIHeatingDemandAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePIHeatingDemandAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readHVACSystemTypeConfigurationAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeHVACSystemTypeConfigurationAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeHVACSystemTypeConfigurationAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeHVACSystemTypeConfigurationAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readLocalTemperatureCalibrationAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeLocalTemperatureCalibrationAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeLocalTemperatureCalibrationAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeLocalTemperatureCalibrationAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readOccupiedCoolingSetpointAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeOccupiedCoolingSetpointAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeOccupiedCoolingSetpointAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeOccupiedCoolingSetpointAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readOccupiedHeatingSetpointAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeOccupiedHeatingSetpointAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeOccupiedHeatingSetpointAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeOccupiedHeatingSetpointAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readUnoccupiedCoolingSetpointAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeUnoccupiedCoolingSetpointAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeUnoccupiedCoolingSetpointAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeUnoccupiedCoolingSetpointAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readUnoccupiedHeatingSetpointAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeUnoccupiedHeatingSetpointAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeUnoccupiedHeatingSetpointAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeUnoccupiedHeatingSetpointAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMinHeatSetpointLimitAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeMinHeatSetpointLimitAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeMinHeatSetpointLimitAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeMinHeatSetpointLimitAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMaxHeatSetpointLimitAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeMaxHeatSetpointLimitAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeMaxHeatSetpointLimitAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeMaxHeatSetpointLimitAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMinCoolSetpointLimitAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeMinCoolSetpointLimitAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeMinCoolSetpointLimitAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeMinCoolSetpointLimitAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMaxCoolSetpointLimitAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeMaxCoolSetpointLimitAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeMaxCoolSetpointLimitAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeMaxCoolSetpointLimitAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMinSetpointDeadBandAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeMinSetpointDeadBandAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeMinSetpointDeadBandAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeMinSetpointDeadBandAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRemoteSensingAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeRemoteSensingAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeRemoteSensingAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeRemoteSensingAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readControlSequenceOfOperationAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeControlSequenceOfOperationAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeControlSequenceOfOperationAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeControlSequenceOfOperationAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readSystemModeAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeSystemModeAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeSystemModeAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeSystemModeAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readThermostatRunningModeAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeThermostatRunningModeAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readStartOfWeekAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeStartOfWeekAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNumberOfWeeklyTransitionsAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeNumberOfWeeklyTransitionsAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNumberOfDailyTransitionsAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeNumberOfDailyTransitionsAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readTemperatureSetpointHoldAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeTemperatureSetpointHoldAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeTemperatureSetpointHoldAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeTemperatureSetpointHoldAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readTemperatureSetpointHoldDurationAttribute( + callback: TemperatureSetpointHoldDurationAttributeCallback + ) { + // Implementation needs to be added here + } + + fun writeTemperatureSetpointHoldDurationAttribute( + callback: DefaultClusterCallback, + value: Integer + ) { + // Implementation needs to be added here + } + + fun writeTemperatureSetpointHoldDurationAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeTemperatureSetpointHoldDurationAttribute( + callback: TemperatureSetpointHoldDurationAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readThermostatProgrammingOperationModeAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeThermostatProgrammingOperationModeAttribute( + callback: DefaultClusterCallback, + value: Integer + ) { + // Implementation needs to be added here + } + + fun writeThermostatProgrammingOperationModeAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeThermostatProgrammingOperationModeAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readThermostatRunningStateAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeThermostatRunningStateAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readSetpointChangeSourceAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeSetpointChangeSourceAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readSetpointChangeAmountAttribute(callback: SetpointChangeAmountAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeSetpointChangeAmountAttribute( + callback: SetpointChangeAmountAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readSetpointChangeSourceTimestampAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeSetpointChangeSourceTimestampAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readOccupiedSetbackAttribute(callback: OccupiedSetbackAttributeCallback) { + // Implementation needs to be added here + } + + fun writeOccupiedSetbackAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeOccupiedSetbackAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeOccupiedSetbackAttribute( + callback: OccupiedSetbackAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readOccupiedSetbackMinAttribute(callback: OccupiedSetbackMinAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeOccupiedSetbackMinAttribute( + callback: OccupiedSetbackMinAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readOccupiedSetbackMaxAttribute(callback: OccupiedSetbackMaxAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeOccupiedSetbackMaxAttribute( + callback: OccupiedSetbackMaxAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readUnoccupiedSetbackAttribute(callback: UnoccupiedSetbackAttributeCallback) { + // Implementation needs to be added here + } + + fun writeUnoccupiedSetbackAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeUnoccupiedSetbackAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeUnoccupiedSetbackAttribute( + callback: UnoccupiedSetbackAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readUnoccupiedSetbackMinAttribute(callback: UnoccupiedSetbackMinAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeUnoccupiedSetbackMinAttribute( + callback: UnoccupiedSetbackMinAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readUnoccupiedSetbackMaxAttribute(callback: UnoccupiedSetbackMaxAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeUnoccupiedSetbackMaxAttribute( + callback: UnoccupiedSetbackMaxAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEmergencyHeatDeltaAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeEmergencyHeatDeltaAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeEmergencyHeatDeltaAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeEmergencyHeatDeltaAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readACTypeAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeACTypeAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeACTypeAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeACTypeAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readACCapacityAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeACCapacityAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeACCapacityAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeACCapacityAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readACRefrigerantTypeAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeACRefrigerantTypeAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeACRefrigerantTypeAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeACRefrigerantTypeAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readACCompressorTypeAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeACCompressorTypeAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeACCompressorTypeAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeACCompressorTypeAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readACErrorCodeAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun writeACErrorCodeAttribute(callback: DefaultClusterCallback, value: Long) { + // Implementation needs to be added here + } + + fun writeACErrorCodeAttribute( + callback: DefaultClusterCallback, + value: Long, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeACErrorCodeAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readACLouverPositionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeACLouverPositionAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeACLouverPositionAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeACLouverPositionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readACCoilTemperatureAttribute(callback: ACCoilTemperatureAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeACCoilTemperatureAttribute( + callback: ACCoilTemperatureAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readACCapacityformatAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeACCapacityformatAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeACCapacityformatAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeACCapacityformatAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThermostatUserInterfaceConfigurationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThermostatUserInterfaceConfigurationCluster.kt new file mode 100644 index 00000000000000..c1d944c7854743 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThermostatUserInterfaceConfigurationCluster.kt @@ -0,0 +1,205 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class ThermostatUserInterfaceConfigurationCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 516u + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readTemperatureDisplayModeAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeTemperatureDisplayModeAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeTemperatureDisplayModeAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeTemperatureDisplayModeAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readKeypadLockoutAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeKeypadLockoutAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeKeypadLockoutAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeKeypadLockoutAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readScheduleProgrammingVisibilityAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeScheduleProgrammingVisibilityAttribute( + callback: DefaultClusterCallback, + value: Integer + ) { + // Implementation needs to be added here + } + + fun writeScheduleProgrammingVisibilityAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeScheduleProgrammingVisibilityAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThreadNetworkDiagnosticsCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThreadNetworkDiagnosticsCluster.kt new file mode 100644 index 00000000000000..2050e5b5dcc69a --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThreadNetworkDiagnosticsCluster.kt @@ -0,0 +1,1056 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 53u + } + + fun resetCounts(callback: DefaultClusterCallback) { + // Implementation needs to be added here + } + + fun resetCounts(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + interface ChannelAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface RoutingRoleAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface NetworkNameAttributeCallback { + fun onSuccess(value: String?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface PanIdAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface ExtendedPanIdAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface MeshLocalPrefixAttributeCallback { + fun onSuccess(value: ByteArray?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface NeighborTableAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface RouteTableAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface PartitionIdAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface WeightingAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface DataVersionAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface StableDataVersionAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface LeaderRouterIdAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface ActiveTimestampAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface PendingTimestampAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface DelayAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface SecurityPolicyAttributeCallback { + fun onSuccess(value: ChipStructs.ThreadNetworkDiagnosticsClusterSecurityPolicy?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface ChannelPage0MaskAttributeCallback { + fun onSuccess(value: ByteArray?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface OperationalDatasetComponentsAttributeCallback { + fun onSuccess(value: ChipStructs.ThreadNetworkDiagnosticsClusterOperationalDatasetComponents?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface ActiveNetworkFaultsListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readChannelAttribute(callback: ChannelAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeChannelAttribute( + callback: ChannelAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRoutingRoleAttribute(callback: RoutingRoleAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRoutingRoleAttribute( + callback: RoutingRoleAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNetworkNameAttribute(callback: NetworkNameAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeNetworkNameAttribute( + callback: NetworkNameAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPanIdAttribute(callback: PanIdAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePanIdAttribute( + callback: PanIdAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readExtendedPanIdAttribute(callback: ExtendedPanIdAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeExtendedPanIdAttribute( + callback: ExtendedPanIdAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMeshLocalPrefixAttribute(callback: MeshLocalPrefixAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeshLocalPrefixAttribute( + callback: MeshLocalPrefixAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readOverrunCountAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeOverrunCountAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNeighborTableAttribute(callback: NeighborTableAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeNeighborTableAttribute( + callback: NeighborTableAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRouteTableAttribute(callback: RouteTableAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRouteTableAttribute( + callback: RouteTableAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPartitionIdAttribute(callback: PartitionIdAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePartitionIdAttribute( + callback: PartitionIdAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readWeightingAttribute(callback: WeightingAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeWeightingAttribute( + callback: WeightingAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readDataVersionAttribute(callback: DataVersionAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeDataVersionAttribute( + callback: DataVersionAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readStableDataVersionAttribute(callback: StableDataVersionAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeStableDataVersionAttribute( + callback: StableDataVersionAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readLeaderRouterIdAttribute(callback: LeaderRouterIdAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeLeaderRouterIdAttribute( + callback: LeaderRouterIdAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readDetachedRoleCountAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeDetachedRoleCountAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readChildRoleCountAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeChildRoleCountAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRouterRoleCountAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRouterRoleCountAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readLeaderRoleCountAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeLeaderRoleCountAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttachAttemptCountAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttachAttemptCountAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPartitionIdChangeCountAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePartitionIdChangeCountAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readBetterPartitionAttachAttemptCountAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeBetterPartitionAttachAttemptCountAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readParentChangeCountAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeParentChangeCountAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readTxTotalCountAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeTxTotalCountAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readTxUnicastCountAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeTxUnicastCountAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readTxBroadcastCountAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeTxBroadcastCountAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readTxAckRequestedCountAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeTxAckRequestedCountAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readTxAckedCountAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeTxAckedCountAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readTxNoAckRequestedCountAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeTxNoAckRequestedCountAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readTxDataCountAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeTxDataCountAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readTxDataPollCountAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeTxDataPollCountAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readTxBeaconCountAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeTxBeaconCountAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readTxBeaconRequestCountAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeTxBeaconRequestCountAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readTxOtherCountAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeTxOtherCountAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readTxRetryCountAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeTxRetryCountAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readTxDirectMaxRetryExpiryCountAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeTxDirectMaxRetryExpiryCountAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readTxIndirectMaxRetryExpiryCountAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeTxIndirectMaxRetryExpiryCountAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readTxErrCcaCountAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeTxErrCcaCountAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readTxErrAbortCountAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeTxErrAbortCountAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readTxErrBusyChannelCountAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeTxErrBusyChannelCountAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRxTotalCountAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRxTotalCountAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRxUnicastCountAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRxUnicastCountAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRxBroadcastCountAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRxBroadcastCountAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRxDataCountAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRxDataCountAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRxDataPollCountAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRxDataPollCountAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRxBeaconCountAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRxBeaconCountAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRxBeaconRequestCountAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRxBeaconRequestCountAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRxOtherCountAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRxOtherCountAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRxAddressFilteredCountAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRxAddressFilteredCountAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRxDestAddrFilteredCountAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRxDestAddrFilteredCountAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRxDuplicatedCountAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRxDuplicatedCountAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRxErrNoFrameCountAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRxErrNoFrameCountAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRxErrUnknownNeighborCountAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRxErrUnknownNeighborCountAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRxErrInvalidSrcAddrCountAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRxErrInvalidSrcAddrCountAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRxErrSecCountAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRxErrSecCountAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRxErrFcsCountAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRxErrFcsCountAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRxErrOtherCountAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRxErrOtherCountAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readActiveTimestampAttribute(callback: ActiveTimestampAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeActiveTimestampAttribute( + callback: ActiveTimestampAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPendingTimestampAttribute(callback: PendingTimestampAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePendingTimestampAttribute( + callback: PendingTimestampAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readDelayAttribute(callback: DelayAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeDelayAttribute( + callback: DelayAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readSecurityPolicyAttribute(callback: SecurityPolicyAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeSecurityPolicyAttribute( + callback: SecurityPolicyAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readChannelPage0MaskAttribute(callback: ChannelPage0MaskAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeChannelPage0MaskAttribute( + callback: ChannelPage0MaskAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readOperationalDatasetComponentsAttribute( + callback: OperationalDatasetComponentsAttributeCallback + ) { + // Implementation needs to be added here + } + + fun subscribeOperationalDatasetComponentsAttribute( + callback: OperationalDatasetComponentsAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readActiveNetworkFaultsListAttribute(callback: ActiveNetworkFaultsListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeActiveNetworkFaultsListAttribute( + callback: ActiveNetworkFaultsListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimeFormatLocalizationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimeFormatLocalizationCluster.kt new file mode 100644 index 00000000000000..040b51246a2cf4 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimeFormatLocalizationCluster.kt @@ -0,0 +1,198 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class TimeFormatLocalizationCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 44u + } + + interface SupportedCalendarTypesAttributeCallback { + fun onSuccess(value: ArrayList?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readHourFormatAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeHourFormatAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeHourFormatAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeHourFormatAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readActiveCalendarTypeAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeActiveCalendarTypeAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeActiveCalendarTypeAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeActiveCalendarTypeAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readSupportedCalendarTypesAttribute(callback: SupportedCalendarTypesAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeSupportedCalendarTypesAttribute( + callback: SupportedCalendarTypesAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimeSynchronizationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimeSynchronizationCluster.kt new file mode 100644 index 00000000000000..4d7b431cc9d501 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimeSynchronizationCluster.kt @@ -0,0 +1,416 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class TimeSynchronizationCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 56u + } + + fun setUTCTime( + callback: DefaultClusterCallback, + UTCTime: Long, + granularity: Integer, + timeSource: Integer? + ) { + // Implementation needs to be added here + } + + fun setUTCTime( + callback: DefaultClusterCallback, + UTCTime: Long, + granularity: Integer, + timeSource: Integer?, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun setTrustedTimeSource( + callback: DefaultClusterCallback, + trustedTimeSource: ChipStructs.TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct? + ) { + // Implementation needs to be added here + } + + fun setTrustedTimeSource( + callback: DefaultClusterCallback, + trustedTimeSource: ChipStructs.TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct?, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun setTimeZone( + callback: SetTimeZoneResponseCallback, + timeZone: ArrayList + ) { + // Implementation needs to be added here + } + + fun setTimeZone( + callback: SetTimeZoneResponseCallback, + timeZone: ArrayList, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun setDSTOffset( + callback: DefaultClusterCallback, + DSTOffset: ArrayList + ) { + // Implementation needs to be added here + } + + fun setDSTOffset( + callback: DefaultClusterCallback, + DSTOffset: ArrayList, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun setDefaultNTP(callback: DefaultClusterCallback, defaultNTP: String?) { + // Implementation needs to be added here + } + + fun setDefaultNTP( + callback: DefaultClusterCallback, + defaultNTP: String?, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + interface SetTimeZoneResponseCallback { + fun onSuccess(DSTOffsetRequired: Boolean) + + fun onError(error: Exception) + } + + interface UTCTimeAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface TrustedTimeSourceAttributeCallback { + fun onSuccess(value: ChipStructs.TimeSynchronizationClusterTrustedTimeSourceStruct?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface DefaultNTPAttributeCallback { + fun onSuccess(value: String?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface TimeZoneAttributeCallback { + fun onSuccess(value: ArrayList?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface DSTOffsetAttributeCallback { + fun onSuccess(value: ArrayList?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface LocalTimeAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readUTCTimeAttribute(callback: UTCTimeAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeUTCTimeAttribute( + callback: UTCTimeAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGranularityAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGranularityAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readTimeSourceAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeTimeSourceAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readTrustedTimeSourceAttribute(callback: TrustedTimeSourceAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeTrustedTimeSourceAttribute( + callback: TrustedTimeSourceAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readDefaultNTPAttribute(callback: DefaultNTPAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeDefaultNTPAttribute( + callback: DefaultNTPAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readTimeZoneAttribute(callback: TimeZoneAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeTimeZoneAttribute( + callback: TimeZoneAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readDSTOffsetAttribute(callback: DSTOffsetAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeDSTOffsetAttribute( + callback: DSTOffsetAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readLocalTimeAttribute(callback: LocalTimeAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeLocalTimeAttribute( + callback: LocalTimeAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readTimeZoneDatabaseAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeTimeZoneDatabaseAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNTPServerAvailableAttribute(callback: BooleanAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeNTPServerAvailableAttribute( + callback: BooleanAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readTimeZoneListMaxSizeAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeTimeZoneListMaxSizeAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readDSTOffsetListMaxSizeAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeDSTOffsetListMaxSizeAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readSupportsDNSResolveAttribute(callback: BooleanAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeSupportsDNSResolveAttribute( + callback: BooleanAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TotalVolatileOrganicCompoundsConcentrationMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TotalVolatileOrganicCompoundsConcentrationMeasurementCluster.kt new file mode 100644 index 00000000000000..a212e62b2059a5 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TotalVolatileOrganicCompoundsConcentrationMeasurementCluster.kt @@ -0,0 +1,302 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class TotalVolatileOrganicCompoundsConcentrationMeasurementCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 1070u + } + + interface MeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface MinMeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface MaxMeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface PeakMeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AverageMeasuredValueAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readMeasuredValueAttribute(callback: MeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasuredValueAttribute( + callback: MeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMinMeasuredValueAttribute(callback: MinMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMinMeasuredValueAttribute( + callback: MinMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMaxMeasuredValueAttribute(callback: MaxMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMaxMeasuredValueAttribute( + callback: MaxMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPeakMeasuredValueAttribute(callback: PeakMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePeakMeasuredValueAttribute( + callback: PeakMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPeakMeasuredValueWindowAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePeakMeasuredValueWindowAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAverageMeasuredValueAttribute(callback: AverageMeasuredValueAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAverageMeasuredValueAttribute( + callback: AverageMeasuredValueAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAverageMeasuredValueWindowAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAverageMeasuredValueWindowAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readUncertaintyAttribute(callback: FloatAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeUncertaintyAttribute( + callback: FloatAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMeasurementUnitAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasurementUnitAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readMeasurementMediumAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMeasurementMediumAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readLevelValueAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeLevelValueAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UnitLocalizationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UnitLocalizationCluster.kt new file mode 100644 index 00000000000000..f72c32be0af306 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UnitLocalizationCluster.kt @@ -0,0 +1,154 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class UnitLocalizationCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 45u + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readTemperatureUnitAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeTemperatureUnitAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeTemperatureUnitAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeTemperatureUnitAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UnitTestingCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UnitTestingCluster.kt new file mode 100644 index 00000000000000..16e4708245a97b --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UnitTestingCluster.kt @@ -0,0 +1,2874 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class UnitTestingCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 4294048773u + } + + fun test(callback: DefaultClusterCallback) { + // Implementation needs to be added here + } + + fun test(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + fun testNotHandled(callback: DefaultClusterCallback) { + // Implementation needs to be added here + } + + fun testNotHandled(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + fun testSpecific(callback: TestSpecificResponseCallback) { + // Implementation needs to be added here + } + + fun testSpecific(callback: TestSpecificResponseCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + fun testUnknownCommand(callback: DefaultClusterCallback) { + // Implementation needs to be added here + } + + fun testUnknownCommand(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + fun testAddArguments(callback: TestAddArgumentsResponseCallback, arg1: Integer, arg2: Integer) { + // Implementation needs to be added here + } + + fun testAddArguments( + callback: TestAddArgumentsResponseCallback, + arg1: Integer, + arg2: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun testSimpleArgumentRequest(callback: TestSimpleArgumentResponseCallback, arg1: Boolean) { + // Implementation needs to be added here + } + + fun testSimpleArgumentRequest( + callback: TestSimpleArgumentResponseCallback, + arg1: Boolean, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun testStructArrayArgumentRequest( + callback: TestStructArrayArgumentResponseCallback, + arg1: ArrayList, + arg2: ArrayList, + arg3: ArrayList, + arg4: ArrayList, + arg5: Integer, + arg6: Boolean + ) { + // Implementation needs to be added here + } + + fun testStructArrayArgumentRequest( + callback: TestStructArrayArgumentResponseCallback, + arg1: ArrayList, + arg2: ArrayList, + arg3: ArrayList, + arg4: ArrayList, + arg5: Integer, + arg6: Boolean, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun testStructArgumentRequest( + callback: BooleanResponseCallback, + arg1: ChipStructs.UnitTestingClusterSimpleStruct + ) { + // Implementation needs to be added here + } + + fun testStructArgumentRequest( + callback: BooleanResponseCallback, + arg1: ChipStructs.UnitTestingClusterSimpleStruct, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun testNestedStructArgumentRequest( + callback: BooleanResponseCallback, + arg1: ChipStructs.UnitTestingClusterNestedStruct + ) { + // Implementation needs to be added here + } + + fun testNestedStructArgumentRequest( + callback: BooleanResponseCallback, + arg1: ChipStructs.UnitTestingClusterNestedStruct, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun testListStructArgumentRequest( + callback: BooleanResponseCallback, + arg1: ArrayList + ) { + // Implementation needs to be added here + } + + fun testListStructArgumentRequest( + callback: BooleanResponseCallback, + arg1: ArrayList, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun testListInt8UArgumentRequest(callback: BooleanResponseCallback, arg1: ArrayList) { + // Implementation needs to be added here + } + + fun testListInt8UArgumentRequest( + callback: BooleanResponseCallback, + arg1: ArrayList, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun testNestedStructListArgumentRequest( + callback: BooleanResponseCallback, + arg1: ChipStructs.UnitTestingClusterNestedStructList + ) { + // Implementation needs to be added here + } + + fun testNestedStructListArgumentRequest( + callback: BooleanResponseCallback, + arg1: ChipStructs.UnitTestingClusterNestedStructList, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun testListNestedStructListArgumentRequest( + callback: BooleanResponseCallback, + arg1: ArrayList + ) { + // Implementation needs to be added here + } + + fun testListNestedStructListArgumentRequest( + callback: BooleanResponseCallback, + arg1: ArrayList, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun testListInt8UReverseRequest( + callback: TestListInt8UReverseResponseCallback, + arg1: ArrayList + ) { + // Implementation needs to be added here + } + + fun testListInt8UReverseRequest( + callback: TestListInt8UReverseResponseCallback, + arg1: ArrayList, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun testEnumsRequest(callback: TestEnumsResponseCallback, arg1: Integer, arg2: Integer) { + // Implementation needs to be added here + } + + fun testEnumsRequest( + callback: TestEnumsResponseCallback, + arg1: Integer, + arg2: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun testNullableOptionalRequest(callback: TestNullableOptionalResponseCallback, arg1: Integer?) { + // Implementation needs to be added here + } + + fun testNullableOptionalRequest( + callback: TestNullableOptionalResponseCallback, + arg1: Integer?, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun testComplexNullableOptionalRequest( + callback: TestComplexNullableOptionalResponseCallback, + nullableInt: Integer?, + optionalInt: Integer?, + nullableOptionalInt: Integer?, + nullableString: String?, + optionalString: String?, + nullableOptionalString: String?, + nullableStruct: ChipStructs.UnitTestingClusterSimpleStruct?, + optionalStruct: ChipStructs.UnitTestingClusterSimpleStruct?, + nullableOptionalStruct: ChipStructs.UnitTestingClusterSimpleStruct?, + nullableList: ArrayList?, + optionalList: ArrayList?, + nullableOptionalList: ArrayList? + ) { + // Implementation needs to be added here + } + + fun testComplexNullableOptionalRequest( + callback: TestComplexNullableOptionalResponseCallback, + nullableInt: Integer?, + optionalInt: Integer?, + nullableOptionalInt: Integer?, + nullableString: String?, + optionalString: String?, + nullableOptionalString: String?, + nullableStruct: ChipStructs.UnitTestingClusterSimpleStruct?, + optionalStruct: ChipStructs.UnitTestingClusterSimpleStruct?, + nullableOptionalStruct: ChipStructs.UnitTestingClusterSimpleStruct?, + nullableList: ArrayList?, + optionalList: ArrayList?, + nullableOptionalList: ArrayList?, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun simpleStructEchoRequest( + callback: SimpleStructResponseCallback, + arg1: ChipStructs.UnitTestingClusterSimpleStruct + ) { + // Implementation needs to be added here + } + + fun simpleStructEchoRequest( + callback: SimpleStructResponseCallback, + arg1: ChipStructs.UnitTestingClusterSimpleStruct, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun timedInvokeRequest(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + fun testSimpleOptionalArgumentRequest(callback: DefaultClusterCallback, arg1: Boolean?) { + // Implementation needs to be added here + } + + fun testSimpleOptionalArgumentRequest( + callback: DefaultClusterCallback, + arg1: Boolean?, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun testEmitTestEventRequest( + callback: TestEmitTestEventResponseCallback, + arg1: Integer, + arg2: Integer, + arg3: Boolean + ) { + // Implementation needs to be added here + } + + fun testEmitTestEventRequest( + callback: TestEmitTestEventResponseCallback, + arg1: Integer, + arg2: Integer, + arg3: Boolean, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun testEmitTestFabricScopedEventRequest( + callback: TestEmitTestFabricScopedEventResponseCallback, + arg1: Integer + ) { + // Implementation needs to be added here + } + + fun testEmitTestFabricScopedEventRequest( + callback: TestEmitTestFabricScopedEventResponseCallback, + arg1: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + interface TestSpecificResponseCallback { + fun onSuccess(returnValue: Integer) + + fun onError(error: Exception) + } + + interface TestAddArgumentsResponseCallback { + fun onSuccess(returnValue: Integer) + + fun onError(error: Exception) + } + + interface TestSimpleArgumentResponseCallback { + fun onSuccess(returnValue: Boolean) + + fun onError(error: Exception) + } + + interface TestStructArrayArgumentResponseCallback { + fun onSuccess( + arg1: ArrayList, + arg2: ArrayList, + arg3: ArrayList, + arg4: ArrayList, + arg5: Integer, + arg6: Boolean + ) + + fun onError(error: Exception) + } + + interface BooleanResponseCallback { + fun onSuccess(value: Boolean) + + fun onError(error: Exception) + } + + interface TestListInt8UReverseResponseCallback { + fun onSuccess(arg1: ArrayList) + + fun onError(error: Exception) + } + + interface TestEnumsResponseCallback { + fun onSuccess(arg1: Integer, arg2: Integer) + + fun onError(error: Exception) + } + + interface TestNullableOptionalResponseCallback { + fun onSuccess(wasPresent: Boolean, wasNull: Boolean?, value: Integer?, originalValue: Integer?) + + fun onError(error: Exception) + } + + interface TestComplexNullableOptionalResponseCallback { + fun onSuccess( + nullableIntWasNull: Boolean, + nullableIntValue: Integer?, + optionalIntWasPresent: Boolean, + optionalIntValue: Integer?, + nullableOptionalIntWasPresent: Boolean, + nullableOptionalIntWasNull: Boolean?, + nullableOptionalIntValue: Integer?, + nullableStringWasNull: Boolean, + nullableStringValue: String?, + optionalStringWasPresent: Boolean, + optionalStringValue: String?, + nullableOptionalStringWasPresent: Boolean, + nullableOptionalStringWasNull: Boolean?, + nullableOptionalStringValue: String?, + nullableStructWasNull: Boolean, + nullableStructValue: ChipStructs.UnitTestingClusterSimpleStruct?, + optionalStructWasPresent: Boolean, + optionalStructValue: ChipStructs.UnitTestingClusterSimpleStruct?, + nullableOptionalStructWasPresent: Boolean, + nullableOptionalStructWasNull: Boolean?, + nullableOptionalStructValue: ChipStructs.UnitTestingClusterSimpleStruct?, + nullableListWasNull: Boolean, + nullableListValue: ArrayList?, + optionalListWasPresent: Boolean, + optionalListValue: ArrayList?, + nullableOptionalListWasPresent: Boolean, + nullableOptionalListWasNull: Boolean?, + nullableOptionalListValue: ArrayList? + ) + + fun onError(error: Exception) + } + + interface SimpleStructResponseCallback { + fun onSuccess(arg1: ChipStructs.UnitTestingClusterSimpleStruct) + + fun onError(error: Exception) + } + + interface TestEmitTestEventResponseCallback { + fun onSuccess(value: Long) + + fun onError(error: Exception) + } + + interface TestEmitTestFabricScopedEventResponseCallback { + fun onSuccess(value: Long) + + fun onError(error: Exception) + } + + interface ListInt8uAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface ListOctetStringAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface ListStructOctetStringAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface ListNullablesAndOptionalsStructAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface StructAttrAttributeCallback { + fun onSuccess(value: ChipStructs.UnitTestingClusterSimpleStruct) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface ListLongOctetStringAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface ListFabricScopedAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface NullableBooleanAttributeCallback { + fun onSuccess(value: Boolean?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface NullableBitmap8AttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface NullableBitmap16AttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface NullableBitmap32AttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface NullableBitmap64AttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface NullableInt8uAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface NullableInt16uAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface NullableInt24uAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface NullableInt32uAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface NullableInt40uAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface NullableInt48uAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface NullableInt56uAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface NullableInt64uAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface NullableInt8sAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface NullableInt16sAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface NullableInt24sAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface NullableInt32sAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface NullableInt40sAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface NullableInt48sAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface NullableInt56sAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface NullableInt64sAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface NullableEnum8AttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface NullableEnum16AttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface NullableFloatSingleAttributeCallback { + fun onSuccess(value: Float?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface NullableFloatDoubleAttributeCallback { + fun onSuccess(value: Double?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface NullableOctetStringAttributeCallback { + fun onSuccess(value: ByteArray?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface NullableCharStringAttributeCallback { + fun onSuccess(value: String?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface NullableEnumAttrAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface NullableStructAttributeCallback { + fun onSuccess(value: ChipStructs.UnitTestingClusterSimpleStruct?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface NullableRangeRestrictedInt8uAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface NullableRangeRestrictedInt8sAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface NullableRangeRestrictedInt16uAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface NullableRangeRestrictedInt16sAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readBooleanAttribute(callback: BooleanAttributeCallback) { + // Implementation needs to be added here + } + + fun writeBooleanAttribute(callback: DefaultClusterCallback, value: Boolean) { + // Implementation needs to be added here + } + + fun writeBooleanAttribute( + callback: DefaultClusterCallback, + value: Boolean, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeBooleanAttribute( + callback: BooleanAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readBitmap8Attribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeBitmap8Attribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeBitmap8Attribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeBitmap8Attribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readBitmap16Attribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeBitmap16Attribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeBitmap16Attribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeBitmap16Attribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readBitmap32Attribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun writeBitmap32Attribute(callback: DefaultClusterCallback, value: Long) { + // Implementation needs to be added here + } + + fun writeBitmap32Attribute( + callback: DefaultClusterCallback, + value: Long, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeBitmap32Attribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readBitmap64Attribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun writeBitmap64Attribute(callback: DefaultClusterCallback, value: Long) { + // Implementation needs to be added here + } + + fun writeBitmap64Attribute( + callback: DefaultClusterCallback, + value: Long, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeBitmap64Attribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readInt8uAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeInt8uAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeInt8uAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeInt8uAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readInt16uAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeInt16uAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeInt16uAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeInt16uAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readInt24uAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun writeInt24uAttribute(callback: DefaultClusterCallback, value: Long) { + // Implementation needs to be added here + } + + fun writeInt24uAttribute( + callback: DefaultClusterCallback, + value: Long, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeInt24uAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readInt32uAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun writeInt32uAttribute(callback: DefaultClusterCallback, value: Long) { + // Implementation needs to be added here + } + + fun writeInt32uAttribute( + callback: DefaultClusterCallback, + value: Long, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeInt32uAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readInt40uAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun writeInt40uAttribute(callback: DefaultClusterCallback, value: Long) { + // Implementation needs to be added here + } + + fun writeInt40uAttribute( + callback: DefaultClusterCallback, + value: Long, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeInt40uAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readInt48uAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun writeInt48uAttribute(callback: DefaultClusterCallback, value: Long) { + // Implementation needs to be added here + } + + fun writeInt48uAttribute( + callback: DefaultClusterCallback, + value: Long, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeInt48uAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readInt56uAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun writeInt56uAttribute(callback: DefaultClusterCallback, value: Long) { + // Implementation needs to be added here + } + + fun writeInt56uAttribute( + callback: DefaultClusterCallback, + value: Long, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeInt56uAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readInt64uAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun writeInt64uAttribute(callback: DefaultClusterCallback, value: Long) { + // Implementation needs to be added here + } + + fun writeInt64uAttribute( + callback: DefaultClusterCallback, + value: Long, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeInt64uAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readInt8sAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeInt8sAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeInt8sAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeInt8sAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readInt16sAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeInt16sAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeInt16sAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeInt16sAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readInt24sAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun writeInt24sAttribute(callback: DefaultClusterCallback, value: Long) { + // Implementation needs to be added here + } + + fun writeInt24sAttribute( + callback: DefaultClusterCallback, + value: Long, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeInt24sAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readInt32sAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun writeInt32sAttribute(callback: DefaultClusterCallback, value: Long) { + // Implementation needs to be added here + } + + fun writeInt32sAttribute( + callback: DefaultClusterCallback, + value: Long, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeInt32sAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readInt40sAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun writeInt40sAttribute(callback: DefaultClusterCallback, value: Long) { + // Implementation needs to be added here + } + + fun writeInt40sAttribute( + callback: DefaultClusterCallback, + value: Long, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeInt40sAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readInt48sAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun writeInt48sAttribute(callback: DefaultClusterCallback, value: Long) { + // Implementation needs to be added here + } + + fun writeInt48sAttribute( + callback: DefaultClusterCallback, + value: Long, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeInt48sAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readInt56sAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun writeInt56sAttribute(callback: DefaultClusterCallback, value: Long) { + // Implementation needs to be added here + } + + fun writeInt56sAttribute( + callback: DefaultClusterCallback, + value: Long, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeInt56sAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readInt64sAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun writeInt64sAttribute(callback: DefaultClusterCallback, value: Long) { + // Implementation needs to be added here + } + + fun writeInt64sAttribute( + callback: DefaultClusterCallback, + value: Long, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeInt64sAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEnum8Attribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeEnum8Attribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeEnum8Attribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeEnum8Attribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEnum16Attribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeEnum16Attribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeEnum16Attribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeEnum16Attribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFloatSingleAttribute(callback: FloatAttributeCallback) { + // Implementation needs to be added here + } + + fun writeFloatSingleAttribute(callback: DefaultClusterCallback, value: Float) { + // Implementation needs to be added here + } + + fun writeFloatSingleAttribute( + callback: DefaultClusterCallback, + value: Float, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeFloatSingleAttribute( + callback: FloatAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFloatDoubleAttribute(callback: DoubleAttributeCallback) { + // Implementation needs to be added here + } + + fun writeFloatDoubleAttribute(callback: DefaultClusterCallback, value: Double) { + // Implementation needs to be added here + } + + fun writeFloatDoubleAttribute( + callback: DefaultClusterCallback, + value: Double, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeFloatDoubleAttribute( + callback: DoubleAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readOctetStringAttribute(callback: OctetStringAttributeCallback) { + // Implementation needs to be added here + } + + fun writeOctetStringAttribute(callback: DefaultClusterCallback, value: ByteArray) { + // Implementation needs to be added here + } + + fun writeOctetStringAttribute( + callback: DefaultClusterCallback, + value: ByteArray, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeOctetStringAttribute( + callback: OctetStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readListInt8uAttribute(callback: ListInt8uAttributeCallback) { + // Implementation needs to be added here + } + + fun writeListInt8uAttribute(callback: DefaultClusterCallback, value: ArrayList) { + // Implementation needs to be added here + } + + fun writeListInt8uAttribute( + callback: DefaultClusterCallback, + value: ArrayList, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeListInt8uAttribute( + callback: ListInt8uAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readListOctetStringAttribute(callback: ListOctetStringAttributeCallback) { + // Implementation needs to be added here + } + + fun writeListOctetStringAttribute(callback: DefaultClusterCallback, value: ArrayList) { + // Implementation needs to be added here + } + + fun writeListOctetStringAttribute( + callback: DefaultClusterCallback, + value: ArrayList, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeListOctetStringAttribute( + callback: ListOctetStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readListStructOctetStringAttribute(callback: ListStructOctetStringAttributeCallback) { + // Implementation needs to be added here + } + + fun writeListStructOctetStringAttribute( + callback: DefaultClusterCallback, + value: ArrayList + ) { + // Implementation needs to be added here + } + + fun writeListStructOctetStringAttribute( + callback: DefaultClusterCallback, + value: ArrayList, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeListStructOctetStringAttribute( + callback: ListStructOctetStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readLongOctetStringAttribute(callback: OctetStringAttributeCallback) { + // Implementation needs to be added here + } + + fun writeLongOctetStringAttribute(callback: DefaultClusterCallback, value: ByteArray) { + // Implementation needs to be added here + } + + fun writeLongOctetStringAttribute( + callback: DefaultClusterCallback, + value: ByteArray, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeLongOctetStringAttribute( + callback: OctetStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readCharStringAttribute(callback: CharStringAttributeCallback) { + // Implementation needs to be added here + } + + fun writeCharStringAttribute(callback: DefaultClusterCallback, value: String) { + // Implementation needs to be added here + } + + fun writeCharStringAttribute( + callback: DefaultClusterCallback, + value: String, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeCharStringAttribute( + callback: CharStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readLongCharStringAttribute(callback: CharStringAttributeCallback) { + // Implementation needs to be added here + } + + fun writeLongCharStringAttribute(callback: DefaultClusterCallback, value: String) { + // Implementation needs to be added here + } + + fun writeLongCharStringAttribute( + callback: DefaultClusterCallback, + value: String, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeLongCharStringAttribute( + callback: CharStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEpochUsAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun writeEpochUsAttribute(callback: DefaultClusterCallback, value: Long) { + // Implementation needs to be added here + } + + fun writeEpochUsAttribute( + callback: DefaultClusterCallback, + value: Long, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeEpochUsAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEpochSAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun writeEpochSAttribute(callback: DefaultClusterCallback, value: Long) { + // Implementation needs to be added here + } + + fun writeEpochSAttribute( + callback: DefaultClusterCallback, + value: Long, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeEpochSAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readVendorIdAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeVendorIdAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeVendorIdAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeVendorIdAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readListNullablesAndOptionalsStructAttribute( + callback: ListNullablesAndOptionalsStructAttributeCallback + ) { + // Implementation needs to be added here + } + + fun writeListNullablesAndOptionalsStructAttribute( + callback: DefaultClusterCallback, + value: ArrayList + ) { + // Implementation needs to be added here + } + + fun writeListNullablesAndOptionalsStructAttribute( + callback: DefaultClusterCallback, + value: ArrayList, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeListNullablesAndOptionalsStructAttribute( + callback: ListNullablesAndOptionalsStructAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEnumAttrAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeEnumAttrAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeEnumAttrAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeEnumAttrAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readStructAttrAttribute(callback: StructAttrAttributeCallback) { + // Implementation needs to be added here + } + + fun writeStructAttrAttribute( + callback: DefaultClusterCallback, + value: ChipStructs.UnitTestingClusterSimpleStruct + ) { + // Implementation needs to be added here + } + + fun writeStructAttrAttribute( + callback: DefaultClusterCallback, + value: ChipStructs.UnitTestingClusterSimpleStruct, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeStructAttrAttribute( + callback: StructAttrAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRangeRestrictedInt8uAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeRangeRestrictedInt8uAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeRangeRestrictedInt8uAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeRangeRestrictedInt8uAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRangeRestrictedInt8sAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeRangeRestrictedInt8sAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeRangeRestrictedInt8sAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeRangeRestrictedInt8sAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRangeRestrictedInt16uAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeRangeRestrictedInt16uAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeRangeRestrictedInt16uAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeRangeRestrictedInt16uAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRangeRestrictedInt16sAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeRangeRestrictedInt16sAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeRangeRestrictedInt16sAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeRangeRestrictedInt16sAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readListLongOctetStringAttribute(callback: ListLongOctetStringAttributeCallback) { + // Implementation needs to be added here + } + + fun writeListLongOctetStringAttribute( + callback: DefaultClusterCallback, + value: ArrayList + ) { + // Implementation needs to be added here + } + + fun writeListLongOctetStringAttribute( + callback: DefaultClusterCallback, + value: ArrayList, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeListLongOctetStringAttribute( + callback: ListLongOctetStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readListFabricScopedAttribute(callback: ListFabricScopedAttributeCallback) { + // Implementation needs to be added here + } + + fun readListFabricScopedAttributeWithFabricFilter( + callback: ListFabricScopedAttributeCallback, + isFabricFiltered: Boolean + ) { + // Implementation needs to be added here + } + + fun writeListFabricScopedAttribute( + callback: DefaultClusterCallback, + value: ArrayList + ) { + // Implementation needs to be added here + } + + fun writeListFabricScopedAttribute( + callback: DefaultClusterCallback, + value: ArrayList, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeListFabricScopedAttribute( + callback: ListFabricScopedAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readTimedWriteBooleanAttribute(callback: BooleanAttributeCallback) { + // Implementation needs to be added here + } + + fun writeTimedWriteBooleanAttribute( + callback: DefaultClusterCallback, + value: Boolean, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeTimedWriteBooleanAttribute( + callback: BooleanAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneralErrorBooleanAttribute(callback: BooleanAttributeCallback) { + // Implementation needs to be added here + } + + fun writeGeneralErrorBooleanAttribute(callback: DefaultClusterCallback, value: Boolean) { + // Implementation needs to be added here + } + + fun writeGeneralErrorBooleanAttribute( + callback: DefaultClusterCallback, + value: Boolean, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeGeneralErrorBooleanAttribute( + callback: BooleanAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterErrorBooleanAttribute(callback: BooleanAttributeCallback) { + // Implementation needs to be added here + } + + fun writeClusterErrorBooleanAttribute(callback: DefaultClusterCallback, value: Boolean) { + // Implementation needs to be added here + } + + fun writeClusterErrorBooleanAttribute( + callback: DefaultClusterCallback, + value: Boolean, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeClusterErrorBooleanAttribute( + callback: BooleanAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readUnsupportedAttribute(callback: BooleanAttributeCallback) { + // Implementation needs to be added here + } + + fun writeUnsupportedAttribute(callback: DefaultClusterCallback, value: Boolean) { + // Implementation needs to be added here + } + + fun writeUnsupportedAttribute( + callback: DefaultClusterCallback, + value: Boolean, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeUnsupportedAttribute( + callback: BooleanAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNullableBooleanAttribute(callback: NullableBooleanAttributeCallback) { + // Implementation needs to be added here + } + + fun writeNullableBooleanAttribute(callback: DefaultClusterCallback, value: Boolean) { + // Implementation needs to be added here + } + + fun writeNullableBooleanAttribute( + callback: DefaultClusterCallback, + value: Boolean, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeNullableBooleanAttribute( + callback: NullableBooleanAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNullableBitmap8Attribute(callback: NullableBitmap8AttributeCallback) { + // Implementation needs to be added here + } + + fun writeNullableBitmap8Attribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeNullableBitmap8Attribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeNullableBitmap8Attribute( + callback: NullableBitmap8AttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNullableBitmap16Attribute(callback: NullableBitmap16AttributeCallback) { + // Implementation needs to be added here + } + + fun writeNullableBitmap16Attribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeNullableBitmap16Attribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeNullableBitmap16Attribute( + callback: NullableBitmap16AttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNullableBitmap32Attribute(callback: NullableBitmap32AttributeCallback) { + // Implementation needs to be added here + } + + fun writeNullableBitmap32Attribute(callback: DefaultClusterCallback, value: Long) { + // Implementation needs to be added here + } + + fun writeNullableBitmap32Attribute( + callback: DefaultClusterCallback, + value: Long, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeNullableBitmap32Attribute( + callback: NullableBitmap32AttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNullableBitmap64Attribute(callback: NullableBitmap64AttributeCallback) { + // Implementation needs to be added here + } + + fun writeNullableBitmap64Attribute(callback: DefaultClusterCallback, value: Long) { + // Implementation needs to be added here + } + + fun writeNullableBitmap64Attribute( + callback: DefaultClusterCallback, + value: Long, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeNullableBitmap64Attribute( + callback: NullableBitmap64AttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNullableInt8uAttribute(callback: NullableInt8uAttributeCallback) { + // Implementation needs to be added here + } + + fun writeNullableInt8uAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeNullableInt8uAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeNullableInt8uAttribute( + callback: NullableInt8uAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNullableInt16uAttribute(callback: NullableInt16uAttributeCallback) { + // Implementation needs to be added here + } + + fun writeNullableInt16uAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeNullableInt16uAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeNullableInt16uAttribute( + callback: NullableInt16uAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNullableInt24uAttribute(callback: NullableInt24uAttributeCallback) { + // Implementation needs to be added here + } + + fun writeNullableInt24uAttribute(callback: DefaultClusterCallback, value: Long) { + // Implementation needs to be added here + } + + fun writeNullableInt24uAttribute( + callback: DefaultClusterCallback, + value: Long, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeNullableInt24uAttribute( + callback: NullableInt24uAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNullableInt32uAttribute(callback: NullableInt32uAttributeCallback) { + // Implementation needs to be added here + } + + fun writeNullableInt32uAttribute(callback: DefaultClusterCallback, value: Long) { + // Implementation needs to be added here + } + + fun writeNullableInt32uAttribute( + callback: DefaultClusterCallback, + value: Long, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeNullableInt32uAttribute( + callback: NullableInt32uAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNullableInt40uAttribute(callback: NullableInt40uAttributeCallback) { + // Implementation needs to be added here + } + + fun writeNullableInt40uAttribute(callback: DefaultClusterCallback, value: Long) { + // Implementation needs to be added here + } + + fun writeNullableInt40uAttribute( + callback: DefaultClusterCallback, + value: Long, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeNullableInt40uAttribute( + callback: NullableInt40uAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNullableInt48uAttribute(callback: NullableInt48uAttributeCallback) { + // Implementation needs to be added here + } + + fun writeNullableInt48uAttribute(callback: DefaultClusterCallback, value: Long) { + // Implementation needs to be added here + } + + fun writeNullableInt48uAttribute( + callback: DefaultClusterCallback, + value: Long, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeNullableInt48uAttribute( + callback: NullableInt48uAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNullableInt56uAttribute(callback: NullableInt56uAttributeCallback) { + // Implementation needs to be added here + } + + fun writeNullableInt56uAttribute(callback: DefaultClusterCallback, value: Long) { + // Implementation needs to be added here + } + + fun writeNullableInt56uAttribute( + callback: DefaultClusterCallback, + value: Long, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeNullableInt56uAttribute( + callback: NullableInt56uAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNullableInt64uAttribute(callback: NullableInt64uAttributeCallback) { + // Implementation needs to be added here + } + + fun writeNullableInt64uAttribute(callback: DefaultClusterCallback, value: Long) { + // Implementation needs to be added here + } + + fun writeNullableInt64uAttribute( + callback: DefaultClusterCallback, + value: Long, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeNullableInt64uAttribute( + callback: NullableInt64uAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNullableInt8sAttribute(callback: NullableInt8sAttributeCallback) { + // Implementation needs to be added here + } + + fun writeNullableInt8sAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeNullableInt8sAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeNullableInt8sAttribute( + callback: NullableInt8sAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNullableInt16sAttribute(callback: NullableInt16sAttributeCallback) { + // Implementation needs to be added here + } + + fun writeNullableInt16sAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeNullableInt16sAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeNullableInt16sAttribute( + callback: NullableInt16sAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNullableInt24sAttribute(callback: NullableInt24sAttributeCallback) { + // Implementation needs to be added here + } + + fun writeNullableInt24sAttribute(callback: DefaultClusterCallback, value: Long) { + // Implementation needs to be added here + } + + fun writeNullableInt24sAttribute( + callback: DefaultClusterCallback, + value: Long, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeNullableInt24sAttribute( + callback: NullableInt24sAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNullableInt32sAttribute(callback: NullableInt32sAttributeCallback) { + // Implementation needs to be added here + } + + fun writeNullableInt32sAttribute(callback: DefaultClusterCallback, value: Long) { + // Implementation needs to be added here + } + + fun writeNullableInt32sAttribute( + callback: DefaultClusterCallback, + value: Long, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeNullableInt32sAttribute( + callback: NullableInt32sAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNullableInt40sAttribute(callback: NullableInt40sAttributeCallback) { + // Implementation needs to be added here + } + + fun writeNullableInt40sAttribute(callback: DefaultClusterCallback, value: Long) { + // Implementation needs to be added here + } + + fun writeNullableInt40sAttribute( + callback: DefaultClusterCallback, + value: Long, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeNullableInt40sAttribute( + callback: NullableInt40sAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNullableInt48sAttribute(callback: NullableInt48sAttributeCallback) { + // Implementation needs to be added here + } + + fun writeNullableInt48sAttribute(callback: DefaultClusterCallback, value: Long) { + // Implementation needs to be added here + } + + fun writeNullableInt48sAttribute( + callback: DefaultClusterCallback, + value: Long, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeNullableInt48sAttribute( + callback: NullableInt48sAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNullableInt56sAttribute(callback: NullableInt56sAttributeCallback) { + // Implementation needs to be added here + } + + fun writeNullableInt56sAttribute(callback: DefaultClusterCallback, value: Long) { + // Implementation needs to be added here + } + + fun writeNullableInt56sAttribute( + callback: DefaultClusterCallback, + value: Long, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeNullableInt56sAttribute( + callback: NullableInt56sAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNullableInt64sAttribute(callback: NullableInt64sAttributeCallback) { + // Implementation needs to be added here + } + + fun writeNullableInt64sAttribute(callback: DefaultClusterCallback, value: Long) { + // Implementation needs to be added here + } + + fun writeNullableInt64sAttribute( + callback: DefaultClusterCallback, + value: Long, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeNullableInt64sAttribute( + callback: NullableInt64sAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNullableEnum8Attribute(callback: NullableEnum8AttributeCallback) { + // Implementation needs to be added here + } + + fun writeNullableEnum8Attribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeNullableEnum8Attribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeNullableEnum8Attribute( + callback: NullableEnum8AttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNullableEnum16Attribute(callback: NullableEnum16AttributeCallback) { + // Implementation needs to be added here + } + + fun writeNullableEnum16Attribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeNullableEnum16Attribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeNullableEnum16Attribute( + callback: NullableEnum16AttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNullableFloatSingleAttribute(callback: NullableFloatSingleAttributeCallback) { + // Implementation needs to be added here + } + + fun writeNullableFloatSingleAttribute(callback: DefaultClusterCallback, value: Float) { + // Implementation needs to be added here + } + + fun writeNullableFloatSingleAttribute( + callback: DefaultClusterCallback, + value: Float, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeNullableFloatSingleAttribute( + callback: NullableFloatSingleAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNullableFloatDoubleAttribute(callback: NullableFloatDoubleAttributeCallback) { + // Implementation needs to be added here + } + + fun writeNullableFloatDoubleAttribute(callback: DefaultClusterCallback, value: Double) { + // Implementation needs to be added here + } + + fun writeNullableFloatDoubleAttribute( + callback: DefaultClusterCallback, + value: Double, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeNullableFloatDoubleAttribute( + callback: NullableFloatDoubleAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNullableOctetStringAttribute(callback: NullableOctetStringAttributeCallback) { + // Implementation needs to be added here + } + + fun writeNullableOctetStringAttribute(callback: DefaultClusterCallback, value: ByteArray) { + // Implementation needs to be added here + } + + fun writeNullableOctetStringAttribute( + callback: DefaultClusterCallback, + value: ByteArray, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeNullableOctetStringAttribute( + callback: NullableOctetStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNullableCharStringAttribute(callback: NullableCharStringAttributeCallback) { + // Implementation needs to be added here + } + + fun writeNullableCharStringAttribute(callback: DefaultClusterCallback, value: String) { + // Implementation needs to be added here + } + + fun writeNullableCharStringAttribute( + callback: DefaultClusterCallback, + value: String, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeNullableCharStringAttribute( + callback: NullableCharStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNullableEnumAttrAttribute(callback: NullableEnumAttrAttributeCallback) { + // Implementation needs to be added here + } + + fun writeNullableEnumAttrAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeNullableEnumAttrAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeNullableEnumAttrAttribute( + callback: NullableEnumAttrAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNullableStructAttribute(callback: NullableStructAttributeCallback) { + // Implementation needs to be added here + } + + fun writeNullableStructAttribute( + callback: DefaultClusterCallback, + value: ChipStructs.UnitTestingClusterSimpleStruct + ) { + // Implementation needs to be added here + } + + fun writeNullableStructAttribute( + callback: DefaultClusterCallback, + value: ChipStructs.UnitTestingClusterSimpleStruct, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeNullableStructAttribute( + callback: NullableStructAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNullableRangeRestrictedInt8uAttribute( + callback: NullableRangeRestrictedInt8uAttributeCallback + ) { + // Implementation needs to be added here + } + + fun writeNullableRangeRestrictedInt8uAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeNullableRangeRestrictedInt8uAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeNullableRangeRestrictedInt8uAttribute( + callback: NullableRangeRestrictedInt8uAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNullableRangeRestrictedInt8sAttribute( + callback: NullableRangeRestrictedInt8sAttributeCallback + ) { + // Implementation needs to be added here + } + + fun writeNullableRangeRestrictedInt8sAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeNullableRangeRestrictedInt8sAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeNullableRangeRestrictedInt8sAttribute( + callback: NullableRangeRestrictedInt8sAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNullableRangeRestrictedInt16uAttribute( + callback: NullableRangeRestrictedInt16uAttributeCallback + ) { + // Implementation needs to be added here + } + + fun writeNullableRangeRestrictedInt16uAttribute( + callback: DefaultClusterCallback, + value: Integer + ) { + // Implementation needs to be added here + } + + fun writeNullableRangeRestrictedInt16uAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeNullableRangeRestrictedInt16uAttribute( + callback: NullableRangeRestrictedInt16uAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNullableRangeRestrictedInt16sAttribute( + callback: NullableRangeRestrictedInt16sAttributeCallback + ) { + // Implementation needs to be added here + } + + fun writeNullableRangeRestrictedInt16sAttribute( + callback: DefaultClusterCallback, + value: Integer + ) { + // Implementation needs to be added here + } + + fun writeNullableRangeRestrictedInt16sAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeNullableRangeRestrictedInt16sAttribute( + callback: NullableRangeRestrictedInt16sAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readWriteOnlyInt8uAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeWriteOnlyInt8uAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeWriteOnlyInt8uAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeWriteOnlyInt8uAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UserLabelCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UserLabelCluster.kt new file mode 100644 index 00000000000000..25b36155c2cdd1 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UserLabelCluster.kt @@ -0,0 +1,165 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class UserLabelCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 65u + } + + interface LabelListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readLabelListAttribute(callback: LabelListAttributeCallback) { + // Implementation needs to be added here + } + + fun writeLabelListAttribute( + callback: DefaultClusterCallback, + value: ArrayList + ) { + // Implementation needs to be added here + } + + fun writeLabelListAttribute( + callback: DefaultClusterCallback, + value: ArrayList, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeLabelListAttribute( + callback: LabelListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WakeOnLanCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WakeOnLanCluster.kt new file mode 100644 index 00000000000000..267032c85e34f1 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WakeOnLanCluster.kt @@ -0,0 +1,142 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class WakeOnLanCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 1283u + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readMACAddressAttribute(callback: CharStringAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeMACAddressAttribute( + callback: CharStringAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WiFiNetworkDiagnosticsCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WiFiNetworkDiagnosticsCluster.kt new file mode 100644 index 00000000000000..bdb5a96acc96b7 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WiFiNetworkDiagnosticsCluster.kt @@ -0,0 +1,394 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class WiFiNetworkDiagnosticsCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 54u + } + + fun resetCounts(callback: DefaultClusterCallback) { + // Implementation needs to be added here + } + + fun resetCounts(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + interface BssidAttributeCallback { + fun onSuccess(value: ByteArray?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface SecurityTypeAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface WiFiVersionAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface ChannelNumberAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface RssiAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface BeaconLostCountAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface BeaconRxCountAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface PacketMulticastRxCountAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface PacketMulticastTxCountAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface PacketUnicastRxCountAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface PacketUnicastTxCountAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface CurrentMaxRateAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface OverrunCountAttributeCallback { + fun onSuccess(value: Long?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readBssidAttribute(callback: BssidAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeBssidAttribute( + callback: BssidAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readSecurityTypeAttribute(callback: SecurityTypeAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeSecurityTypeAttribute( + callback: SecurityTypeAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readWiFiVersionAttribute(callback: WiFiVersionAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeWiFiVersionAttribute( + callback: WiFiVersionAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readChannelNumberAttribute(callback: ChannelNumberAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeChannelNumberAttribute( + callback: ChannelNumberAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readRssiAttribute(callback: RssiAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeRssiAttribute(callback: RssiAttributeCallback, minInterval: Int, maxInterval: Int) { + // Implementation needs to be added here + } + + fun readBeaconLostCountAttribute(callback: BeaconLostCountAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeBeaconLostCountAttribute( + callback: BeaconLostCountAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readBeaconRxCountAttribute(callback: BeaconRxCountAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeBeaconRxCountAttribute( + callback: BeaconRxCountAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPacketMulticastRxCountAttribute(callback: PacketMulticastRxCountAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePacketMulticastRxCountAttribute( + callback: PacketMulticastRxCountAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPacketMulticastTxCountAttribute(callback: PacketMulticastTxCountAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePacketMulticastTxCountAttribute( + callback: PacketMulticastTxCountAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPacketUnicastRxCountAttribute(callback: PacketUnicastRxCountAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePacketUnicastRxCountAttribute( + callback: PacketUnicastRxCountAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPacketUnicastTxCountAttribute(callback: PacketUnicastTxCountAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePacketUnicastTxCountAttribute( + callback: PacketUnicastTxCountAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readCurrentMaxRateAttribute(callback: CurrentMaxRateAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeCurrentMaxRateAttribute( + callback: CurrentMaxRateAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readOverrunCountAttribute(callback: OverrunCountAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeOverrunCountAttribute( + callback: OverrunCountAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WindowCoveringCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WindowCoveringCluster.kt new file mode 100644 index 00000000000000..c57ba09b1f33d7 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WindowCoveringCluster.kt @@ -0,0 +1,554 @@ +/* + * + * Copyright (c) 2023 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. + */ + +package matter.devicecontroller.cluster.clusters + +import java.util.ArrayList + +class WindowCoveringCluster(private val endpointId: UShort) { + companion object { + const val CLUSTER_ID: UInt = 258u + } + + fun upOrOpen(callback: DefaultClusterCallback) { + // Implementation needs to be added here + } + + fun upOrOpen(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + fun downOrClose(callback: DefaultClusterCallback) { + // Implementation needs to be added here + } + + fun downOrClose(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + fun stopMotion(callback: DefaultClusterCallback) { + // Implementation needs to be added here + } + + fun stopMotion(callback: DefaultClusterCallback, timedInvokeTimeoutMs: Int) { + // Implementation needs to be added here + } + + fun goToLiftValue(callback: DefaultClusterCallback, liftValue: Integer) { + // Implementation needs to be added here + } + + fun goToLiftValue( + callback: DefaultClusterCallback, + liftValue: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun goToLiftPercentage(callback: DefaultClusterCallback, liftPercent100thsValue: Integer) { + // Implementation needs to be added here + } + + fun goToLiftPercentage( + callback: DefaultClusterCallback, + liftPercent100thsValue: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun goToTiltValue(callback: DefaultClusterCallback, tiltValue: Integer) { + // Implementation needs to be added here + } + + fun goToTiltValue( + callback: DefaultClusterCallback, + tiltValue: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun goToTiltPercentage(callback: DefaultClusterCallback, tiltPercent100thsValue: Integer) { + // Implementation needs to be added here + } + + fun goToTiltPercentage( + callback: DefaultClusterCallback, + tiltPercent100thsValue: Integer, + timedInvokeTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + interface CurrentPositionLiftAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface CurrentPositionTiltAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface CurrentPositionLiftPercentageAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface CurrentPositionTiltPercentageAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface TargetPositionLiftPercent100thsAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface TargetPositionTiltPercent100thsAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface CurrentPositionLiftPercent100thsAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface CurrentPositionTiltPercent100thsAttributeCallback { + fun onSuccess(value: Integer?) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface GeneratedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AcceptedCommandListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface EventListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + interface AttributeListAttributeCallback { + fun onSuccess(value: ArrayList) + + fun onError(ex: Exception) + + fun onSubscriptionEstablished(subscriptionId: Long) + } + + fun readTypeAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeTypeAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPhysicalClosedLimitLiftAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePhysicalClosedLimitLiftAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readPhysicalClosedLimitTiltAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribePhysicalClosedLimitTiltAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readCurrentPositionLiftAttribute(callback: CurrentPositionLiftAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeCurrentPositionLiftAttribute( + callback: CurrentPositionLiftAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readCurrentPositionTiltAttribute(callback: CurrentPositionTiltAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeCurrentPositionTiltAttribute( + callback: CurrentPositionTiltAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNumberOfActuationsLiftAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeNumberOfActuationsLiftAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readNumberOfActuationsTiltAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeNumberOfActuationsTiltAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readConfigStatusAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeConfigStatusAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readCurrentPositionLiftPercentageAttribute( + callback: CurrentPositionLiftPercentageAttributeCallback + ) { + // Implementation needs to be added here + } + + fun subscribeCurrentPositionLiftPercentageAttribute( + callback: CurrentPositionLiftPercentageAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readCurrentPositionTiltPercentageAttribute( + callback: CurrentPositionTiltPercentageAttributeCallback + ) { + // Implementation needs to be added here + } + + fun subscribeCurrentPositionTiltPercentageAttribute( + callback: CurrentPositionTiltPercentageAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readOperationalStatusAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeOperationalStatusAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readTargetPositionLiftPercent100thsAttribute( + callback: TargetPositionLiftPercent100thsAttributeCallback + ) { + // Implementation needs to be added here + } + + fun subscribeTargetPositionLiftPercent100thsAttribute( + callback: TargetPositionLiftPercent100thsAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readTargetPositionTiltPercent100thsAttribute( + callback: TargetPositionTiltPercent100thsAttributeCallback + ) { + // Implementation needs to be added here + } + + fun subscribeTargetPositionTiltPercent100thsAttribute( + callback: TargetPositionTiltPercent100thsAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEndProductTypeAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEndProductTypeAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readCurrentPositionLiftPercent100thsAttribute( + callback: CurrentPositionLiftPercent100thsAttributeCallback + ) { + // Implementation needs to be added here + } + + fun subscribeCurrentPositionLiftPercent100thsAttribute( + callback: CurrentPositionLiftPercent100thsAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readCurrentPositionTiltPercent100thsAttribute( + callback: CurrentPositionTiltPercent100thsAttributeCallback + ) { + // Implementation needs to be added here + } + + fun subscribeCurrentPositionTiltPercent100thsAttribute( + callback: CurrentPositionTiltPercent100thsAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readInstalledOpenLimitLiftAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeInstalledOpenLimitLiftAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readInstalledClosedLimitLiftAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeInstalledClosedLimitLiftAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readInstalledOpenLimitTiltAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeInstalledOpenLimitTiltAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readInstalledClosedLimitTiltAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeInstalledClosedLimitTiltAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readModeAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun writeModeAttribute(callback: DefaultClusterCallback, value: Integer) { + // Implementation needs to be added here + } + + fun writeModeAttribute( + callback: DefaultClusterCallback, + value: Integer, + timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here + } + + fun subscribeModeAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readSafetyStatusAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeSafetyStatusAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readGeneratedCommandListAttribute(callback: GeneratedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeGeneratedCommandListAttribute( + callback: GeneratedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAcceptedCommandListAttribute(callback: AcceptedCommandListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAcceptedCommandListAttribute( + callback: AcceptedCommandListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readEventListAttribute(callback: EventListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeEventListAttribute( + callback: EventListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readAttributeListAttribute(callback: AttributeListAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeAttributeListAttribute( + callback: AttributeListAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readFeatureMapAttribute(callback: LongAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeFeatureMapAttribute( + callback: LongAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } + + fun readClusterRevisionAttribute(callback: IntegerAttributeCallback) { + // Implementation needs to be added here + } + + fun subscribeClusterRevisionAttribute( + callback: IntegerAttributeCallback, + minInterval: Int, + maxInterval: Int + ) { + // Implementation needs to be added here + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/files.gni b/src/controller/java/generated/java/matter/devicecontroller/cluster/files.gni new file mode 100644 index 00000000000000..62be491751fec7 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/files.gni @@ -0,0 +1,103 @@ +import("//build_overrides/build.gni") +import("//build_overrides/chip.gni") + +matter_clusters_sources = [ + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AccessControlCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AccountLoginCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ActionsCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ActivatedCarbonFilterMonitoringCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AdministratorCommissioningCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AirQualityCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ApplicationBasicCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ApplicationLauncherCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AudioOutputCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BallastConfigurationCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BarrierControlCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BasicInformationCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BinaryInputBasicCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BindingCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BooleanStateCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BridgedDeviceBasicInformationCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/CarbonDioxideConcentrationMeasurementCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/CarbonMonoxideConcentrationMeasurementCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ChannelCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ColorControlCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ContentLauncherCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DescriptorCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DiagnosticLogsCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DishwasherAlarmCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DishwasherModeCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DoorLockCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ElectricalMeasurementCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/EthernetNetworkDiagnosticsCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FanControlCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FaultInjectionCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FixedLabelCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FlowMeasurementCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FormaldehydeConcentrationMeasurementCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GeneralCommissioningCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GeneralDiagnosticsCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GroupKeyManagementCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GroupsCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/HepaFilterMonitoringCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IcdManagementCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IdentifyCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IlluminanceMeasurementCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/KeypadInputCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryWasherControlsCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryWasherModeCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LevelControlCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LocalizationConfigurationCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LowPowerCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MediaInputCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MediaPlaybackCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ModeSelectCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/NetworkCommissioningCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/NitrogenDioxideConcentrationMeasurementCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OccupancySensingCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OnOffCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OnOffSwitchConfigurationCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OperationalCredentialsCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OperationalStateCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OtaSoftwareUpdateProviderCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OtaSoftwareUpdateRequestorCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OzoneConcentrationMeasurementCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm10ConcentrationMeasurementCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm1ConcentrationMeasurementCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm25ConcentrationMeasurementCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PowerSourceCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PowerSourceConfigurationCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PressureMeasurementCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyConfigurationCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyDiscoveryCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyValidCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PulseWidthModulationCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PumpConfigurationAndControlCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RadonConcentrationMeasurementCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RefrigeratorAlarmCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RefrigeratorAndTemperatureControlledCabinetModeCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RelativeHumidityMeasurementCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcCleanModeCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcOperationalStateCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcRunModeCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SampleMeiCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ScenesCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SmokeCoAlarmCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SoftwareDiagnosticsCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SwitchCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TargetNavigatorCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TemperatureControlCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TemperatureMeasurementCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThermostatCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThermostatUserInterfaceConfigurationCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThreadNetworkDiagnosticsCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimeFormatLocalizationCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimeSynchronizationCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TotalVolatileOrganicCompoundsConcentrationMeasurementCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UnitLocalizationCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UnitTestingCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UserLabelCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WakeOnLanCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WiFiNetworkDiagnosticsCluster.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WindowCoveringCluster.kt", +] \ No newline at end of file diff --git a/src/controller/java/zap-generated/CHIPAttributeTLVValueDecoder.cpp b/src/controller/java/zap-generated/CHIPAttributeTLVValueDecoder.cpp index 136431d755c222..5e2b611d121792 100644 --- a/src/controller/java/zap-generated/CHIPAttributeTLVValueDecoder.cpp +++ b/src/controller/java/zap-generated/CHIPAttributeTLVValueDecoder.cpp @@ -13936,29 +13936,6 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR value); return value; } - case Attributes::StartUpMode::Id: { - using TypeInfo = Attributes::StartUpMode::TypeInfo; - TypeInfo::DecodableType cppValue; - *aError = app::DataModel::Decode(aReader, cppValue); - if (*aError != CHIP_NO_ERROR) - { - return nullptr; - } - jobject value; - if (cppValue.IsNull()) - { - value = nullptr; - } - else - { - std::string valueClassName = "java/lang/Integer"; - std::string valueCtorSignature = "(I)V"; - jint jnivalue = static_cast(cppValue.Value()); - chip::JniReferences::GetInstance().CreateBoxedObject(valueClassName.c_str(), valueCtorSignature.c_str(), - jnivalue, value); - } - return value; - } case Attributes::OnMode::Id: { using TypeInfo = Attributes::OnMode::TypeInfo; TypeInfo::DecodableType cppValue; @@ -14241,29 +14218,6 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR value); return value; } - case Attributes::StartUpMode::Id: { - using TypeInfo = Attributes::StartUpMode::TypeInfo; - TypeInfo::DecodableType cppValue; - *aError = app::DataModel::Decode(aReader, cppValue); - if (*aError != CHIP_NO_ERROR) - { - return nullptr; - } - jobject value; - if (cppValue.IsNull()) - { - value = nullptr; - } - else - { - std::string valueClassName = "java/lang/Integer"; - std::string valueCtorSignature = "(I)V"; - jint jnivalue = static_cast(cppValue.Value()); - chip::JniReferences::GetInstance().CreateBoxedObject(valueClassName.c_str(), valueCtorSignature.c_str(), - jnivalue, value); - } - return value; - } case Attributes::OnMode::Id: { using TypeInfo = Attributes::OnMode::TypeInfo; TypeInfo::DecodableType cppValue; diff --git a/src/controller/java/zap-generated/CHIPClustersWrite-JNI.cpp b/src/controller/java/zap-generated/CHIPClustersWrite-JNI.cpp index 0dbbe20286896c..00009ac07695a1 100644 --- a/src/controller/java/zap-generated/CHIPClustersWrite-JNI.cpp +++ b/src/controller/java/zap-generated/CHIPClustersWrite-JNI.cpp @@ -2696,66 +2696,6 @@ JNI_METHOD(void, LaundryWasherControlsCluster, writeNumberOfRinsesAttribute) onFailure.release(); } -JNI_METHOD(void, RvcRunModeCluster, writeStartUpModeAttribute) -(JNIEnv * env, jobject self, jlong clusterPtr, jobject callback, jobject value, jobject timedWriteTimeoutMs) -{ - chip::DeviceLayer::StackLock lock; - ListFreer listFreer; - using TypeInfo = chip::app::Clusters::RvcRunMode::Attributes::StartUpMode::TypeInfo; - TypeInfo::Type cppValue; - - std::vector> cleanupByteArrays; - std::vector> cleanupStrings; - - if (value == nullptr) - { - cppValue.SetNull(); - } - else - { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = static_cast>( - chip::JniReferences::GetInstance().IntegerToPrimitive(value)); - } - - std::unique_ptr onSuccess( - Platform::New(callback), Platform::Delete); - VerifyOrReturn(onSuccess.get() != nullptr, - chip::AndroidClusterExceptions::GetInstance().ReturnIllegalStateException( - env, callback, "Error creating native success callback", CHIP_ERROR_NO_MEMORY)); - - std::unique_ptr onFailure( - Platform::New(callback), Platform::Delete); - VerifyOrReturn(onFailure.get() != nullptr, - chip::AndroidClusterExceptions::GetInstance().ReturnIllegalStateException( - env, callback, "Error creating native failure callback", CHIP_ERROR_NO_MEMORY)); - - CHIP_ERROR err = CHIP_NO_ERROR; - RvcRunModeCluster * cppCluster = reinterpret_cast(clusterPtr); - VerifyOrReturn(cppCluster != nullptr, - chip::AndroidClusterExceptions::GetInstance().ReturnIllegalStateException( - env, callback, "Could not get native cluster", CHIP_ERROR_INCORRECT_STATE)); - - auto successFn = chip::Callback::Callback::FromCancelable(onSuccess->Cancel()); - auto failureFn = chip::Callback::Callback::FromCancelable(onFailure->Cancel()); - - if (timedWriteTimeoutMs == nullptr) - { - err = cppCluster->WriteAttribute(cppValue, onSuccess->mContext, successFn->mCall, failureFn->mCall); - } - else - { - err = cppCluster->WriteAttribute(cppValue, onSuccess->mContext, successFn->mCall, failureFn->mCall, - chip::JniReferences::GetInstance().IntegerToPrimitive(timedWriteTimeoutMs)); - } - VerifyOrReturn( - err == CHIP_NO_ERROR, - chip::AndroidClusterExceptions::GetInstance().ReturnIllegalStateException(env, callback, "Error writing attribute", err)); - - onSuccess.release(); - onFailure.release(); -} - JNI_METHOD(void, RvcRunModeCluster, writeOnModeAttribute) (JNIEnv * env, jobject self, jlong clusterPtr, jobject callback, jobject value, jobject timedWriteTimeoutMs) { @@ -2816,66 +2756,6 @@ JNI_METHOD(void, RvcRunModeCluster, writeOnModeAttribute) onFailure.release(); } -JNI_METHOD(void, RvcCleanModeCluster, writeStartUpModeAttribute) -(JNIEnv * env, jobject self, jlong clusterPtr, jobject callback, jobject value, jobject timedWriteTimeoutMs) -{ - chip::DeviceLayer::StackLock lock; - ListFreer listFreer; - using TypeInfo = chip::app::Clusters::RvcCleanMode::Attributes::StartUpMode::TypeInfo; - TypeInfo::Type cppValue; - - std::vector> cleanupByteArrays; - std::vector> cleanupStrings; - - if (value == nullptr) - { - cppValue.SetNull(); - } - else - { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = static_cast>( - chip::JniReferences::GetInstance().IntegerToPrimitive(value)); - } - - std::unique_ptr onSuccess( - Platform::New(callback), Platform::Delete); - VerifyOrReturn(onSuccess.get() != nullptr, - chip::AndroidClusterExceptions::GetInstance().ReturnIllegalStateException( - env, callback, "Error creating native success callback", CHIP_ERROR_NO_MEMORY)); - - std::unique_ptr onFailure( - Platform::New(callback), Platform::Delete); - VerifyOrReturn(onFailure.get() != nullptr, - chip::AndroidClusterExceptions::GetInstance().ReturnIllegalStateException( - env, callback, "Error creating native failure callback", CHIP_ERROR_NO_MEMORY)); - - CHIP_ERROR err = CHIP_NO_ERROR; - RvcCleanModeCluster * cppCluster = reinterpret_cast(clusterPtr); - VerifyOrReturn(cppCluster != nullptr, - chip::AndroidClusterExceptions::GetInstance().ReturnIllegalStateException( - env, callback, "Could not get native cluster", CHIP_ERROR_INCORRECT_STATE)); - - auto successFn = chip::Callback::Callback::FromCancelable(onSuccess->Cancel()); - auto failureFn = chip::Callback::Callback::FromCancelable(onFailure->Cancel()); - - if (timedWriteTimeoutMs == nullptr) - { - err = cppCluster->WriteAttribute(cppValue, onSuccess->mContext, successFn->mCall, failureFn->mCall); - } - else - { - err = cppCluster->WriteAttribute(cppValue, onSuccess->mContext, successFn->mCall, failureFn->mCall, - chip::JniReferences::GetInstance().IntegerToPrimitive(timedWriteTimeoutMs)); - } - VerifyOrReturn( - err == CHIP_NO_ERROR, - chip::AndroidClusterExceptions::GetInstance().ReturnIllegalStateException(env, callback, "Error writing attribute", err)); - - onSuccess.release(); - onFailure.release(); -} - JNI_METHOD(void, RvcCleanModeCluster, writeOnModeAttribute) (JNIEnv * env, jobject self, jlong clusterPtr, jobject callback, jobject value, jobject timedWriteTimeoutMs) { diff --git a/src/controller/java/zap-generated/CHIPReadCallbacks.cpp b/src/controller/java/zap-generated/CHIPReadCallbacks.cpp index b4e3b543cc1ddb..459a72991eeb08 100644 --- a/src/controller/java/zap-generated/CHIPReadCallbacks.cpp +++ b/src/controller/java/zap-generated/CHIPReadCallbacks.cpp @@ -21996,71 +21996,6 @@ void CHIPRvcRunModeSupportedModesAttributeCallback::CallbackFn( env->CallVoidMethod(javaCallbackRef, javaMethod, arrayListObj); } -CHIPRvcRunModeStartUpModeAttributeCallback::CHIPRvcRunModeStartUpModeAttributeCallback(jobject javaCallback, bool keepAlive) : - chip::Callback::Callback(CallbackFn, this), keepAlive(keepAlive) -{ - JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread(); - if (env == nullptr) - { - ChipLogError(Zcl, "Could not create global reference for Java callback"); - return; - } - - javaCallbackRef = env->NewGlobalRef(javaCallback); - if (javaCallbackRef == nullptr) - { - ChipLogError(Zcl, "Could not create global reference for Java callback"); - } -} - -CHIPRvcRunModeStartUpModeAttributeCallback::~CHIPRvcRunModeStartUpModeAttributeCallback() -{ - JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread(); - if (env == nullptr) - { - ChipLogError(Zcl, "Could not delete global reference for Java callback"); - return; - } - env->DeleteGlobalRef(javaCallbackRef); -} - -void CHIPRvcRunModeStartUpModeAttributeCallback::CallbackFn(void * context, const chip::app::DataModel::Nullable & value) -{ - chip::DeviceLayer::StackUnlock unlock; - CHIP_ERROR err = CHIP_NO_ERROR; - JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread(); - jobject javaCallbackRef; - - VerifyOrReturn(env != nullptr, ChipLogError(Zcl, "Could not get JNI env")); - std::unique_ptr cppCallback( - reinterpret_cast(context), maybeDestroy); - - // It's valid for javaCallbackRef to be nullptr if the Java code passed in a null callback. - javaCallbackRef = cppCallback.get()->javaCallbackRef; - VerifyOrReturn(javaCallbackRef != nullptr, - ChipLogProgress(Zcl, "Early return from attribute callback since Java callback is null")); - - jmethodID javaMethod; - err = chip::JniReferences::GetInstance().FindMethod(env, javaCallbackRef, "onSuccess", "(Ljava/lang/Integer;)V", &javaMethod); - VerifyOrReturn(err == CHIP_NO_ERROR, ChipLogError(Zcl, "Could not find onSuccess() method")); - - jobject javaValue; - if (value.IsNull()) - { - javaValue = nullptr; - } - else - { - std::string javaValueClassName = "java/lang/Integer"; - std::string javaValueCtorSignature = "(I)V"; - jint jnijavaValue = static_cast(value.Value()); - chip::JniReferences::GetInstance().CreateBoxedObject(javaValueClassName.c_str(), javaValueCtorSignature.c_str(), - jnijavaValue, javaValue); - } - - env->CallVoidMethod(javaCallbackRef, javaMethod, javaValue); -} - CHIPRvcRunModeOnModeAttributeCallback::CHIPRvcRunModeOnModeAttributeCallback(jobject javaCallback, bool keepAlive) : chip::Callback::Callback(CallbackFn, this), keepAlive(keepAlive) { @@ -22557,71 +22492,6 @@ void CHIPRvcCleanModeSupportedModesAttributeCallback::CallbackFn( env->CallVoidMethod(javaCallbackRef, javaMethod, arrayListObj); } -CHIPRvcCleanModeStartUpModeAttributeCallback::CHIPRvcCleanModeStartUpModeAttributeCallback(jobject javaCallback, bool keepAlive) : - chip::Callback::Callback(CallbackFn, this), keepAlive(keepAlive) -{ - JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread(); - if (env == nullptr) - { - ChipLogError(Zcl, "Could not create global reference for Java callback"); - return; - } - - javaCallbackRef = env->NewGlobalRef(javaCallback); - if (javaCallbackRef == nullptr) - { - ChipLogError(Zcl, "Could not create global reference for Java callback"); - } -} - -CHIPRvcCleanModeStartUpModeAttributeCallback::~CHIPRvcCleanModeStartUpModeAttributeCallback() -{ - JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread(); - if (env == nullptr) - { - ChipLogError(Zcl, "Could not delete global reference for Java callback"); - return; - } - env->DeleteGlobalRef(javaCallbackRef); -} - -void CHIPRvcCleanModeStartUpModeAttributeCallback::CallbackFn(void * context, const chip::app::DataModel::Nullable & value) -{ - chip::DeviceLayer::StackUnlock unlock; - CHIP_ERROR err = CHIP_NO_ERROR; - JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread(); - jobject javaCallbackRef; - - VerifyOrReturn(env != nullptr, ChipLogError(Zcl, "Could not get JNI env")); - std::unique_ptr cppCallback( - reinterpret_cast(context), maybeDestroy); - - // It's valid for javaCallbackRef to be nullptr if the Java code passed in a null callback. - javaCallbackRef = cppCallback.get()->javaCallbackRef; - VerifyOrReturn(javaCallbackRef != nullptr, - ChipLogProgress(Zcl, "Early return from attribute callback since Java callback is null")); - - jmethodID javaMethod; - err = chip::JniReferences::GetInstance().FindMethod(env, javaCallbackRef, "onSuccess", "(Ljava/lang/Integer;)V", &javaMethod); - VerifyOrReturn(err == CHIP_NO_ERROR, ChipLogError(Zcl, "Could not find onSuccess() method")); - - jobject javaValue; - if (value.IsNull()) - { - javaValue = nullptr; - } - else - { - std::string javaValueClassName = "java/lang/Integer"; - std::string javaValueCtorSignature = "(I)V"; - jint jnijavaValue = static_cast(value.Value()); - chip::JniReferences::GetInstance().CreateBoxedObject(javaValueClassName.c_str(), javaValueCtorSignature.c_str(), - jnijavaValue, javaValue); - } - - env->CallVoidMethod(javaCallbackRef, javaMethod, javaValue); -} - CHIPRvcCleanModeOnModeAttributeCallback::CHIPRvcCleanModeOnModeAttributeCallback(jobject javaCallback, bool keepAlive) : chip::Callback::Callback(CallbackFn, this), keepAlive(keepAlive) { diff --git a/src/controller/python/chip/clusters/CHIPClusters.py b/src/controller/python/chip/clusters/CHIPClusters.py index 715eed08b15c23..e5efbe902213d2 100644 --- a/src/controller/python/chip/clusters/CHIPClusters.py +++ b/src/controller/python/chip/clusters/CHIPClusters.py @@ -4642,13 +4642,6 @@ class ChipClusters: "type": "int", "reportable": True, }, - 0x00000002: { - "attributeName": "StartUpMode", - "attributeId": 0x00000002, - "type": "int", - "reportable": True, - "writable": True, - }, 0x00000003: { "attributeName": "OnMode", "attributeId": 0x00000003, @@ -4719,13 +4712,6 @@ class ChipClusters: "type": "int", "reportable": True, }, - 0x00000002: { - "attributeName": "StartUpMode", - "attributeId": 0x00000002, - "type": "int", - "reportable": True, - "writable": True, - }, 0x00000003: { "attributeName": "OnMode", "attributeId": 0x00000003, diff --git a/src/controller/python/chip/clusters/Objects.py b/src/controller/python/chip/clusters/Objects.py index 4f3af5d426ca85..bae4a520542360 100644 --- a/src/controller/python/chip/clusters/Objects.py +++ b/src/controller/python/chip/clusters/Objects.py @@ -16051,7 +16051,6 @@ def descriptor(cls) -> ClusterObjectDescriptor: Fields=[ ClusterObjectFieldDescriptor(Label="supportedModes", Tag=0x00000000, Type=typing.List[RvcRunMode.Structs.ModeOptionStruct]), ClusterObjectFieldDescriptor(Label="currentMode", Tag=0x00000001, Type=uint), - ClusterObjectFieldDescriptor(Label="startUpMode", Tag=0x00000002, Type=typing.Union[None, Nullable, uint]), ClusterObjectFieldDescriptor(Label="onMode", Tag=0x00000003, Type=typing.Union[None, Nullable, uint]), ClusterObjectFieldDescriptor(Label="generatedCommandList", Tag=0x0000FFF8, Type=typing.List[uint]), ClusterObjectFieldDescriptor(Label="acceptedCommandList", Tag=0x0000FFF9, Type=typing.List[uint]), @@ -16063,7 +16062,6 @@ def descriptor(cls) -> ClusterObjectDescriptor: supportedModes: 'typing.List[RvcRunMode.Structs.ModeOptionStruct]' = None currentMode: 'uint' = None - startUpMode: 'typing.Union[None, Nullable, uint]' = None onMode: 'typing.Union[None, Nullable, uint]' = None generatedCommandList: 'typing.List[uint]' = None acceptedCommandList: 'typing.List[uint]' = None @@ -16198,22 +16196,6 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 - @dataclass - class StartUpMode(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x00000054 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000002 - - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Union[None, Nullable, uint]) - - value: 'typing.Union[None, Nullable, uint]' = None - @dataclass class OnMode(ClusterAttributeDescriptor): @ChipUtility.classproperty @@ -16337,7 +16319,6 @@ def descriptor(cls) -> ClusterObjectDescriptor: Fields=[ ClusterObjectFieldDescriptor(Label="supportedModes", Tag=0x00000000, Type=typing.List[RvcCleanMode.Structs.ModeOptionStruct]), ClusterObjectFieldDescriptor(Label="currentMode", Tag=0x00000001, Type=uint), - ClusterObjectFieldDescriptor(Label="startUpMode", Tag=0x00000002, Type=typing.Union[None, Nullable, uint]), ClusterObjectFieldDescriptor(Label="onMode", Tag=0x00000003, Type=typing.Union[None, Nullable, uint]), ClusterObjectFieldDescriptor(Label="generatedCommandList", Tag=0x0000FFF8, Type=typing.List[uint]), ClusterObjectFieldDescriptor(Label="acceptedCommandList", Tag=0x0000FFF9, Type=typing.List[uint]), @@ -16349,7 +16330,6 @@ def descriptor(cls) -> ClusterObjectDescriptor: supportedModes: 'typing.List[RvcCleanMode.Structs.ModeOptionStruct]' = None currentMode: 'uint' = None - startUpMode: 'typing.Union[None, Nullable, uint]' = None onMode: 'typing.Union[None, Nullable, uint]' = None generatedCommandList: 'typing.List[uint]' = None acceptedCommandList: 'typing.List[uint]' = None @@ -16478,22 +16458,6 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'uint' = 0 - @dataclass - class StartUpMode(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x00000055 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000002 - - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Union[None, Nullable, uint]) - - value: 'typing.Union[None, Nullable, uint]' = None - @dataclass class OnMode(ClusterAttributeDescriptor): @ChipUtility.classproperty diff --git a/src/credentials/tests/CHIPCert_test_vectors.cpp b/src/credentials/tests/CHIPCert_test_vectors.cpp index 9a21d934f52ec5..eb84e7d3dabb11 100644 --- a/src/credentials/tests/CHIPCert_test_vectors.cpp +++ b/src/credentials/tests/CHIPCert_test_vectors.cpp @@ -32,7 +32,7 @@ namespace chip { namespace TestCerts { // clang-format off -extern const uint8_t gTestCerts[] = { +extern const TestCert gTestCerts[] = { TestCert::kRoot01, TestCert::kRoot02, TestCert::kRoot03, @@ -55,7 +55,7 @@ extern const uint8_t gTestCerts[] = { extern const size_t gNumTestCerts = ArraySize(gTestCerts); -CHIP_ERROR GetTestCert(uint8_t certType, BitFlags certLoadFlags, ByteSpan & cert) +CHIP_ERROR GetTestCert(TestCert certType, BitFlags certLoadFlags, ByteSpan & cert) { CHIP_ERROR err; bool derForm = certLoadFlags.Has(TestCertLoadFlags::kDERForm); @@ -96,7 +96,7 @@ CHIP_ERROR GetTestCert(uint8_t certType, BitFlags certLoadFla return err; } -const char * GetTestCertName(uint8_t certType) +const char * GetTestCertName(TestCert certType) { #define NAME_CERT(NAME) \ do \ @@ -129,7 +129,7 @@ const char * GetTestCertName(uint8_t certType) return nullptr; } -CHIP_ERROR GetTestCertPubkey(uint8_t certType, ByteSpan & pubkey) +CHIP_ERROR GetTestCertPubkey(TestCert certType, ByteSpan & pubkey) { CHIP_ERROR err; @@ -169,7 +169,7 @@ CHIP_ERROR GetTestCertPubkey(uint8_t certType, ByteSpan & pubkey) return err; } -CHIP_ERROR GetTestCertSKID(uint8_t certType, ByteSpan & skid) +CHIP_ERROR GetTestCertSKID(TestCert certType, ByteSpan & skid) { CHIP_ERROR err; @@ -209,7 +209,7 @@ CHIP_ERROR GetTestCertSKID(uint8_t certType, ByteSpan & skid) return err; } -CHIP_ERROR GetTestCertAKID(uint8_t certType, ByteSpan & akid) +CHIP_ERROR GetTestCertAKID(TestCert certType, ByteSpan & akid) { CHIP_ERROR err; @@ -249,7 +249,7 @@ CHIP_ERROR GetTestCertAKID(uint8_t certType, ByteSpan & akid) return err; } -CHIP_ERROR LoadTestCert(ChipCertificateSet & certSet, uint8_t certType, BitFlags certLoadFlags, +CHIP_ERROR LoadTestCert(ChipCertificateSet & certSet, TestCert certType, BitFlags certLoadFlags, BitFlags decodeFlags) { CHIP_ERROR err; diff --git a/src/credentials/tests/CHIPCert_test_vectors.h b/src/credentials/tests/CHIPCert_test_vectors.h index dc717f396eeccb..521426ee3e5084 100644 --- a/src/credentials/tests/CHIPCert_test_vectors.h +++ b/src/credentials/tests/CHIPCert_test_vectors.h @@ -68,15 +68,15 @@ enum class TestCertLoadFlags : uint8_t kSetAppDefinedCertType = 0x20, }; -extern CHIP_ERROR GetTestCert(uint8_t certType, BitFlags certLoadFlags, ByteSpan & cert); -extern const char * GetTestCertName(uint8_t certType); -extern CHIP_ERROR GetTestCertPubkey(uint8_t certType, ByteSpan & pubkey); -extern CHIP_ERROR GetTestCertSKID(uint8_t certType, ByteSpan & skid); -extern CHIP_ERROR GetTestCertAKID(uint8_t certType, ByteSpan & akid); -extern CHIP_ERROR LoadTestCert(ChipCertificateSet & certSet, uint8_t certType, BitFlags certLoadFlags, +extern CHIP_ERROR GetTestCert(TestCert certType, BitFlags certLoadFlags, ByteSpan & cert); +extern const char * GetTestCertName(TestCert certType); +extern CHIP_ERROR GetTestCertPubkey(TestCert certType, ByteSpan & pubkey); +extern CHIP_ERROR GetTestCertSKID(TestCert certType, ByteSpan & skid); +extern CHIP_ERROR GetTestCertAKID(TestCert certType, ByteSpan & akid); +extern CHIP_ERROR LoadTestCert(ChipCertificateSet & certSet, TestCert certType, BitFlags certLoadFlags, BitFlags decodeFlags); -extern const uint8_t gTestCerts[]; +extern const TestCert gTestCerts[]; extern const size_t gNumTestCerts; // ------------------------------ DECLARATIONS ---------------------------------------- diff --git a/src/credentials/tests/TestChipCert.cpp b/src/credentials/tests/TestChipCert.cpp index 4d81940f9b8549..1a8da833c06173 100644 --- a/src/credentials/tests/TestChipCert.cpp +++ b/src/credentials/tests/TestChipCert.cpp @@ -171,7 +171,7 @@ static void TestChipCert_ChipToX509(nlTestSuite * inSuite, void * inContext) for (size_t i = 0; i < gNumTestCerts; i++) { - uint8_t certType = gTestCerts[i]; + TestCert certType = gTestCerts[i]; err = GetTestCert(certType, sNullLoadFlag, inCert); NL_TEST_ASSERT(inSuite, err == CHIP_NO_ERROR); @@ -267,7 +267,7 @@ static void TestChipCert_X509ToChip(nlTestSuite * inSuite, void * inContext) for (size_t i = 0; i < gNumTestCerts; i++) { - uint8_t certType = gTestCerts[i]; + TestCert certType = gTestCerts[i]; err = GetTestCert(certType, sDerFormFlag, inCert); NL_TEST_ASSERT(inSuite, err == CHIP_NO_ERROR); @@ -368,7 +368,7 @@ static void TestChipCert_CertValidation(nlTestSuite * inSuite, void * inContext) int mExpectedTrustAnchorIndex; struct { - uint8_t Type; + TestCert Type; BitFlags DecodeFlags; BitFlags LoadFlags; } InputCerts[kMaxCertsPerTestCase]; @@ -832,7 +832,7 @@ static void TestChipCert_ValidateChipRCAC(nlTestSuite * inSuite, void * inContex { struct RCACTestCase { - uint8_t Cert; + TestCert Cert; CHIP_ERROR mExpectedResult; }; @@ -1191,7 +1191,7 @@ static void TestChipCert_CertType(nlTestSuite * inSuite, void * inContext) struct TestCase { - uint8_t Cert; + TestCert Cert; CertType ExpectedCertType; }; @@ -1237,7 +1237,7 @@ static void TestChipCert_CertId(nlTestSuite * inSuite, void * inContext) struct TestCase { - uint8_t Cert; + TestCert Cert; uint64_t ExpectedCertId; }; @@ -1728,8 +1728,8 @@ static void TestChipCert_ExtractNodeIdFabricId(nlTestSuite * inSuite, void * inC { struct TestCase { - uint8_t Cert; - uint8_t ICACert; + TestCert Cert; + TestCert ICACert; uint64_t ExpectedNodeId; uint64_t ExpectedFabricId; }; @@ -1844,8 +1844,8 @@ static void TestChipCert_ExtractOperationalDiscoveryId(nlTestSuite * inSuite, vo { struct TestCase { - uint8_t Noc; - uint8_t Rcac; + TestCert Noc; + TestCert Rcac; uint64_t ExpectedNodeId; uint64_t ExpectedFabricId; uint64_t ExpectedCompressedFabricId; @@ -1900,7 +1900,7 @@ static void TestChipCert_ExtractAndValidateCATsFromOpCert(nlTestSuite * inSuite, { struct TestCase { - uint8_t Cert; + TestCert Cert; CATValues ExpectedCATs; }; @@ -1986,7 +1986,7 @@ static void TestChipCert_ExtractSubjectDNFromChipCert(nlTestSuite * inSuite, voi { struct TestCase { - uint8_t Cert; + TestCert Cert; ChipDN ExpectedSubjectDN; }; @@ -2058,7 +2058,7 @@ static void TestChipCert_ExtractPublicKeyAndSKID(nlTestSuite * inSuite, void * i { struct TestCase { - uint8_t Cert; + TestCert Cert; ByteSpan ExpectedPublicKey; ByteSpan ExpectedSKID; }; diff --git a/src/crypto/tests/CHIPCryptoPALTest.cpp b/src/crypto/tests/CHIPCryptoPALTest.cpp index 14e5ec9c052ead..39d9998fa95b80 100644 --- a/src/crypto/tests/CHIPCryptoPALTest.cpp +++ b/src/crypto/tests/CHIPCryptoPALTest.cpp @@ -2005,7 +2005,7 @@ static void TestPubkey_x509Extraction(nlTestSuite * inSuite, void * inContext) for (size_t i = 0; i < gNumTestCerts; i++) { - uint8_t certType = TestCerts::gTestCerts[i]; + TestCert certType = TestCerts::gTestCerts[i]; err = GetTestCert(certType, TestCertLoadFlags::kDERForm, cert); NL_TEST_ASSERT(inSuite, err == CHIP_NO_ERROR); @@ -2193,7 +2193,7 @@ static void TestSKID_x509Extraction(nlTestSuite * inSuite, void * inContext) for (size_t i = 0; i < gNumTestCerts; i++) { - uint8_t certType = gTestCerts[i]; + TestCert certType = gTestCerts[i]; err = GetTestCert(certType, TestCertLoadFlags::kDERForm, cert); NL_TEST_ASSERT(inSuite, err == CHIP_NO_ERROR); @@ -2220,7 +2220,7 @@ static void TestAKID_x509Extraction(nlTestSuite * inSuite, void * inContext) for (size_t i = 0; i < gNumTestCerts; i++) { - uint8_t certType = gTestCerts[i]; + TestCert certType = gTestCerts[i]; err = GetTestCert(certType, TestCertLoadFlags::kDERForm, cert); NL_TEST_ASSERT(inSuite, err == CHIP_NO_ERROR); @@ -2360,7 +2360,7 @@ static void TestSerialNumber_x509Extraction(nlTestSuite * inSuite, void * inCont struct SerialNumberTestCase { - uint8_t Cert; + TestCert Cert; ByteSpan mExpectedResult; }; @@ -2401,7 +2401,7 @@ static void TestSubject_x509Extraction(nlTestSuite * inSuite, void * inContext) struct TestCase { - uint8_t Cert; + TestCert Cert; ChipDN mExpectedDN; }; @@ -2475,7 +2475,7 @@ static void TestIssuer_x509Extraction(nlTestSuite * inSuite, void * inContext) struct TestCase { - uint8_t Cert; + TestCert Cert; ChipDN mExpectedDN; }; diff --git a/src/darwin/Framework/CHIP/MTRCluster.h b/src/darwin/Framework/CHIP/MTRCluster.h index fb482492945c61..d8d0b5dbf26923 100644 --- a/src/darwin/Framework/CHIP/MTRCluster.h +++ b/src/darwin/Framework/CHIP/MTRCluster.h @@ -39,6 +39,11 @@ NS_ASSUME_NONNULL_BEGIN @interface MTRCluster : NSObject - (instancetype)init NS_UNAVAILABLE; + (instancetype)new NS_UNAVAILABLE; + +/** + * The endpoint this cluster lives on. + */ +@property (nonatomic, readonly) NSNumber * endpointID NS_REFINED_FOR_SWIFT MTR_NEWLY_AVAILABLE; @end /** diff --git a/src/darwin/Framework/CHIP/MTRConversion.mm b/src/darwin/Framework/CHIP/MTRConversion.mm index 491a585c00585d..c6ba6ec52fbf32 100644 --- a/src/darwin/Framework/CHIP/MTRConversion.mm +++ b/src/darwin/Framework/CHIP/MTRConversion.mm @@ -63,18 +63,18 @@ CHIP_ERROR SetToCATValues(NSSet * catSet, chip::CATValues & values) bool DateToMatterEpochSeconds(NSDate * date, uint32_t & matterEpochSeconds) { - NSCalendar * calendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSCalendarIdentifierGregorian]; - NSDateComponents * components = [calendar componentsInTimeZone:[NSTimeZone timeZoneForSecondsFromGMT:0] fromDate:date]; + auto timeSinceUnixEpoch = date.timeIntervalSince1970; + if (timeSinceUnixEpoch < static_cast(chip::kChipEpochSecondsSinceUnixEpoch)) { + // This is a pre-Matter-epoch time, and cannot be represented in epoch-s. + return false; + } - if (!chip::CanCastTo(components.year)) { + auto timeSinceMatterEpoch = timeSinceUnixEpoch - chip::kChipEpochSecondsSinceUnixEpoch; + if (timeSinceMatterEpoch > UINT32_MAX) { + // Too far into the future. return false; } - uint16_t year = static_cast([components year]); - uint8_t month = static_cast([components month]); - uint8_t day = static_cast([components day]); - uint8_t hour = static_cast([components hour]); - uint8_t minute = static_cast([components minute]); - uint8_t second = static_cast([components second]); - return chip::CalendarToChipEpochTime(year, month, day, hour, minute, second, matterEpochSeconds); + matterEpochSeconds = static_cast(timeSinceMatterEpoch); + return true; } diff --git a/src/darwin/Framework/CHIP/MTRDevice.h b/src/darwin/Framework/CHIP/MTRDevice.h index c155936ed6cd99..f8da13aac1c181 100644 --- a/src/darwin/Framework/CHIP/MTRDevice.h +++ b/src/darwin/Framework/CHIP/MTRDevice.h @@ -77,6 +77,17 @@ typedef NS_ENUM(NSUInteger, MTRDeviceState) { @property (nonatomic, readonly, nullable) NSDate * estimatedStartTime MTR_AVAILABLE(ios(16.5), macos(13.4), watchos(9.5), tvos(16.5)); +/** + * The controller this device was created for. May return nil if that + * controller has been shut down. + */ +@property (nonatomic, readonly, nullable) MTRDeviceController * deviceController MTR_NEWLY_AVAILABLE; + +/** + * The node ID of the node this device corresponds to. + */ +@property (nonatomic, readonly, copy) NSNumber * nodeID NS_REFINED_FOR_SWIFT MTR_NEWLY_AVAILABLE; + /** * Set the delegate to receive asynchronous callbacks about the device. * diff --git a/src/darwin/Framework/CHIP/MTRDeviceTypeMetadata.h b/src/darwin/Framework/CHIP/MTRDeviceTypeMetadata.h new file mode 100644 index 00000000000000..d60f6232a78116 --- /dev/null +++ b/src/darwin/Framework/CHIP/MTRDeviceTypeMetadata.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2023 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. + */ + +#pragma once + +#import + +#include + +BOOL MTRIsKnownUtilityDeviceType(chip::DeviceTypeId aDeviceTypeId); diff --git a/src/darwin/Framework/CHIP/MTRDevice_Internal.h b/src/darwin/Framework/CHIP/MTRDevice_Internal.h index 2840ecaa31596d..cad9af9e79cf81 100644 --- a/src/darwin/Framework/CHIP/MTRDevice_Internal.h +++ b/src/darwin/Framework/CHIP/MTRDevice_Internal.h @@ -64,8 +64,6 @@ typedef void (^MTRDevicePerformAsyncBlock)(MTRBaseDevice * baseDevice); queue:(dispatch_queue_t)queue completion:(void (^)(id _Nullable response, NSError * _Nullable error))completion; -@property (nonatomic, readonly) MTRDeviceController * deviceController; -@property (nonatomic, readonly, copy) NSNumber * nodeID; // Queue used for various internal bookkeeping work. @property (nonatomic) dispatch_queue_t queue; @property (nonatomic, readonly) MTRAsyncWorkQueue * asyncWorkQueue; diff --git a/src/darwin/Framework/CHIP/templates/MTRClusters.zapt b/src/darwin/Framework/CHIP/templates/MTRClusters.zapt index 8385fd3fa21c08..84e27d675ee59a 100644 --- a/src/darwin/Framework/CHIP/templates/MTRClusters.zapt +++ b/src/darwin/Framework/CHIP/templates/MTRClusters.zapt @@ -34,6 +34,11 @@ NS_ASSUME_NONNULL_BEGIN endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER {{availability (asUpperCamelCase name preserveAcronyms=true) minimalRelease="First major API revamp"}}; +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device {{availability (asUpperCamelCase name preserveAcronyms=true) minimalRelease="Future"}}; + {{#zcl_commands}} {{#if (is_str_equal source 'client')}} {{! Takes two arguments: cluster name and command name, plus the ambient state where the command is "this" }} diff --git a/src/darwin/Framework/CHIP/templates/MTRClusters_Internal.zapt b/src/darwin/Framework/CHIP/templates/MTRClusters_Internal.zapt index a8d80d094743d2..7f34721b9d1290 100644 --- a/src/darwin/Framework/CHIP/templates/MTRClusters_Internal.zapt +++ b/src/darwin/Framework/CHIP/templates/MTRClusters_Internal.zapt @@ -6,12 +6,5 @@ #import "MTRDevice.h" #import "MTRDevice_Internal.h" -{{#zcl_clusters}} - -{{#if (isSupported (asUpperCamelCase name preserveAcronyms=true))}} -@interface MTRCluster{{asUpperCamelCase name preserveAcronyms=true}} () -@property (nonatomic, readonly) MTRDevice *device; -@end -{{/if}} - -{{/zcl_clusters}} +// Nothing here for now, but leaving this file in place in case we need to add +// something. diff --git a/src/darwin/Framework/CHIP/templates/MTRDeviceTypeMetadata-src.zapt b/src/darwin/Framework/CHIP/templates/MTRDeviceTypeMetadata-src.zapt new file mode 100644 index 00000000000000..c3e594930d9eac --- /dev/null +++ b/src/darwin/Framework/CHIP/templates/MTRDeviceTypeMetadata-src.zapt @@ -0,0 +1,47 @@ +{{> header excludeZapComment=true}} + +#import "MTRDeviceTypeMetadata.h" + +using namespace chip; + +namespace { +enum class DeviceTypeClass { + Utility, + Simple, + Node, // Might not be a real class, but we have it for Root Node for now. + // If new classes get added, plase audit MTRIsKnownUtilityDeviceType below. +}; + +struct DeviceTypeData { + DeviceTypeId id; + DeviceTypeClass deviceClass; + const char * name; +}; + +constexpr DeviceTypeData knownDeviceTypes[] = { + {{#zcl_device_types}} + {{#if class}} + {{! For now work around the "Dynamic Utility" thing on Aggregator by just + taking the last word. }} + { {{asHex code 8}}, DeviceTypeClass::{{asLastWord class}}, "{{caption}}" }, + {{/if}} + {{/zcl_device_types}} +}; + +{{#zcl_device_types}} +{{#unless class}} +static_assert(ExtractVendorFromMEI({{asHex code 8}}) != 0, "Must have class defined for \"{{caption}}\" if it's a standard device type"); +{{/unless}} +{{/zcl_device_types}} + +} // anonymous namespace + +BOOL MTRIsKnownUtilityDeviceType(DeviceTypeId aDeviceTypeId) +{ + for (auto & deviceType : knownDeviceTypes) { + if (deviceType.id == aDeviceTypeId) { + return deviceType.deviceClass != DeviceTypeClass::Simple; + } + } + return NO; +} diff --git a/src/darwin/Framework/CHIP/templates/templates.json b/src/darwin/Framework/CHIP/templates/templates.json index 42a2ffc1cf6f03..d04cf45ba83c2d 100644 --- a/src/darwin/Framework/CHIP/templates/templates.json +++ b/src/darwin/Framework/CHIP/templates/templates.json @@ -133,6 +133,11 @@ "path": "MTRCommandTimedCheck-src.zapt", "name": "Function to check if command needs timed invoke", "output": "src/darwin/Framework/CHIP/zap-generated/MTRCommandTimedCheck.mm" + }, + { + "path": "MTRDeviceTypeMetadata-src.zapt", + "name": "Functions to ask for information about device types", + "output": "src/darwin/Framework/CHIP/zap-generated/MTRDeviceTypeMetadata.mm" } ] } diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRAttributeSpecifiedCheck.mm b/src/darwin/Framework/CHIP/zap-generated/MTRAttributeSpecifiedCheck.mm index 915823735242be..f034ce2ef1cb3c 100644 --- a/src/darwin/Framework/CHIP/zap-generated/MTRAttributeSpecifiedCheck.mm +++ b/src/darwin/Framework/CHIP/zap-generated/MTRAttributeSpecifiedCheck.mm @@ -2085,9 +2085,6 @@ static BOOL AttributeIsSpecifiedInRVCRunModeCluster(AttributeId aAttributeId) case Attributes::CurrentMode::Id: { return YES; } - case Attributes::StartUpMode::Id: { - return YES; - } case Attributes::OnMode::Id: { return YES; } @@ -2124,9 +2121,6 @@ static BOOL AttributeIsSpecifiedInRVCCleanModeCluster(AttributeId aAttributeId) case Attributes::CurrentMode::Id: { return YES; } - case Attributes::StartUpMode::Id: { - return YES; - } case Attributes::OnMode::Id: { return YES; } diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRAttributeTLVValueDecoder.mm b/src/darwin/Framework/CHIP/zap-generated/MTRAttributeTLVValueDecoder.mm index 5f446924eea4a6..bc34c284717b2d 100644 --- a/src/darwin/Framework/CHIP/zap-generated/MTRAttributeTLVValueDecoder.mm +++ b/src/darwin/Framework/CHIP/zap-generated/MTRAttributeTLVValueDecoder.mm @@ -5751,23 +5751,6 @@ static id _Nullable DecodeAttributeValueForRVCRunModeCluster(AttributeId aAttrib return value; } #endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL - case Attributes::StartUpMode::Id: { - using TypeInfo = Attributes::StartUpMode::TypeInfo; - TypeInfo::DecodableType cppValue; - *aError = DataModel::Decode(aReader, cppValue); - if (*aError != CHIP_NO_ERROR) { - return nil; - } - NSNumber * _Nullable value; - if (cppValue.IsNull()) { - value = nil; - } else { - value = [NSNumber numberWithUnsignedChar:cppValue.Value()]; - } - return value; - } -#endif // MTR_ENABLE_PROVISIONAL #if MTR_ENABLE_PROVISIONAL case Attributes::OnMode::Id: { using TypeInfo = Attributes::OnMode::TypeInfo; @@ -5867,23 +5850,6 @@ static id _Nullable DecodeAttributeValueForRVCCleanModeCluster(AttributeId aAttr return value; } #endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL - case Attributes::StartUpMode::Id: { - using TypeInfo = Attributes::StartUpMode::TypeInfo; - TypeInfo::DecodableType cppValue; - *aError = DataModel::Decode(aReader, cppValue); - if (*aError != CHIP_NO_ERROR) { - return nil; - } - NSNumber * _Nullable value; - if (cppValue.IsNull()) { - value = nil; - } else { - value = [NSNumber numberWithUnsignedChar:cppValue.Value()]; - } - return value; - } -#endif // MTR_ENABLE_PROVISIONAL #if MTR_ENABLE_PROVISIONAL case Attributes::OnMode::Id: { using TypeInfo = Attributes::OnMode::TypeInfo; diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h b/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h index b7b48b02f0f7c0..cc7e35b340ec8d 100644 --- a/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h +++ b/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h @@ -4985,14 +4985,6 @@ MTR_PROVISIONALLY_AVAILABLE reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler MTR_PROVISIONALLY_AVAILABLE; + (void)readAttributeCurrentModeWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; -- (void)readAttributeStartUpModeWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; -- (void)writeAttributeStartUpModeWithValue:(NSNumber * _Nullable)value completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; -- (void)writeAttributeStartUpModeWithValue:(NSNumber * _Nullable)value params:(MTRWriteParams * _Nullable)params completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; -- (void)subscribeAttributeStartUpModeWithParams:(MTRSubscribeParams *)params - subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished - reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler MTR_PROVISIONALLY_AVAILABLE; -+ (void)readAttributeStartUpModeWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; - - (void)readAttributeOnModeWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; - (void)writeAttributeOnModeWithValue:(NSNumber * _Nullable)value completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; - (void)writeAttributeOnModeWithValue:(NSNumber * _Nullable)value params:(MTRWriteParams * _Nullable)params completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; @@ -5078,14 +5070,6 @@ MTR_PROVISIONALLY_AVAILABLE reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler MTR_PROVISIONALLY_AVAILABLE; + (void)readAttributeCurrentModeWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; -- (void)readAttributeStartUpModeWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; -- (void)writeAttributeStartUpModeWithValue:(NSNumber * _Nullable)value completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; -- (void)writeAttributeStartUpModeWithValue:(NSNumber * _Nullable)value params:(MTRWriteParams * _Nullable)params completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; -- (void)subscribeAttributeStartUpModeWithParams:(MTRSubscribeParams *)params - subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished - reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler MTR_PROVISIONALLY_AVAILABLE; -+ (void)readAttributeStartUpModeWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; - - (void)readAttributeOnModeWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; - (void)writeAttributeOnModeWithValue:(NSNumber * _Nullable)value completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; - (void)writeAttributeOnModeWithValue:(NSNumber * _Nullable)value params:(MTRWriteParams * _Nullable)params completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.mm b/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.mm index e7917c0d0341af..bf7226762e2370 100644 --- a/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.mm +++ b/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.mm @@ -41766,81 +41766,6 @@ + (void)readAttributeCurrentModeWithClusterStateCache:(MTRClusterStateCacheConta completion:completion]; } -- (void)readAttributeStartUpModeWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion -{ - using TypeInfo = RvcRunMode::Attributes::StartUpMode::TypeInfo; - [self.device _readKnownAttributeWithEndpointID:@(self.endpoint) - clusterID:@(TypeInfo::GetClusterId()) - attributeID:@(TypeInfo::GetAttributeId()) - params:nil - queue:self.callbackQueue - completion:completion]; -} - -- (void)writeAttributeStartUpModeWithValue:(NSNumber * _Nullable)value completion:(MTRStatusCompletion)completion -{ - [self writeAttributeStartUpModeWithValue:(NSNumber * _Nullable) value params:nil completion:completion]; -} -- (void)writeAttributeStartUpModeWithValue:(NSNumber * _Nullable)value params:(MTRWriteParams * _Nullable)params completion:(MTRStatusCompletion)completion -{ - // Make a copy of params before we go async. - params = [params copy]; - value = [value copy]; - - auto * bridge = new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completion(error); - }, - ^(ExchangeManager & exchangeManager, const SessionHandle & session, DefaultSuccessCallbackType successCb, MTRErrorCallback failureCb, MTRCallbackBridgeBase * bridge) { - chip::Optional timedWriteTimeout; - if (params != nil) { - if (params.timedWriteTimeout != nil) { - timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); - } - } - - ListFreer listFreer; - using TypeInfo = RvcRunMode::Attributes::StartUpMode::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedCharValue; - } - - chip::Controller::ClusterBase cppCluster(exchangeManager, session, self.endpoint); - return cppCluster.WriteAttribute(cppValue, bridge, successCb, failureCb, timedWriteTimeout); - }); - std::move(*bridge).DispatchAction(self.device); -} - -- (void)subscribeAttributeStartUpModeWithParams:(MTRSubscribeParams * _Nonnull)params - subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished - reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler -{ - using TypeInfo = RvcRunMode::Attributes::StartUpMode::TypeInfo; - [self.device _subscribeToKnownAttributeWithEndpointID:@(self.endpoint) - clusterID:@(TypeInfo::GetClusterId()) - attributeID:@(TypeInfo::GetAttributeId()) - params:params - queue:self.callbackQueue - reportHandler:reportHandler - subscriptionEstablished:subscriptionEstablished]; -} - -+ (void)readAttributeStartUpModeWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion -{ - using TypeInfo = RvcRunMode::Attributes::StartUpMode::TypeInfo; - [clusterStateCacheContainer - _readKnownCachedAttributeWithEndpointID:static_cast([endpoint unsignedShortValue]) - clusterID:TypeInfo::GetClusterId() - attributeID:TypeInfo::GetAttributeId() - queue:queue - completion:completion]; -} - - (void)readAttributeOnModeWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion { using TypeInfo = RvcRunMode::Attributes::OnMode::TypeInfo; @@ -42245,81 +42170,6 @@ + (void)readAttributeCurrentModeWithClusterStateCache:(MTRClusterStateCacheConta completion:completion]; } -- (void)readAttributeStartUpModeWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion -{ - using TypeInfo = RvcCleanMode::Attributes::StartUpMode::TypeInfo; - [self.device _readKnownAttributeWithEndpointID:@(self.endpoint) - clusterID:@(TypeInfo::GetClusterId()) - attributeID:@(TypeInfo::GetAttributeId()) - params:nil - queue:self.callbackQueue - completion:completion]; -} - -- (void)writeAttributeStartUpModeWithValue:(NSNumber * _Nullable)value completion:(MTRStatusCompletion)completion -{ - [self writeAttributeStartUpModeWithValue:(NSNumber * _Nullable) value params:nil completion:completion]; -} -- (void)writeAttributeStartUpModeWithValue:(NSNumber * _Nullable)value params:(MTRWriteParams * _Nullable)params completion:(MTRStatusCompletion)completion -{ - // Make a copy of params before we go async. - params = [params copy]; - value = [value copy]; - - auto * bridge = new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completion(error); - }, - ^(ExchangeManager & exchangeManager, const SessionHandle & session, DefaultSuccessCallbackType successCb, MTRErrorCallback failureCb, MTRCallbackBridgeBase * bridge) { - chip::Optional timedWriteTimeout; - if (params != nil) { - if (params.timedWriteTimeout != nil) { - timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); - } - } - - ListFreer listFreer; - using TypeInfo = RvcCleanMode::Attributes::StartUpMode::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedCharValue; - } - - chip::Controller::ClusterBase cppCluster(exchangeManager, session, self.endpoint); - return cppCluster.WriteAttribute(cppValue, bridge, successCb, failureCb, timedWriteTimeout); - }); - std::move(*bridge).DispatchAction(self.device); -} - -- (void)subscribeAttributeStartUpModeWithParams:(MTRSubscribeParams * _Nonnull)params - subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished - reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler -{ - using TypeInfo = RvcCleanMode::Attributes::StartUpMode::TypeInfo; - [self.device _subscribeToKnownAttributeWithEndpointID:@(self.endpoint) - clusterID:@(TypeInfo::GetClusterId()) - attributeID:@(TypeInfo::GetAttributeId()) - params:params - queue:self.callbackQueue - reportHandler:reportHandler - subscriptionEstablished:subscriptionEstablished]; -} - -+ (void)readAttributeStartUpModeWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion -{ - using TypeInfo = RvcCleanMode::Attributes::StartUpMode::TypeInfo; - [clusterStateCacheContainer - _readKnownCachedAttributeWithEndpointID:static_cast([endpoint unsignedShortValue]) - clusterID:TypeInfo::GetClusterId() - attributeID:TypeInfo::GetAttributeId() - queue:queue - completion:completion]; -} - - (void)readAttributeOnModeWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion { using TypeInfo = RvcCleanMode::Attributes::OnMode::TypeInfo; diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRClusterConstants.h b/src/darwin/Framework/CHIP/zap-generated/MTRClusterConstants.h index ea73c3eced4499..d2307978241522 100644 --- a/src/darwin/Framework/CHIP/zap-generated/MTRClusterConstants.h +++ b/src/darwin/Framework/CHIP/zap-generated/MTRClusterConstants.h @@ -2335,7 +2335,6 @@ typedef NS_ENUM(uint32_t, MTRAttributeIDType) { // Cluster RVCRunMode attributes MTRAttributeIDTypeClusterRVCRunModeAttributeSupportedModesID MTR_PROVISIONALLY_AVAILABLE = 0x00000000, MTRAttributeIDTypeClusterRVCRunModeAttributeCurrentModeID MTR_PROVISIONALLY_AVAILABLE = 0x00000001, - MTRAttributeIDTypeClusterRVCRunModeAttributeStartUpModeID MTR_PROVISIONALLY_AVAILABLE = 0x00000002, MTRAttributeIDTypeClusterRVCRunModeAttributeOnModeID MTR_PROVISIONALLY_AVAILABLE = 0x00000003, MTRAttributeIDTypeClusterRVCRunModeAttributeGeneratedCommandListID MTR_PROVISIONALLY_AVAILABLE = MTRAttributeIDTypeGlobalAttributeGeneratedCommandListID, MTRAttributeIDTypeClusterRVCRunModeAttributeAcceptedCommandListID MTR_PROVISIONALLY_AVAILABLE = MTRAttributeIDTypeGlobalAttributeAcceptedCommandListID, @@ -2347,7 +2346,6 @@ typedef NS_ENUM(uint32_t, MTRAttributeIDType) { // Cluster RVCCleanMode attributes MTRAttributeIDTypeClusterRVCCleanModeAttributeSupportedModesID MTR_PROVISIONALLY_AVAILABLE = 0x00000000, MTRAttributeIDTypeClusterRVCCleanModeAttributeCurrentModeID MTR_PROVISIONALLY_AVAILABLE = 0x00000001, - MTRAttributeIDTypeClusterRVCCleanModeAttributeStartUpModeID MTR_PROVISIONALLY_AVAILABLE = 0x00000002, MTRAttributeIDTypeClusterRVCCleanModeAttributeOnModeID MTR_PROVISIONALLY_AVAILABLE = 0x00000003, MTRAttributeIDTypeClusterRVCCleanModeAttributeGeneratedCommandListID MTR_PROVISIONALLY_AVAILABLE = MTRAttributeIDTypeGlobalAttributeGeneratedCommandListID, MTRAttributeIDTypeClusterRVCCleanModeAttributeAcceptedCommandListID MTR_PROVISIONALLY_AVAILABLE = MTRAttributeIDTypeGlobalAttributeAcceptedCommandListID, diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRClusters.h b/src/darwin/Framework/CHIP/zap-generated/MTRClusters.h index 8da709a08917b9..78984c02bd52a4 100644 --- a/src/darwin/Framework/CHIP/zap-generated/MTRClusters.h +++ b/src/darwin/Framework/CHIP/zap-generated/MTRClusters.h @@ -38,6 +38,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (void)identifyWithParams:(MTRIdentifyClusterIdentifyParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)triggerEffectWithParams:(MTRIdentifyClusterTriggerEffectParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); @@ -79,6 +84,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (void)addGroupWithParams:(MTRGroupsClusterAddGroupParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(void (^)(MTRGroupsClusterAddGroupResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)viewGroupWithParams:(MTRGroupsClusterViewGroupParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(void (^)(MTRGroupsClusterViewGroupResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)getGroupMembershipWithParams:(MTRGroupsClusterGetGroupMembershipParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(void (^)(MTRGroupsClusterGetGroupMembershipResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); @@ -122,6 +132,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (void)addSceneWithParams:(MTRScenesClusterAddSceneParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(void (^)(MTRScenesClusterAddSceneResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)viewSceneWithParams:(MTRScenesClusterViewSceneParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(void (^)(MTRScenesClusterViewSceneResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)removeSceneWithParams:(MTRScenesClusterRemoveSceneParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(void (^)(MTRScenesClusterRemoveSceneResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); @@ -181,6 +196,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (void)offWithParams:(MTROnOffClusterOffParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)offWithExpectedValues:(NSArray *> * _Nullable)expectedValues expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); @@ -244,6 +264,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (NSDictionary * _Nullable)readAttributeSwitchTypeWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); - (NSDictionary * _Nullable)readAttributeSwitchActionsWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); @@ -282,6 +307,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (void)moveToLevelWithParams:(MTRLevelControlClusterMoveToLevelParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)moveWithParams:(MTRLevelControlClusterMoveParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)stepWithParams:(MTRLevelControlClusterStepParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); @@ -366,6 +396,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (NSDictionary * _Nullable)readAttributeActiveTextWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); - (void)writeAttributeActiveTextWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); - (void)writeAttributeActiveTextWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs params:(MTRWriteParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); @@ -428,6 +463,11 @@ MTR_PROVISIONALLY_AVAILABLE endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_PROVISIONALLY_AVAILABLE; +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_PROVISIONALLY_AVAILABLE; + - (NSDictionary * _Nullable)readAttributeGeneratedCommandListWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; - (NSDictionary * _Nullable)readAttributeAcceptedCommandListWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; @@ -460,6 +500,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (NSDictionary * _Nullable)readAttributeDeviceTypeListWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (NSDictionary * _Nullable)readAttributeServerListWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); @@ -502,6 +547,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (NSDictionary * _Nullable)readAttributeBindingWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); - (void)writeAttributeBindingWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); - (void)writeAttributeBindingWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs params:(MTRWriteParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); @@ -541,6 +591,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (NSDictionary * _Nullable)readAttributeACLWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)writeAttributeACLWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)writeAttributeACLWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs params:(MTRWriteParams * _Nullable)params MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); @@ -587,6 +642,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (void)instantActionWithParams:(MTRActionsClusterInstantActionParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)instantActionWithTransitionWithParams:(MTRActionsClusterInstantActionWithTransitionParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)startActionWithParams:(MTRActionsClusterStartActionParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); @@ -640,6 +700,11 @@ MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (NSDictionary * _Nullable)readAttributeDataModelRevisionWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (NSDictionary * _Nullable)readAttributeVendorNameWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); @@ -720,6 +785,11 @@ MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (void)queryImageWithParams:(MTROTASoftwareUpdateProviderClusterQueryImageParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(void (^)(MTROTASoftwareUpdateProviderClusterQueryImageResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)applyUpdateRequestWithParams:(MTROTASoftwareUpdateProviderClusterApplyUpdateRequestParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(void (^)(MTROTASoftwareUpdateProviderClusterApplyUpdateResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)notifyUpdateAppliedWithParams:(MTROTASoftwareUpdateProviderClusterNotifyUpdateAppliedParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); @@ -756,6 +826,11 @@ MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (void)announceOTAProviderWithParams:(MTROTASoftwareUpdateRequestorClusterAnnounceOTAProviderParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (NSDictionary * _Nullable)readAttributeDefaultOTAProvidersWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); @@ -803,6 +878,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (NSDictionary * _Nullable)readAttributeActiveLocaleWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); - (void)writeAttributeActiveLocaleWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); - (void)writeAttributeActiveLocaleWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs params:(MTRWriteParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); @@ -844,6 +924,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (NSDictionary * _Nullable)readAttributeHourFormatWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); - (void)writeAttributeHourFormatWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); - (void)writeAttributeHourFormatWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs params:(MTRWriteParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); @@ -889,6 +974,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (NSDictionary * _Nullable)readAttributeTemperatureUnitWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); - (void)writeAttributeTemperatureUnitWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); - (void)writeAttributeTemperatureUnitWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs params:(MTRWriteParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); @@ -925,6 +1015,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (NSDictionary * _Nullable)readAttributeSourcesWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); - (NSDictionary * _Nullable)readAttributeGeneratedCommandListWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); @@ -959,6 +1054,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (NSDictionary * _Nullable)readAttributeStatusWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); - (NSDictionary * _Nullable)readAttributeOrderWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); @@ -1055,6 +1155,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (void)armFailSafeWithParams:(MTRGeneralCommissioningClusterArmFailSafeParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(void (^)(MTRGeneralCommissioningClusterArmFailSafeResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)setRegulatoryConfigWithParams:(MTRGeneralCommissioningClusterSetRegulatoryConfigParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(void (^)(MTRGeneralCommissioningClusterSetRegulatoryConfigResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)commissioningCompleteWithParams:(MTRGeneralCommissioningClusterCommissioningCompleteParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(void (^)(MTRGeneralCommissioningClusterCommissioningCompleteResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); @@ -1105,6 +1210,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (void)scanNetworksWithParams:(MTRNetworkCommissioningClusterScanNetworksParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(void (^)(MTRNetworkCommissioningClusterScanNetworksResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)addOrUpdateWiFiNetworkWithParams:(MTRNetworkCommissioningClusterAddOrUpdateWiFiNetworkParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(void (^)(MTRNetworkCommissioningClusterNetworkConfigResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)addOrUpdateThreadNetworkWithParams:(MTRNetworkCommissioningClusterAddOrUpdateThreadNetworkParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(void (^)(MTRNetworkCommissioningClusterNetworkConfigResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); @@ -1168,6 +1278,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (void)retrieveLogsRequestWithParams:(MTRDiagnosticLogsClusterRetrieveLogsRequestParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(void (^)(MTRDiagnosticLogsClusterRetrieveLogsResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (NSDictionary * _Nullable)readAttributeGeneratedCommandListWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); @@ -1202,6 +1317,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (void)testEventTriggerWithParams:(MTRGeneralDiagnosticsClusterTestEventTriggerParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (NSDictionary * _Nullable)readAttributeNetworkInterfacesWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); @@ -1256,6 +1376,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (void)resetWatermarksWithParams:(MTRSoftwareDiagnosticsClusterResetWatermarksParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)resetWatermarksWithExpectedValues:(NSArray *> * _Nullable)expectedValues expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); @@ -1300,6 +1425,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (void)resetCountsWithParams:(MTRThreadNetworkDiagnosticsClusterResetCountsParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)resetCountsWithExpectedValues:(NSArray *> * _Nullable)expectedValues expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); @@ -1462,6 +1592,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (void)resetCountsWithParams:(MTRWiFiNetworkDiagnosticsClusterResetCountsParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)resetCountsWithExpectedValues:(NSArray *> * _Nullable)expectedValues expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); @@ -1524,6 +1659,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (void)resetCountsWithParams:(MTREthernetNetworkDiagnosticsClusterResetCountsParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)resetCountsWithExpectedValues:(NSArray *> * _Nullable)expectedValues expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); @@ -1578,6 +1718,11 @@ MTR_PROVISIONALLY_AVAILABLE endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_PROVISIONALLY_AVAILABLE; +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_PROVISIONALLY_AVAILABLE; + - (void)setUTCTimeWithParams:(MTRTimeSynchronizationClusterSetUTCTimeParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; - (void)setTrustedTimeSourceWithParams:(MTRTimeSynchronizationClusterSetTrustedTimeSourceParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; - (void)setTimeZoneWithParams:(MTRTimeSynchronizationClusterSetTimeZoneParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(void (^)(MTRTimeSynchronizationClusterSetTimeZoneResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; @@ -1645,6 +1790,11 @@ MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (NSDictionary * _Nullable)readAttributeVendorNameWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (NSDictionary * _Nullable)readAttributeVendorIDWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); @@ -1713,6 +1863,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (NSDictionary * _Nullable)readAttributeNumberOfPositionsWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); - (NSDictionary * _Nullable)readAttributeCurrentPositionWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); @@ -1751,6 +1906,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (void)openCommissioningWindowWithParams:(MTRAdministratorCommissioningClusterOpenCommissioningWindowParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)openBasicCommissioningWindowWithParams:(MTRAdministratorCommissioningClusterOpenBasicCommissioningWindowParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)revokeCommissioningWithParams:(MTRAdministratorCommissioningClusterRevokeCommissioningParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); @@ -1795,6 +1955,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (void)attestationRequestWithParams:(MTROperationalCredentialsClusterAttestationRequestParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(void (^)(MTROperationalCredentialsClusterAttestationResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)certificateChainRequestWithParams:(MTROperationalCredentialsClusterCertificateChainRequestParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(void (^)(MTROperationalCredentialsClusterCertificateChainResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)CSRRequestWithParams:(MTROperationalCredentialsClusterCSRRequestParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(void (^)(MTROperationalCredentialsClusterCSRResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); @@ -1848,6 +2013,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (void)keySetWriteWithParams:(MTRGroupKeyManagementClusterKeySetWriteParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)keySetReadWithParams:(MTRGroupKeyManagementClusterKeySetReadParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(void (^)(MTRGroupKeyManagementClusterKeySetReadResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)keySetRemoveWithParams:(MTRGroupKeyManagementClusterKeySetRemoveParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); @@ -1898,6 +2068,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (NSDictionary * _Nullable)readAttributeLabelListWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); - (NSDictionary * _Nullable)readAttributeGeneratedCommandListWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); @@ -1932,6 +2107,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (NSDictionary * _Nullable)readAttributeLabelListWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); - (void)writeAttributeLabelListWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); - (void)writeAttributeLabelListWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs params:(MTRWriteParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); @@ -1968,6 +2148,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (NSDictionary * _Nullable)readAttributeStateValueWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); - (NSDictionary * _Nullable)readAttributeGeneratedCommandListWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); @@ -2002,6 +2187,11 @@ MTR_PROVISIONALLY_AVAILABLE endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_PROVISIONALLY_AVAILABLE; +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_PROVISIONALLY_AVAILABLE; + - (void)registerClientWithParams:(MTRICDManagementClusterRegisterClientParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(void (^)(MTRICDManagementClusterRegisterClientResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; - (void)unregisterClientWithParams:(MTRICDManagementClusterUnregisterClientParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; - (void)stayActiveRequestWithParams:(MTRICDManagementClusterStayActiveRequestParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; @@ -2052,6 +2242,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (void)changeToModeWithParams:(MTRModeSelectClusterChangeToModeParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (NSDictionary * _Nullable)readAttributeDescriptionWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); @@ -2102,6 +2297,11 @@ MTR_PROVISIONALLY_AVAILABLE endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_PROVISIONALLY_AVAILABLE; +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_PROVISIONALLY_AVAILABLE; + - (void)changeToModeWithParams:(MTRLaundryWasherModeClusterChangeToModeParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(void (^)(MTRLaundryWasherModeClusterChangeToModeResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; - (NSDictionary * _Nullable)readAttributeSupportedModesWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; @@ -2148,6 +2348,11 @@ MTR_PROVISIONALLY_AVAILABLE endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_PROVISIONALLY_AVAILABLE; +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_PROVISIONALLY_AVAILABLE; + - (void)changeToModeWithParams:(MTRRefrigeratorAndTemperatureControlledCabinetModeClusterChangeToModeParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(void (^)(MTRRefrigeratorAndTemperatureControlledCabinetModeClusterChangeToModeResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; - (NSDictionary * _Nullable)readAttributeSupportedModesWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; @@ -2194,6 +2399,11 @@ MTR_PROVISIONALLY_AVAILABLE endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_PROVISIONALLY_AVAILABLE; +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_PROVISIONALLY_AVAILABLE; + - (NSDictionary * _Nullable)readAttributeSpinSpeedsWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; - (NSDictionary * _Nullable)readAttributeSpinSpeedCurrentWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; @@ -2238,16 +2448,17 @@ MTR_PROVISIONALLY_AVAILABLE endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_PROVISIONALLY_AVAILABLE; +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_PROVISIONALLY_AVAILABLE; + - (void)changeToModeWithParams:(MTRRVCRunModeClusterChangeToModeParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(void (^)(MTRRVCRunModeClusterChangeToModeResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; - (NSDictionary * _Nullable)readAttributeSupportedModesWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; - (NSDictionary * _Nullable)readAttributeCurrentModeWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; -- (NSDictionary * _Nullable)readAttributeStartUpModeWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; -- (void)writeAttributeStartUpModeWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs MTR_PROVISIONALLY_AVAILABLE; -- (void)writeAttributeStartUpModeWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs params:(MTRWriteParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; - - (NSDictionary * _Nullable)readAttributeOnModeWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; - (void)writeAttributeOnModeWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs MTR_PROVISIONALLY_AVAILABLE; - (void)writeAttributeOnModeWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs params:(MTRWriteParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; @@ -2284,16 +2495,17 @@ MTR_PROVISIONALLY_AVAILABLE endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_PROVISIONALLY_AVAILABLE; +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_PROVISIONALLY_AVAILABLE; + - (void)changeToModeWithParams:(MTRRVCCleanModeClusterChangeToModeParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(void (^)(MTRRVCCleanModeClusterChangeToModeResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; - (NSDictionary * _Nullable)readAttributeSupportedModesWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; - (NSDictionary * _Nullable)readAttributeCurrentModeWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; -- (NSDictionary * _Nullable)readAttributeStartUpModeWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; -- (void)writeAttributeStartUpModeWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs MTR_PROVISIONALLY_AVAILABLE; -- (void)writeAttributeStartUpModeWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs params:(MTRWriteParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; - - (NSDictionary * _Nullable)readAttributeOnModeWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; - (void)writeAttributeOnModeWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs MTR_PROVISIONALLY_AVAILABLE; - (void)writeAttributeOnModeWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs params:(MTRWriteParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; @@ -2330,6 +2542,11 @@ MTR_PROVISIONALLY_AVAILABLE endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_PROVISIONALLY_AVAILABLE; +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_PROVISIONALLY_AVAILABLE; + - (void)setTemperatureWithParams:(MTRTemperatureControlClusterSetTemperatureParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; - (NSDictionary * _Nullable)readAttributeTemperatureSetpointWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; @@ -2376,6 +2593,11 @@ MTR_PROVISIONALLY_AVAILABLE endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_PROVISIONALLY_AVAILABLE; +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_PROVISIONALLY_AVAILABLE; + - (NSDictionary * _Nullable)readAttributeMaskWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; - (NSDictionary * _Nullable)readAttributeStateWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; @@ -2414,6 +2636,11 @@ MTR_PROVISIONALLY_AVAILABLE endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_PROVISIONALLY_AVAILABLE; +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_PROVISIONALLY_AVAILABLE; + - (void)changeToModeWithParams:(MTRDishwasherModeClusterChangeToModeParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(void (^)(MTRDishwasherModeClusterChangeToModeResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; - (NSDictionary * _Nullable)readAttributeSupportedModesWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; @@ -2460,6 +2687,11 @@ MTR_PROVISIONALLY_AVAILABLE endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_PROVISIONALLY_AVAILABLE; +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_PROVISIONALLY_AVAILABLE; + - (NSDictionary * _Nullable)readAttributeAirQualityWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; - (NSDictionary * _Nullable)readAttributeGeneratedCommandListWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; @@ -2494,6 +2726,11 @@ MTR_PROVISIONALLY_AVAILABLE endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_PROVISIONALLY_AVAILABLE; +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_PROVISIONALLY_AVAILABLE; + - (void)selfTestRequestWithParams:(MTRSmokeCOAlarmClusterSelfTestRequestParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; - (void)selfTestRequestWithExpectedValues:(NSArray *> * _Nullable)expectedValues expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; @@ -2558,6 +2795,11 @@ MTR_PROVISIONALLY_AVAILABLE endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_PROVISIONALLY_AVAILABLE; +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_PROVISIONALLY_AVAILABLE; + - (void)resetWithParams:(MTRDishwasherAlarmClusterResetParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; - (void)modifyEnabledAlarmsWithParams:(MTRDishwasherAlarmClusterModifyEnabledAlarmsParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; @@ -2601,6 +2843,11 @@ MTR_PROVISIONALLY_AVAILABLE endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_PROVISIONALLY_AVAILABLE; +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_PROVISIONALLY_AVAILABLE; + - (void)pauseWithParams:(MTROperationalStateClusterPauseParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(void (^)(MTROperationalStateClusterOperationalCommandResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; - (void)pauseWithExpectedValues:(NSArray *> * _Nullable)expectedValues expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(void (^)(MTROperationalStateClusterOperationalCommandResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; @@ -2658,6 +2905,11 @@ MTR_PROVISIONALLY_AVAILABLE endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_PROVISIONALLY_AVAILABLE; +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_PROVISIONALLY_AVAILABLE; + - (void)pauseWithParams:(MTRRVCOperationalStateClusterPauseParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(void (^)(MTRRVCOperationalStateClusterOperationalCommandResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; - (void)pauseWithExpectedValues:(NSArray *> * _Nullable)expectedValues expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(void (^)(MTRRVCOperationalStateClusterOperationalCommandResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; @@ -2715,6 +2967,11 @@ MTR_PROVISIONALLY_AVAILABLE endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_PROVISIONALLY_AVAILABLE; +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_PROVISIONALLY_AVAILABLE; + - (void)resetConditionWithParams:(MTRHEPAFilterMonitoringClusterResetConditionParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; - (void)resetConditionWithExpectedValues:(NSArray *> * _Nullable)expectedValues expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; @@ -2765,6 +3022,11 @@ MTR_PROVISIONALLY_AVAILABLE endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_PROVISIONALLY_AVAILABLE; +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_PROVISIONALLY_AVAILABLE; + - (void)resetConditionWithParams:(MTRActivatedCarbonFilterMonitoringClusterResetConditionParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; - (void)resetConditionWithExpectedValues:(NSArray *> * _Nullable)expectedValues expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; @@ -2815,6 +3077,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (void)lockDoorWithParams:(MTRDoorLockClusterLockDoorParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)unlockDoorWithParams:(MTRDoorLockClusterUnlockDoorParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)unlockWithTimeoutWithParams:(MTRDoorLockClusterUnlockWithTimeoutParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); @@ -2975,6 +3242,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (void)upOrOpenWithParams:(MTRWindowCoveringClusterUpOrOpenParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)upOrOpenWithExpectedValues:(NSArray *> * _Nullable)expectedValues expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); @@ -3067,6 +3339,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (void)barrierControlGoToPercentWithParams:(MTRBarrierControlClusterBarrierControlGoToPercentParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)barrierControlStopWithParams:(MTRBarrierControlClusterBarrierControlStopParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)barrierControlStopWithExpectedValues:(NSArray *> * _Nullable)expectedValues expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion @@ -3136,6 +3413,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (NSDictionary * _Nullable)readAttributeMaxPressureWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); - (NSDictionary * _Nullable)readAttributeMaxSpeedWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); @@ -3222,6 +3504,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (void)setpointRaiseLowerWithParams:(MTRThermostatClusterSetpointRaiseLowerParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)setWeeklyScheduleWithParams:(MTRThermostatClusterSetWeeklyScheduleParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)getWeeklyScheduleWithParams:(MTRThermostatClusterGetWeeklyScheduleParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(void (^)(MTRThermostatClusterGetWeeklyScheduleResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); @@ -3413,6 +3700,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (void)stepWithParams:(MTRFanControlClusterStepParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; - (NSDictionary * _Nullable)readAttributeFanModeWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); @@ -3485,6 +3777,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (NSDictionary * _Nullable)readAttributeTemperatureDisplayModeWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); - (void)writeAttributeTemperatureDisplayModeWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); - (void)writeAttributeTemperatureDisplayModeWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs params:(MTRWriteParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); @@ -3529,6 +3826,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (void)moveToHueWithParams:(MTRColorControlClusterMoveToHueParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)moveHueWithParams:(MTRColorControlClusterMoveHueParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)stepHueWithParams:(MTRColorControlClusterStepHueParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); @@ -3711,6 +4013,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (NSDictionary * _Nullable)readAttributePhysicalMinLevelWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); - (NSDictionary * _Nullable)readAttributePhysicalMaxLevelWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); @@ -3791,6 +4098,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (NSDictionary * _Nullable)readAttributeMeasuredValueWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); - (NSDictionary * _Nullable)readAttributeMinMeasuredValueWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); @@ -3833,6 +4145,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (NSDictionary * _Nullable)readAttributeMeasuredValueWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); - (NSDictionary * _Nullable)readAttributeMinMeasuredValueWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); @@ -3873,6 +4190,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (NSDictionary * _Nullable)readAttributeMeasuredValueWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); - (NSDictionary * _Nullable)readAttributeMinMeasuredValueWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); @@ -3923,6 +4245,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (NSDictionary * _Nullable)readAttributeMeasuredValueWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); - (NSDictionary * _Nullable)readAttributeMinMeasuredValueWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); @@ -3963,6 +4290,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (NSDictionary * _Nullable)readAttributeMeasuredValueWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); - (NSDictionary * _Nullable)readAttributeMinMeasuredValueWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); @@ -4003,6 +4335,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (NSDictionary * _Nullable)readAttributeOccupancyWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); - (NSDictionary * _Nullable)readAttributeOccupancySensorTypeWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); @@ -4077,6 +4414,11 @@ MTR_PROVISIONALLY_AVAILABLE endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_PROVISIONALLY_AVAILABLE; +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_PROVISIONALLY_AVAILABLE; + - (NSDictionary * _Nullable)readAttributeMeasuredValueWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; - (NSDictionary * _Nullable)readAttributeMinMeasuredValueWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; @@ -4131,6 +4473,11 @@ MTR_PROVISIONALLY_AVAILABLE endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_PROVISIONALLY_AVAILABLE; +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_PROVISIONALLY_AVAILABLE; + - (NSDictionary * _Nullable)readAttributeMeasuredValueWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; - (NSDictionary * _Nullable)readAttributeMinMeasuredValueWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; @@ -4185,6 +4532,11 @@ MTR_PROVISIONALLY_AVAILABLE endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_PROVISIONALLY_AVAILABLE; +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_PROVISIONALLY_AVAILABLE; + - (NSDictionary * _Nullable)readAttributeMeasuredValueWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; - (NSDictionary * _Nullable)readAttributeMinMeasuredValueWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; @@ -4239,6 +4591,11 @@ MTR_PROVISIONALLY_AVAILABLE endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_PROVISIONALLY_AVAILABLE; +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_PROVISIONALLY_AVAILABLE; + - (NSDictionary * _Nullable)readAttributeMeasuredValueWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; - (NSDictionary * _Nullable)readAttributeMinMeasuredValueWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; @@ -4293,6 +4650,11 @@ MTR_PROVISIONALLY_AVAILABLE endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_PROVISIONALLY_AVAILABLE; +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_PROVISIONALLY_AVAILABLE; + - (NSDictionary * _Nullable)readAttributeMeasuredValueWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; - (NSDictionary * _Nullable)readAttributeMinMeasuredValueWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; @@ -4347,6 +4709,11 @@ MTR_PROVISIONALLY_AVAILABLE endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_PROVISIONALLY_AVAILABLE; +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_PROVISIONALLY_AVAILABLE; + - (NSDictionary * _Nullable)readAttributeMeasuredValueWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; - (NSDictionary * _Nullable)readAttributeMinMeasuredValueWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; @@ -4401,6 +4768,11 @@ MTR_PROVISIONALLY_AVAILABLE endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_PROVISIONALLY_AVAILABLE; +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_PROVISIONALLY_AVAILABLE; + - (NSDictionary * _Nullable)readAttributeMeasuredValueWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; - (NSDictionary * _Nullable)readAttributeMinMeasuredValueWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; @@ -4455,6 +4827,11 @@ MTR_PROVISIONALLY_AVAILABLE endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_PROVISIONALLY_AVAILABLE; +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_PROVISIONALLY_AVAILABLE; + - (NSDictionary * _Nullable)readAttributeMeasuredValueWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; - (NSDictionary * _Nullable)readAttributeMinMeasuredValueWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; @@ -4509,6 +4886,11 @@ MTR_PROVISIONALLY_AVAILABLE endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_PROVISIONALLY_AVAILABLE; +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_PROVISIONALLY_AVAILABLE; + - (NSDictionary * _Nullable)readAttributeMeasuredValueWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; - (NSDictionary * _Nullable)readAttributeMinMeasuredValueWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; @@ -4563,6 +4945,11 @@ MTR_PROVISIONALLY_AVAILABLE endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_PROVISIONALLY_AVAILABLE; +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_PROVISIONALLY_AVAILABLE; + - (NSDictionary * _Nullable)readAttributeMeasuredValueWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; - (NSDictionary * _Nullable)readAttributeMinMeasuredValueWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; @@ -4617,6 +5004,11 @@ MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (NSDictionary * _Nullable)readAttributeMACAddressWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (NSDictionary * _Nullable)readAttributeGeneratedCommandListWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); @@ -4651,6 +5043,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (void)changeChannelWithParams:(MTRChannelClusterChangeChannelParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(void (^)(MTRChannelClusterChangeChannelResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)changeChannelByNumberWithParams:(MTRChannelClusterChangeChannelByNumberParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)skipChannelWithParams:(MTRChannelClusterSkipChannelParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); @@ -4693,6 +5090,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (void)navigateTargetWithParams:(MTRTargetNavigatorClusterNavigateTargetParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(void (^)(MTRTargetNavigatorClusterNavigateTargetResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (NSDictionary * _Nullable)readAttributeTargetListWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); @@ -4731,6 +5133,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (void)playWithParams:(MTRMediaPlaybackClusterPlayParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(void (^)(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)playWithExpectedValues:(NSArray *> * _Nullable)expectedValues expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(void (^)(MTRMediaPlaybackClusterPlaybackResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); @@ -4805,6 +5212,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (void)selectInputWithParams:(MTRMediaInputClusterSelectInputParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)showInputStatusWithParams:(MTRMediaInputClusterShowInputStatusParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)showInputStatusWithExpectedValues:(NSArray *> * _Nullable)expectedValues expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion @@ -4850,6 +5262,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (void)sleepWithParams:(MTRLowPowerClusterSleepParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)sleepWithExpectedValues:(NSArray *> * _Nullable)expectedValues expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); @@ -4886,6 +5303,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (void)sendKeyWithParams:(MTRKeypadInputClusterSendKeyParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(void (^)(MTRKeypadInputClusterSendKeyResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (NSDictionary * _Nullable)readAttributeGeneratedCommandListWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); @@ -4920,6 +5342,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (void)launchContentWithParams:(MTRContentLauncherClusterLaunchContentParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(void (^)(MTRContentLauncherClusterLauncherResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)launchURLWithParams:(MTRContentLauncherClusterLaunchURLParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(void (^)(MTRContentLauncherClusterLauncherResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); @@ -4961,6 +5388,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (void)selectOutputWithParams:(MTRAudioOutputClusterSelectOutputParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)renameOutputWithParams:(MTRAudioOutputClusterRenameOutputParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); @@ -5000,6 +5432,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (void)launchAppWithParams:(MTRApplicationLauncherClusterLaunchAppParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(void (^)(MTRApplicationLauncherClusterLauncherResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)stopAppWithParams:(MTRApplicationLauncherClusterStopAppParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(void (^)(MTRApplicationLauncherClusterLauncherResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)hideAppWithParams:(MTRApplicationLauncherClusterHideAppParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(void (^)(MTRApplicationLauncherClusterLauncherResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); @@ -5042,6 +5479,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (NSDictionary * _Nullable)readAttributeVendorNameWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); - (NSDictionary * _Nullable)readAttributeVendorIDWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); @@ -5090,6 +5532,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (void)getSetupPINWithParams:(MTRAccountLoginClusterGetSetupPINParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(void (^)(MTRAccountLoginClusterGetSetupPINResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)loginWithParams:(MTRAccountLoginClusterLoginParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)logoutWithParams:(MTRAccountLoginClusterLogoutParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); @@ -5128,6 +5575,11 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (void)getProfileInfoCommandWithParams:(MTRElectricalMeasurementClusterGetProfileInfoCommandParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)getProfileInfoCommandWithExpectedValues:(NSArray *> * _Nullable)expectedValues expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); @@ -5437,6 +5889,11 @@ MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)) endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_NEWLY_AVAILABLE; + - (void)testWithParams:(MTRUnitTestingClusterTestParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)testWithExpectedValues:(NSArray *> * _Nullable)expectedValues expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); @@ -5830,6 +6287,11 @@ MTR_PROVISIONALLY_AVAILABLE endpointID:(NSNumber *)endpointID queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_PROVISIONALLY_AVAILABLE; +/** + * The device this cluster object is associated with. + */ +@property (nonatomic, readonly) MTRDevice * device MTR_PROVISIONALLY_AVAILABLE; + - (void)pingWithParams:(MTRSampleMEIClusterPingParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; - (void)pingWithExpectedValues:(NSArray *> * _Nullable)expectedValues expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRClusters.mm b/src/darwin/Framework/CHIP/zap-generated/MTRClusters.mm index a6d601de99ecaf..3c33dee7774b9e 100644 --- a/src/darwin/Framework/CHIP/zap-generated/MTRClusters.mm +++ b/src/darwin/Framework/CHIP/zap-generated/MTRClusters.mm @@ -7474,22 +7474,6 @@ - (void)changeToModeWithParams:(MTRRVCRunModeClusterChangeToModeParams *)params return [self.device readAttributeWithEndpointID:@(self.endpoint) clusterID:@(MTRClusterIDTypeRVCRunModeID) attributeID:@(MTRAttributeIDTypeClusterRVCRunModeAttributeCurrentModeID) params:params]; } -- (NSDictionary * _Nullable)readAttributeStartUpModeWithParams:(MTRReadParams * _Nullable)params -{ - return [self.device readAttributeWithEndpointID:@(self.endpoint) clusterID:@(MTRClusterIDTypeRVCRunModeID) attributeID:@(MTRAttributeIDTypeClusterRVCRunModeAttributeStartUpModeID) params:params]; -} - -- (void)writeAttributeStartUpModeWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs -{ - [self writeAttributeStartUpModeWithValue:dataValueDictionary expectedValueInterval:expectedValueIntervalMs params:nil]; -} -- (void)writeAttributeStartUpModeWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs params:(MTRWriteParams * _Nullable)params -{ - NSNumber * timedWriteTimeout = params.timedWriteTimeout; - - [self.device writeAttributeWithEndpointID:@(self.endpoint) clusterID:@(MTRClusterIDTypeRVCRunModeID) attributeID:@(MTRAttributeIDTypeClusterRVCRunModeAttributeStartUpModeID) value:dataValueDictionary expectedValueInterval:expectedValueIntervalMs timedWriteTimeout:timedWriteTimeout]; -} - - (NSDictionary * _Nullable)readAttributeOnModeWithParams:(MTRReadParams * _Nullable)params { return [self.device readAttributeWithEndpointID:@(self.endpoint) clusterID:@(MTRClusterIDTypeRVCRunModeID) attributeID:@(MTRAttributeIDTypeClusterRVCRunModeAttributeOnModeID) params:params]; @@ -7589,22 +7573,6 @@ - (void)changeToModeWithParams:(MTRRVCCleanModeClusterChangeToModeParams *)param return [self.device readAttributeWithEndpointID:@(self.endpoint) clusterID:@(MTRClusterIDTypeRVCCleanModeID) attributeID:@(MTRAttributeIDTypeClusterRVCCleanModeAttributeCurrentModeID) params:params]; } -- (NSDictionary * _Nullable)readAttributeStartUpModeWithParams:(MTRReadParams * _Nullable)params -{ - return [self.device readAttributeWithEndpointID:@(self.endpoint) clusterID:@(MTRClusterIDTypeRVCCleanModeID) attributeID:@(MTRAttributeIDTypeClusterRVCCleanModeAttributeStartUpModeID) params:params]; -} - -- (void)writeAttributeStartUpModeWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs -{ - [self writeAttributeStartUpModeWithValue:dataValueDictionary expectedValueInterval:expectedValueIntervalMs params:nil]; -} -- (void)writeAttributeStartUpModeWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs params:(MTRWriteParams * _Nullable)params -{ - NSNumber * timedWriteTimeout = params.timedWriteTimeout; - - [self.device writeAttributeWithEndpointID:@(self.endpoint) clusterID:@(MTRClusterIDTypeRVCCleanModeID) attributeID:@(MTRAttributeIDTypeClusterRVCCleanModeAttributeStartUpModeID) value:dataValueDictionary expectedValueInterval:expectedValueIntervalMs timedWriteTimeout:timedWriteTimeout]; -} - - (NSDictionary * _Nullable)readAttributeOnModeWithParams:(MTRReadParams * _Nullable)params { return [self.device readAttributeWithEndpointID:@(self.endpoint) clusterID:@(MTRClusterIDTypeRVCCleanModeID) attributeID:@(MTRAttributeIDTypeClusterRVCCleanModeAttributeOnModeID) params:params]; diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRClusters_Internal.h b/src/darwin/Framework/CHIP/zap-generated/MTRClusters_Internal.h index 25b5147c8b8801..e4df07a6f1ea53 100644 --- a/src/darwin/Framework/CHIP/zap-generated/MTRClusters_Internal.h +++ b/src/darwin/Framework/CHIP/zap-generated/MTRClusters_Internal.h @@ -21,378 +21,5 @@ #import "MTRDevice.h" #import "MTRDevice_Internal.h" -@interface MTRClusterIdentify () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterGroups () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterScenes () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterOnOff () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterOnOffSwitchConfiguration () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterLevelControl () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterBinaryInputBasic () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterPulseWidthModulation () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterDescriptor () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterBinding () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterAccessControl () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterActions () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterBasicInformation () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterOTASoftwareUpdateProvider () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterOTASoftwareUpdateRequestor () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterLocalizationConfiguration () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterTimeFormatLocalization () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterUnitLocalization () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterPowerSourceConfiguration () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterPowerSource () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterGeneralCommissioning () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterNetworkCommissioning () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterDiagnosticLogs () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterGeneralDiagnostics () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterSoftwareDiagnostics () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterThreadNetworkDiagnostics () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterWiFiNetworkDiagnostics () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterEthernetNetworkDiagnostics () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterTimeSynchronization () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterBridgedDeviceBasicInformation () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterSwitch () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterAdministratorCommissioning () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterOperationalCredentials () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterGroupKeyManagement () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterFixedLabel () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterUserLabel () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterBooleanState () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterICDManagement () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterModeSelect () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterLaundryWasherMode () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterRefrigeratorAndTemperatureControlledCabinetMode () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterLaundryWasherControls () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterRVCRunMode () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterRVCCleanMode () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterTemperatureControl () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterRefrigeratorAlarm () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterDishwasherMode () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterAirQuality () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterSmokeCOAlarm () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterDishwasherAlarm () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterOperationalState () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterRVCOperationalState () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterHEPAFilterMonitoring () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterActivatedCarbonFilterMonitoring () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterDoorLock () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterWindowCovering () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterBarrierControl () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterPumpConfigurationAndControl () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterThermostat () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterFanControl () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterThermostatUserInterfaceConfiguration () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterColorControl () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterBallastConfiguration () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterIlluminanceMeasurement () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterTemperatureMeasurement () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterPressureMeasurement () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterFlowMeasurement () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterRelativeHumidityMeasurement () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterOccupancySensing () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterCarbonMonoxideConcentrationMeasurement () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterCarbonDioxideConcentrationMeasurement () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterNitrogenDioxideConcentrationMeasurement () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterOzoneConcentrationMeasurement () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterPM25ConcentrationMeasurement () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterFormaldehydeConcentrationMeasurement () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterPM1ConcentrationMeasurement () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterPM10ConcentrationMeasurement () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterTotalVolatileOrganicCompoundsConcentrationMeasurement () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterRadonConcentrationMeasurement () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterWakeOnLAN () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterChannel () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterTargetNavigator () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterMediaPlayback () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterMediaInput () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterLowPower () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterKeypadInput () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterContentLauncher () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterAudioOutput () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterApplicationLauncher () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterApplicationBasic () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterAccountLogin () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterElectricalMeasurement () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterUnitTesting () -@property (nonatomic, readonly) MTRDevice * device; -@end - -@interface MTRClusterSampleMEI () -@property (nonatomic, readonly) MTRDevice * device; -@end +// Nothing here for now, but leaving this file in place in case we need to add +// something. diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRDeviceTypeMetadata.mm b/src/darwin/Framework/CHIP/zap-generated/MTRDeviceTypeMetadata.mm new file mode 100644 index 00000000000000..1fe61e9f7b8839 --- /dev/null +++ b/src/darwin/Framework/CHIP/zap-generated/MTRDeviceTypeMetadata.mm @@ -0,0 +1,103 @@ +/* + * + * 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. + */ + +#import "MTRDeviceTypeMetadata.h" + +using namespace chip; + +namespace { +enum class DeviceTypeClass { + Utility, + Simple, + Node, // Might not be a real class, but we have it for Root Node for now. + // If new classes get added, plase audit MTRIsKnownUtilityDeviceType below. +}; + +struct DeviceTypeData { + DeviceTypeId id; + DeviceTypeClass deviceClass; + const char * name; +}; + +constexpr DeviceTypeData knownDeviceTypes[] = { + { 0x0000000A, DeviceTypeClass::Simple, "Matter Door Lock" }, + { 0x0000000B, DeviceTypeClass::Simple, "Matter Door Lock Controller" }, + { 0x0000000E, DeviceTypeClass::Utility, "Matter Aggregator" }, + { 0x0000000F, DeviceTypeClass::Simple, "Matter Generic Switch" }, + { 0x00000011, DeviceTypeClass::Utility, "Matter Power Source" }, + { 0x00000012, DeviceTypeClass::Utility, "Matter OTA Requestor" }, + { 0x00000013, DeviceTypeClass::Utility, "Matter Bridged Device" }, + { 0x00000014, DeviceTypeClass::Utility, "Matter OTA Provider" }, + { 0x00000015, DeviceTypeClass::Simple, "Matter Contact Sensor" }, + { 0x00000016, DeviceTypeClass::Node, "Matter Root Node" }, + { 0x00000022, DeviceTypeClass::Simple, "Matter Speaker" }, + { 0x00000023, DeviceTypeClass::Simple, "Matter Casting Video Player" }, + { 0x00000024, DeviceTypeClass::Simple, "Matter Content App" }, + { 0x00000027, DeviceTypeClass::Simple, "Matter Mode Select" }, + { 0x00000028, DeviceTypeClass::Simple, "Matter Basic Video Player" }, + { 0x00000029, DeviceTypeClass::Simple, "Matter Casting Video Client" }, + { 0x0000002A, DeviceTypeClass::Simple, "Matter Video Remote Control" }, + { 0x0000002B, DeviceTypeClass::Simple, "Matter Fan" }, + { 0x0000002C, DeviceTypeClass::Simple, "Matter Air Quality Sensor" }, + { 0x0000002D, DeviceTypeClass::Simple, "Matter Air Purifier" }, + { 0x00000070, DeviceTypeClass::Simple, "Matter Refrigerator" }, + { 0x00000071, DeviceTypeClass::Simple, "Matter Temperature Controlled Cabinet" }, + { 0x00000072, DeviceTypeClass::Simple, "Matter Room Air Conditioner" }, + { 0x00000073, DeviceTypeClass::Simple, "Matter Laundry Washer" }, + { 0x00000074, DeviceTypeClass::Simple, "Matter Robotic Vacuum Cleaner" }, + { 0x00000075, DeviceTypeClass::Simple, "Matter Dishwasher" }, + { 0x00000076, DeviceTypeClass::Simple, "Matter Smoke CO Alarm" }, + { 0x00000100, DeviceTypeClass::Simple, "Matter On/Off Light" }, + { 0x00000101, DeviceTypeClass::Simple, "Matter Dimmable Light" }, + { 0x00000103, DeviceTypeClass::Simple, "Matter On/Off Light Switch" }, + { 0x00000104, DeviceTypeClass::Simple, "Matter Dimmer Switch" }, + { 0x00000105, DeviceTypeClass::Simple, "Matter Color Dimmer Switch" }, + { 0x00000106, DeviceTypeClass::Simple, "Matter Light Sensor" }, + { 0x00000107, DeviceTypeClass::Simple, "Matter Occupancy Sensor" }, + { 0x0000010A, DeviceTypeClass::Simple, "Matter On/Off Plug-in Unit" }, + { 0x0000010B, DeviceTypeClass::Simple, "Matter Dimmable Plug-in Unit" }, + { 0x0000010C, DeviceTypeClass::Simple, "Matter Color Temperature Light" }, + { 0x0000010D, DeviceTypeClass::Simple, "Matter Extended Color Light" }, + { 0x00000202, DeviceTypeClass::Simple, "Matter Window Covering" }, + { 0x00000203, DeviceTypeClass::Simple, "Matter Window Covering Controller" }, + { 0x00000300, DeviceTypeClass::Simple, "Matter Heating/Cooling Unit" }, + { 0x00000301, DeviceTypeClass::Simple, "Matter Thermostat" }, + { 0x00000302, DeviceTypeClass::Simple, "Matter Temperature Sensor" }, + { 0x00000303, DeviceTypeClass::Simple, "Matter Pump" }, + { 0x00000304, DeviceTypeClass::Simple, "Matter Pump Controller" }, + { 0x00000305, DeviceTypeClass::Simple, "Matter Pressure Sensor" }, + { 0x00000306, DeviceTypeClass::Simple, "Matter Flow Sensor" }, + { 0x00000307, DeviceTypeClass::Simple, "Matter Humidity Sensor" }, + { 0x00000840, DeviceTypeClass::Simple, "Matter Control Bridge" }, + { 0x00000850, DeviceTypeClass::Simple, "Matter On/Off Sensor" }, +}; + +static_assert(ExtractVendorFromMEI(0xFFF10001) != 0, "Must have class defined for \"Matter Orphan Clusters\" if it's a standard device type"); +static_assert(ExtractVendorFromMEI(0xFFF10002) != 0, "Must have class defined for \"Matter Secondary Network Commissioning Device Type\" if it's a standard device type"); +static_assert(ExtractVendorFromMEI(0xFFF10003) != 0, "Must have class defined for \"Matter All-clusters-app Server Example\" if it's a standard device type"); + +} // anonymous namespace + +BOOL MTRIsKnownUtilityDeviceType(DeviceTypeId aDeviceTypeId) +{ + for (auto & deviceType : knownDeviceTypes) { + if (deviceType.id == aDeviceTypeId) { + return deviceType.deviceClass != DeviceTypeClass::Simple; + } + } + return NO; +} diff --git a/src/darwin/Framework/CHIPTests/MTRCommissionableBrowserTests.m b/src/darwin/Framework/CHIPTests/MTRCommissionableBrowserTests.m index 8c9eb603d08518..2acd1c2d379d83 100644 --- a/src/darwin/Framework/CHIPTests/MTRCommissionableBrowserTests.m +++ b/src/darwin/Framework/CHIPTests/MTRCommissionableBrowserTests.m @@ -36,7 +36,7 @@ static MTRDeviceController * sController = nil; @interface DeviceScannerDelegate : NSObject -@property (nonatomic) XCTestExpectation * expectation; +@property (nonatomic, nullable) XCTestExpectation * expectation; @property (nonatomic) NSNumber * resultsCount; - (instancetype)initWithExpectation:(XCTestExpectation *)expectation; @@ -56,8 +56,26 @@ - (instancetype)initWithExpectation:(XCTestExpectation *)expectation return self; } +- (instancetype)init +{ + if (!(self = [super init])) { + return nil; + } + + _resultsCount = 0; + _expectation = nil; + return self; +} + - (void)controller:(MTRDeviceController *)controller didFindCommissionableDevice:(MTRCommissionableBrowserResult *)device { + if (self.expectation == nil) { + // We are not actually supposed to be looking at results; don't do it, + // because we may be starting/stopping browse multiple times and seeing + // odd numbers of results. + return; + } + _resultsCount = @(_resultsCount.unsignedLongValue + 1); if ([_resultsCount isEqual:@(kExpectedDiscoveredDevicesCount)]) { [self.expectation fulfill]; diff --git a/src/darwin/Framework/Matter.xcodeproj/project.pbxproj b/src/darwin/Framework/Matter.xcodeproj/project.pbxproj index 2b88a47e65e1da..fc995f1ad61efa 100644 --- a/src/darwin/Framework/Matter.xcodeproj/project.pbxproj +++ b/src/darwin/Framework/Matter.xcodeproj/project.pbxproj @@ -193,6 +193,8 @@ 51E95DFB2A78443C00A434F0 /* MTRSessionResumptionStorageBridge.h in Headers */ = {isa = PBXBuildFile; fileRef = 51E95DF92A78443C00A434F0 /* MTRSessionResumptionStorageBridge.h */; }; 51E95DFC2A78443C00A434F0 /* MTRSessionResumptionStorageBridge.mm in Sources */ = {isa = PBXBuildFile; fileRef = 51E95DFA2A78443C00A434F0 /* MTRSessionResumptionStorageBridge.mm */; }; 51EF279F2A2A3EB100E33F75 /* MTRBackwardsCompatShims.h in Headers */ = {isa = PBXBuildFile; fileRef = 51EF279E2A2A3EB100E33F75 /* MTRBackwardsCompatShims.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 51F522682AE70734000C4050 /* MTRDeviceTypeMetadata.mm in Sources */ = {isa = PBXBuildFile; fileRef = 51F522672AE70734000C4050 /* MTRDeviceTypeMetadata.mm */; }; + 51F5226A2AE70761000C4050 /* MTRDeviceTypeMetadata.h in Headers */ = {isa = PBXBuildFile; fileRef = 51F522692AE70761000C4050 /* MTRDeviceTypeMetadata.h */; }; 51FE72352ACDB40000437032 /* MTRCommandPayloads_Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 51FE72342ACDB40000437032 /* MTRCommandPayloads_Internal.h */; }; 51FE723F2ACDEF3E00437032 /* MTRCommandPayloadExtensions_Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 51FE723E2ACDEF3E00437032 /* MTRCommandPayloadExtensions_Internal.h */; }; 5A60370827EA1FF60020DB79 /* MTRClusterStateCacheContainer+XPC.h in Headers */ = {isa = PBXBuildFile; fileRef = 5A60370727EA1FF60020DB79 /* MTRClusterStateCacheContainer+XPC.h */; }; @@ -558,6 +560,9 @@ 51E95DF92A78443C00A434F0 /* MTRSessionResumptionStorageBridge.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTRSessionResumptionStorageBridge.h; sourceTree = ""; }; 51E95DFA2A78443C00A434F0 /* MTRSessionResumptionStorageBridge.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MTRSessionResumptionStorageBridge.mm; sourceTree = ""; }; 51EF279E2A2A3EB100E33F75 /* MTRBackwardsCompatShims.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTRBackwardsCompatShims.h; sourceTree = ""; }; + 51F522662AE7071E000C4050 /* MTRDeviceTypeMetadata-src.zapt */ = {isa = PBXFileReference; lastKnownFileType = text; path = "MTRDeviceTypeMetadata-src.zapt"; sourceTree = ""; }; + 51F522672AE70734000C4050 /* MTRDeviceTypeMetadata.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MTRDeviceTypeMetadata.mm; sourceTree = ""; }; + 51F522692AE70761000C4050 /* MTRDeviceTypeMetadata.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTRDeviceTypeMetadata.h; sourceTree = ""; }; 51FE72342ACDB40000437032 /* MTRCommandPayloads_Internal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTRCommandPayloads_Internal.h; sourceTree = ""; }; 51FE723E2ACDEF3E00437032 /* MTRCommandPayloadExtensions_Internal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTRCommandPayloadExtensions_Internal.h; sourceTree = ""; }; 5A60370727EA1FF60020DB79 /* MTRClusterStateCacheContainer+XPC.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "MTRClusterStateCacheContainer+XPC.h"; sourceTree = ""; }; @@ -996,6 +1001,7 @@ 51B22C252740CB32008D5055 /* MTRStructsObjc.mm */, 5178E67D2AE098210069DF72 /* MTRCommandTimedCheck.mm */, 51B6C5C52AD85B3D003F4D3A /* MTRClusters.swift */, + 51F522672AE70734000C4050 /* MTRDeviceTypeMetadata.mm */, ); path = "zap-generated"; sourceTree = ""; @@ -1038,6 +1044,7 @@ 3D843722294984AF0070D20A /* MTRStructsObjc-src.zapt */, 5178E6592AE097A20069DF72 /* MTRCommandPayloads_Internal.zapt */, 5178E65A2AE097A20069DF72 /* MTRCommandTimedCheck-src.zapt */, + 51F522662AE7071E000C4050 /* MTRDeviceTypeMetadata-src.zapt */, 5178E65B2AE097B30069DF72 /* availability.yaml */, 3D843729294984AF0070D20A /* partials */, ); @@ -1187,6 +1194,7 @@ 5A6FEC9527B5983000F25F42 /* MTRDeviceControllerXPCConnection.mm */, 5A6FEC8B27B5609C00F25F42 /* MTRDeviceOverXPC.h */, 5A6FEC9727B5C6AF00F25F42 /* MTRDeviceOverXPC.mm */, + 51F522692AE70761000C4050 /* MTRDeviceTypeMetadata.h */, 5129BCFC26A9EE3300122DDF /* MTRError.h */, B2E0D7AB245B0B5C003C5B48 /* MTRError_Internal.h */, B2E0D7AA245B0B5C003C5B48 /* MTRError.mm */, @@ -1483,6 +1491,7 @@ 5A7947E527C0129F00434CF2 /* MTRDeviceController+XPC.h in Headers */, 51E95DFB2A78443C00A434F0 /* MTRSessionResumptionStorageBridge.h in Headers */, B2E0D7B4245B0B5C003C5B48 /* MTRError_Internal.h in Headers */, + 51F5226A2AE70761000C4050 /* MTRDeviceTypeMetadata.h in Headers */, 5146544B2A72F9F500904E61 /* MTRDemuxingStorage.h in Headers */, 1EDCE545289049A100E41EC9 /* MTROTAHeader.h in Headers */, ); @@ -1728,6 +1737,7 @@ 998F287126D56940001846C6 /* MTRP256KeypairBridge.mm in Sources */, 5136661428067D550025EDAE /* MTRDeviceControllerFactory.mm in Sources */, 51B22C2A2740CB47008D5055 /* MTRCommandPayloadsObjc.mm in Sources */, + 51F522682AE70734000C4050 /* MTRDeviceTypeMetadata.mm in Sources */, 75B765C32A1D82D30014719B /* MTRAttributeSpecifiedCheck.mm in Sources */, AF5F90FF2878D351005503FA /* MTROTAProviderDelegateBridge.mm in Sources */, 51E95DFC2A78443C00A434F0 /* MTRSessionResumptionStorageBridge.mm in Sources */, diff --git a/src/platform/bouffalolab/common/Logging.cpp b/src/platform/bouffalolab/common/Logging.cpp index 93157e32d0ec21..bc773c530d6bdc 100644 --- a/src/platform/bouffalolab/common/Logging.cpp +++ b/src/platform/bouffalolab/common/Logging.cpp @@ -129,3 +129,20 @@ extern "C" void otPlatLog(int aLogLevel, int aLogRegion, const char * aFormat, . va_end(v); } #endif + +#if CHIP_SYSTEM_CONFIG_USE_LWIP +/** + * LwIP log output function. + */ +extern "C" void LwIPLog(const char * msg, ...) +{ + va_list v; + uint8_t category = chip::Logging::kLogCategory_Error; + + va_start(v, msg); + + chip::Logging::Platform::LogV("LWIP", category, msg, v); + + va_end(v); +} +#endif // #if CHIP_SYSTEM_CONFIG_USE_LWIP diff --git a/src/tools/chip-cert/GeneralUtils.cpp b/src/tools/chip-cert/GeneralUtils.cpp index bdcb9774fb006b..fce285d678acbf 100644 --- a/src/tools/chip-cert/GeneralUtils.cpp +++ b/src/tools/chip-cert/GeneralUtils.cpp @@ -340,8 +340,8 @@ bool WriteDataIntoFile(const char * fileName, const uint8_t * data, size_t dataL ExitNow(res = false); } - // Add new line if the output is stdout - if ((strcmp(fileName, "-") == 0) && (fwrite("\n", 1, 1, file) != 1)) + // Add new line if the output is to stdout in a text format + if ((strcmp(fileName, "-") == 0) && (dataFmt != kDataFormat_Raw) && (fwrite("\n", 1, 1, file) != 1)) { fprintf(stderr, "Unable to write to %s: %s\n", fileName, strerror(ferror(file) ? errno : ENOSPC)); ExitNow(res = false); diff --git a/third_party/pigweed/repo b/third_party/pigweed/repo index fbb318aff82edf..90d97fa3b4292c 160000 --- a/third_party/pigweed/repo +++ b/third_party/pigweed/repo @@ -1 +1 @@ -Subproject commit fbb318aff82edfe8bfcc7312661fe2c9e4db49ff +Subproject commit 90d97fa3b4292c39074e6f2b94dbd1cffa6ee318 diff --git a/zzz_generated/app-common/app-common/zap-generated/cluster-objects.cpp b/zzz_generated/app-common/app-common/zap-generated/cluster-objects.cpp index ddb5e4da08ad74..c59f529bde4a5f 100644 --- a/zzz_generated/app-common/app-common/zap-generated/cluster-objects.cpp +++ b/zzz_generated/app-common/app-common/zap-generated/cluster-objects.cpp @@ -10976,8 +10976,6 @@ CHIP_ERROR TypeInfo::DecodableType::Decode(TLV::TLVReader & reader, const Concre return DataModel::Decode(reader, supportedModes); case Attributes::CurrentMode::TypeInfo::GetAttributeId(): return DataModel::Decode(reader, currentMode); - case Attributes::StartUpMode::TypeInfo::GetAttributeId(): - return DataModel::Decode(reader, startUpMode); case Attributes::OnMode::TypeInfo::GetAttributeId(): return DataModel::Decode(reader, onMode); case Attributes::GeneratedCommandList::TypeInfo::GetAttributeId(): @@ -11089,8 +11087,6 @@ CHIP_ERROR TypeInfo::DecodableType::Decode(TLV::TLVReader & reader, const Concre return DataModel::Decode(reader, supportedModes); case Attributes::CurrentMode::TypeInfo::GetAttributeId(): return DataModel::Decode(reader, currentMode); - case Attributes::StartUpMode::TypeInfo::GetAttributeId(): - return DataModel::Decode(reader, startUpMode); case Attributes::OnMode::TypeInfo::GetAttributeId(): return DataModel::Decode(reader, onMode); case Attributes::GeneratedCommandList::TypeInfo::GetAttributeId(): diff --git a/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h b/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h index 62e1ea48e51715..ad844cd6cb67c7 100644 --- a/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h +++ b/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h @@ -15057,18 +15057,6 @@ struct TypeInfo static constexpr bool MustUseTimedWrite() { return false; } }; } // namespace CurrentMode -namespace StartUpMode { -struct TypeInfo -{ - using Type = chip::app::DataModel::Nullable; - using DecodableType = chip::app::DataModel::Nullable; - using DecodableArgType = const chip::app::DataModel::Nullable &; - - static constexpr ClusterId GetClusterId() { return Clusters::RvcRunMode::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::StartUpMode::Id; } - static constexpr bool MustUseTimedWrite() { return false; } -}; -} // namespace StartUpMode namespace OnMode { struct TypeInfo { @@ -15128,7 +15116,6 @@ struct TypeInfo Attributes::SupportedModes::TypeInfo::DecodableType supportedModes; Attributes::CurrentMode::TypeInfo::DecodableType currentMode = static_cast(0); - Attributes::StartUpMode::TypeInfo::DecodableType startUpMode; Attributes::OnMode::TypeInfo::DecodableType onMode; Attributes::GeneratedCommandList::TypeInfo::DecodableType generatedCommandList; Attributes::AcceptedCommandList::TypeInfo::DecodableType acceptedCommandList; @@ -15259,18 +15246,6 @@ struct TypeInfo static constexpr bool MustUseTimedWrite() { return false; } }; } // namespace CurrentMode -namespace StartUpMode { -struct TypeInfo -{ - using Type = chip::app::DataModel::Nullable; - using DecodableType = chip::app::DataModel::Nullable; - using DecodableArgType = const chip::app::DataModel::Nullable &; - - static constexpr ClusterId GetClusterId() { return Clusters::RvcCleanMode::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::StartUpMode::Id; } - static constexpr bool MustUseTimedWrite() { return false; } -}; -} // namespace StartUpMode namespace OnMode { struct TypeInfo { @@ -15330,7 +15305,6 @@ struct TypeInfo Attributes::SupportedModes::TypeInfo::DecodableType supportedModes; Attributes::CurrentMode::TypeInfo::DecodableType currentMode = static_cast(0); - Attributes::StartUpMode::TypeInfo::DecodableType startUpMode; Attributes::OnMode::TypeInfo::DecodableType onMode; Attributes::GeneratedCommandList::TypeInfo::DecodableType generatedCommandList; Attributes::AcceptedCommandList::TypeInfo::DecodableType acceptedCommandList; diff --git a/zzz_generated/app-common/app-common/zap-generated/ids/Attributes.h b/zzz_generated/app-common/app-common/zap-generated/ids/Attributes.h index 284259e3ffdcdf..c636d2caa06ee1 100644 --- a/zzz_generated/app-common/app-common/zap-generated/ids/Attributes.h +++ b/zzz_generated/app-common/app-common/zap-generated/ids/Attributes.h @@ -2640,10 +2640,6 @@ namespace CurrentMode { static constexpr AttributeId Id = 0x00000001; } // namespace CurrentMode -namespace StartUpMode { -static constexpr AttributeId Id = 0x00000002; -} // namespace StartUpMode - namespace OnMode { static constexpr AttributeId Id = 0x00000003; } // namespace OnMode @@ -2686,10 +2682,6 @@ namespace CurrentMode { static constexpr AttributeId Id = 0x00000001; } // namespace CurrentMode -namespace StartUpMode { -static constexpr AttributeId Id = 0x00000002; -} // namespace StartUpMode - namespace OnMode { static constexpr AttributeId Id = 0x00000003; } // namespace OnMode diff --git a/zzz_generated/chip-tool/zap-generated/cluster/Commands.h b/zzz_generated/chip-tool/zap-generated/cluster/Commands.h index faae4838e7b025..f74428cf456c69 100644 --- a/zzz_generated/chip-tool/zap-generated/cluster/Commands.h +++ b/zzz_generated/chip-tool/zap-generated/cluster/Commands.h @@ -4833,7 +4833,6 @@ class RefrigeratorAndTemperatureControlledCabinetModeChangeToMode : public Clust | Attributes: | | | * SupportedModes | 0x0000 | | * CurrentMode | 0x0001 | -| * StartUpMode | 0x0002 | | * OnMode | 0x0003 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | @@ -4891,7 +4890,6 @@ class RvcRunModeChangeToMode : public ClusterCommand | Attributes: | | | * SupportedModes | 0x0000 | | * CurrentMode | 0x0001 | -| * StartUpMode | 0x0002 | | * OnMode | 0x0003 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | @@ -15349,7 +15347,6 @@ void registerClusterRvcRunMode(Commands & commands, CredentialIssuerCommands * c make_unique(Id, credsIssuerConfig), // make_unique(Id, "supported-modes", Attributes::SupportedModes::Id, credsIssuerConfig), // make_unique(Id, "current-mode", Attributes::CurrentMode::Id, credsIssuerConfig), // - make_unique(Id, "start-up-mode", Attributes::StartUpMode::Id, credsIssuerConfig), // make_unique(Id, "on-mode", Attributes::OnMode::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // @@ -15363,8 +15360,6 @@ void registerClusterRvcRunMode(Commands & commands, CredentialIssuerCommands * c Id, "supported-modes", Attributes::SupportedModes::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "current-mode", 0, UINT8_MAX, Attributes::CurrentMode::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // - make_unique>>( - Id, "start-up-mode", 0, UINT8_MAX, Attributes::StartUpMode::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>(Id, "on-mode", 0, UINT8_MAX, Attributes::OnMode::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( @@ -15383,7 +15378,6 @@ void registerClusterRvcRunMode(Commands & commands, CredentialIssuerCommands * c make_unique(Id, credsIssuerConfig), // make_unique(Id, "supported-modes", Attributes::SupportedModes::Id, credsIssuerConfig), // make_unique(Id, "current-mode", Attributes::CurrentMode::Id, credsIssuerConfig), // - make_unique(Id, "start-up-mode", Attributes::StartUpMode::Id, credsIssuerConfig), // make_unique(Id, "on-mode", Attributes::OnMode::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // @@ -15418,7 +15412,6 @@ void registerClusterRvcCleanMode(Commands & commands, CredentialIssuerCommands * make_unique(Id, credsIssuerConfig), // make_unique(Id, "supported-modes", Attributes::SupportedModes::Id, credsIssuerConfig), // make_unique(Id, "current-mode", Attributes::CurrentMode::Id, credsIssuerConfig), // - make_unique(Id, "start-up-mode", Attributes::StartUpMode::Id, credsIssuerConfig), // make_unique(Id, "on-mode", Attributes::OnMode::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // @@ -15432,8 +15425,6 @@ void registerClusterRvcCleanMode(Commands & commands, CredentialIssuerCommands * Id, "supported-modes", Attributes::SupportedModes::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "current-mode", 0, UINT8_MAX, Attributes::CurrentMode::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // - make_unique>>( - Id, "start-up-mode", 0, UINT8_MAX, Attributes::StartUpMode::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>(Id, "on-mode", 0, UINT8_MAX, Attributes::OnMode::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( @@ -15452,7 +15443,6 @@ void registerClusterRvcCleanMode(Commands & commands, CredentialIssuerCommands * make_unique(Id, credsIssuerConfig), // make_unique(Id, "supported-modes", Attributes::SupportedModes::Id, credsIssuerConfig), // make_unique(Id, "current-mode", Attributes::CurrentMode::Id, credsIssuerConfig), // - make_unique(Id, "start-up-mode", Attributes::StartUpMode::Id, credsIssuerConfig), // make_unique(Id, "on-mode", Attributes::OnMode::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // diff --git a/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.cpp b/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.cpp index eeb22da1398cdd..9953be8a6074b4 100644 --- a/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.cpp +++ b/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.cpp @@ -8281,11 +8281,6 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("CurrentMode", 1, value); } - case RvcRunMode::Attributes::StartUpMode::Id: { - chip::app::DataModel::Nullable value; - ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("StartUpMode", 1, value); - } case RvcRunMode::Attributes::OnMode::Id: { chip::app::DataModel::Nullable value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -8337,11 +8332,6 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("CurrentMode", 1, value); } - case RvcCleanMode::Attributes::StartUpMode::Id: { - chip::app::DataModel::Nullable value; - ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("StartUpMode", 1, value); - } case RvcCleanMode::Attributes::OnMode::Id: { chip::app::DataModel::Nullable value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); 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 ab01a4eae1b273..ab996359816e33 100644 --- a/zzz_generated/darwin-framework-tool/zap-generated/cluster/Commands.h +++ b/zzz_generated/darwin-framework-tool/zap-generated/cluster/Commands.h @@ -54286,7 +54286,6 @@ class SubscribeAttributeLaundryWasherControlsClusterRevision : public SubscribeA | Attributes: | | | * SupportedModes | 0x0000 | | * CurrentMode | 0x0001 | -| * StartUpMode | 0x0002 | | * OnMode | 0x0003 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | @@ -54526,135 +54525,6 @@ class SubscribeAttributeRvcRunModeCurrentMode : public SubscribeAttribute { #endif // MTR_ENABLE_PROVISIONAL #if MTR_ENABLE_PROVISIONAL -/* - * Attribute StartUpMode - */ -class ReadRvcRunModeStartUpMode : public ReadAttribute { -public: - ReadRvcRunModeStartUpMode() - : ReadAttribute("start-up-mode") - { - } - - ~ReadRvcRunModeStartUpMode() - { - } - - CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override - { - constexpr chip::ClusterId clusterId = chip::app::Clusters::RvcRunMode::Id; - constexpr chip::AttributeId attributeId = chip::app::Clusters::RvcRunMode::Attributes::StartUpMode::Id; - - ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") ReadAttribute (0x%08" PRIX32 ") on endpoint %u", endpointId, clusterId, attributeId); - - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - __auto_type * cluster = [[MTRBaseClusterRVCRunMode alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; - [cluster readAttributeStartUpModeWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable error) { - NSLog(@"RVCRunMode.StartUpMode response %@", [value description]); - if (error == nil) { - RemoteDataModelLogger::LogAttributeAsJSON(@(endpointId), @(clusterId), @(attributeId), value); - } else { - LogNSError("RVCRunMode StartUpMode read Error", error); - RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error); - } - SetCommandExitStatus(error); - }]; - return CHIP_NO_ERROR; - } -}; - -class WriteRvcRunModeStartUpMode : public WriteAttribute { -public: - WriteRvcRunModeStartUpMode() - : WriteAttribute("start-up-mode") - { - AddArgument("attr-name", "start-up-mode"); - AddArgument("attr-value", 0, UINT8_MAX, &mValue); - WriteAttribute::AddArguments(); - } - - ~WriteRvcRunModeStartUpMode() - { - } - - CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override - { - constexpr chip::ClusterId clusterId = chip::app::Clusters::RvcRunMode::Id; - constexpr chip::AttributeId attributeId = chip::app::Clusters::RvcRunMode::Attributes::StartUpMode::Id; - - ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") WriteAttribute (0x%08" PRIX32 ") on endpoint %u", clusterId, attributeId, endpointId); - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - __auto_type * cluster = [[MTRBaseClusterRVCRunMode alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; - __auto_type * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; - params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; - NSNumber * _Nullable value = nil; - if (!mValue.IsNull()) { - value = [NSNumber numberWithUnsignedChar:mValue.Value()]; - } - - [cluster writeAttributeStartUpModeWithValue:value params:params completion:^(NSError * _Nullable error) { - if (error != nil) { - LogNSError("RVCRunMode StartUpMode write Error", error); - RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error); - } - SetCommandExitStatus(error); - }]; - return CHIP_NO_ERROR; - } - -private: - chip::app::DataModel::Nullable mValue; -}; - -class SubscribeAttributeRvcRunModeStartUpMode : public SubscribeAttribute { -public: - SubscribeAttributeRvcRunModeStartUpMode() - : SubscribeAttribute("start-up-mode") - { - } - - ~SubscribeAttributeRvcRunModeStartUpMode() - { - } - - CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override - { - constexpr chip::ClusterId clusterId = chip::app::Clusters::RvcRunMode::Id; - constexpr chip::CommandId attributeId = chip::app::Clusters::RvcRunMode::Attributes::StartUpMode::Id; - - ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") ReportAttribute (0x%08" PRIX32 ") on endpoint %u", clusterId, attributeId, endpointId); - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - __auto_type * cluster = [[MTRBaseClusterRVCRunMode alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; - __auto_type * params = [[MTRSubscribeParams alloc] initWithMinInterval:@(mMinInterval) maxInterval:@(mMaxInterval)]; - if (mKeepSubscriptions.HasValue()) { - params.replaceExistingSubscriptions = !mKeepSubscriptions.Value(); - } - if (mFabricFiltered.HasValue()) { - params.filterByFabric = mFabricFiltered.Value(); - } - if (mAutoResubscribe.HasValue()) { - params.resubscribeAutomatically = mAutoResubscribe.Value(); - } - [cluster subscribeAttributeStartUpModeWithParams:params - subscriptionEstablished:^() { mSubscriptionEstablished = YES; } - reportHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { - NSLog(@"RVCRunMode.StartUpMode response %@", [value description]); - if (error == nil) { - RemoteDataModelLogger::LogAttributeAsJSON(@(endpointId), @(clusterId), @(attributeId), value); - } else { - RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error); - } - SetCommandExitStatus(error); - }]; - - return CHIP_NO_ERROR; - } -}; - -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL - /* * Attribute OnMode */ @@ -55303,7 +55173,6 @@ class SubscribeAttributeRvcRunModeClusterRevision : public SubscribeAttribute { | Attributes: | | | * SupportedModes | 0x0000 | | * CurrentMode | 0x0001 | -| * StartUpMode | 0x0002 | | * OnMode | 0x0003 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | @@ -55543,135 +55412,6 @@ class SubscribeAttributeRvcCleanModeCurrentMode : public SubscribeAttribute { #endif // MTR_ENABLE_PROVISIONAL #if MTR_ENABLE_PROVISIONAL -/* - * Attribute StartUpMode - */ -class ReadRvcCleanModeStartUpMode : public ReadAttribute { -public: - ReadRvcCleanModeStartUpMode() - : ReadAttribute("start-up-mode") - { - } - - ~ReadRvcCleanModeStartUpMode() - { - } - - CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override - { - constexpr chip::ClusterId clusterId = chip::app::Clusters::RvcCleanMode::Id; - constexpr chip::AttributeId attributeId = chip::app::Clusters::RvcCleanMode::Attributes::StartUpMode::Id; - - ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") ReadAttribute (0x%08" PRIX32 ") on endpoint %u", endpointId, clusterId, attributeId); - - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - __auto_type * cluster = [[MTRBaseClusterRVCCleanMode alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; - [cluster readAttributeStartUpModeWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable error) { - NSLog(@"RVCCleanMode.StartUpMode response %@", [value description]); - if (error == nil) { - RemoteDataModelLogger::LogAttributeAsJSON(@(endpointId), @(clusterId), @(attributeId), value); - } else { - LogNSError("RVCCleanMode StartUpMode read Error", error); - RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error); - } - SetCommandExitStatus(error); - }]; - return CHIP_NO_ERROR; - } -}; - -class WriteRvcCleanModeStartUpMode : public WriteAttribute { -public: - WriteRvcCleanModeStartUpMode() - : WriteAttribute("start-up-mode") - { - AddArgument("attr-name", "start-up-mode"); - AddArgument("attr-value", 0, UINT8_MAX, &mValue); - WriteAttribute::AddArguments(); - } - - ~WriteRvcCleanModeStartUpMode() - { - } - - CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override - { - constexpr chip::ClusterId clusterId = chip::app::Clusters::RvcCleanMode::Id; - constexpr chip::AttributeId attributeId = chip::app::Clusters::RvcCleanMode::Attributes::StartUpMode::Id; - - ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") WriteAttribute (0x%08" PRIX32 ") on endpoint %u", clusterId, attributeId, endpointId); - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - __auto_type * cluster = [[MTRBaseClusterRVCCleanMode alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; - __auto_type * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; - params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; - NSNumber * _Nullable value = nil; - if (!mValue.IsNull()) { - value = [NSNumber numberWithUnsignedChar:mValue.Value()]; - } - - [cluster writeAttributeStartUpModeWithValue:value params:params completion:^(NSError * _Nullable error) { - if (error != nil) { - LogNSError("RVCCleanMode StartUpMode write Error", error); - RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error); - } - SetCommandExitStatus(error); - }]; - return CHIP_NO_ERROR; - } - -private: - chip::app::DataModel::Nullable mValue; -}; - -class SubscribeAttributeRvcCleanModeStartUpMode : public SubscribeAttribute { -public: - SubscribeAttributeRvcCleanModeStartUpMode() - : SubscribeAttribute("start-up-mode") - { - } - - ~SubscribeAttributeRvcCleanModeStartUpMode() - { - } - - CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override - { - constexpr chip::ClusterId clusterId = chip::app::Clusters::RvcCleanMode::Id; - constexpr chip::CommandId attributeId = chip::app::Clusters::RvcCleanMode::Attributes::StartUpMode::Id; - - ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") ReportAttribute (0x%08" PRIX32 ") on endpoint %u", clusterId, attributeId, endpointId); - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - __auto_type * cluster = [[MTRBaseClusterRVCCleanMode alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; - __auto_type * params = [[MTRSubscribeParams alloc] initWithMinInterval:@(mMinInterval) maxInterval:@(mMaxInterval)]; - if (mKeepSubscriptions.HasValue()) { - params.replaceExistingSubscriptions = !mKeepSubscriptions.Value(); - } - if (mFabricFiltered.HasValue()) { - params.filterByFabric = mFabricFiltered.Value(); - } - if (mAutoResubscribe.HasValue()) { - params.resubscribeAutomatically = mAutoResubscribe.Value(); - } - [cluster subscribeAttributeStartUpModeWithParams:params - subscriptionEstablished:^() { mSubscriptionEstablished = YES; } - reportHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { - NSLog(@"RVCCleanMode.StartUpMode response %@", [value description]); - if (error == nil) { - RemoteDataModelLogger::LogAttributeAsJSON(@(endpointId), @(clusterId), @(attributeId), value); - } else { - RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error); - } - SetCommandExitStatus(error); - }]; - - return CHIP_NO_ERROR; - } -}; - -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL - /* * Attribute OnMode */ @@ -155774,11 +155514,6 @@ void registerClusterRvcRunMode(Commands & commands) make_unique(), // make_unique(), // #endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL - make_unique(), // - make_unique(), // - make_unique(), // -#endif // MTR_ENABLE_PROVISIONAL #if MTR_ENABLE_PROVISIONAL make_unique(), // make_unique(), // @@ -155836,11 +155571,6 @@ void registerClusterRvcCleanMode(Commands & commands) make_unique(), // make_unique(), // #endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL - make_unique(), // - make_unique(), // - make_unique(), // -#endif // MTR_ENABLE_PROVISIONAL #if MTR_ENABLE_PROVISIONAL make_unique(), // make_unique(), // 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 19518f0203335d..3d3737a78c4347 100644 --- a/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h +++ b/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h @@ -63366,7 +63366,7 @@ class Test_TC_LWM_1_1 : public TestCommandBridge { { id actualValue = value; - VerifyOrReturn(CheckValue("ClusterRevision", actualValue, 1U)); + VerifyOrReturn(CheckValue("ClusterRevision", actualValue, 2U)); } VerifyOrReturn(CheckConstraintType("clusterRevision", "int16u", "int16u")); @@ -88978,7 +88978,7 @@ class Test_TC_RVCCLEANM_1_1 : public TestCommandBridge { { id actualValue = value; - VerifyOrReturn(CheckValue("ClusterRevision", actualValue, 1U)); + VerifyOrReturn(CheckValue("ClusterRevision", actualValue, 2U)); } VerifyOrReturn(CheckConstraintType("clusterRevision", "int16u", "int16u")); @@ -89414,7 +89414,7 @@ class Test_TC_RVCRUNM_1_1 : public TestCommandBridge { { id actualValue = value; - VerifyOrReturn(CheckValue("ClusterRevision", actualValue, 1U)); + VerifyOrReturn(CheckValue("ClusterRevision", actualValue, 2U)); } VerifyOrReturn(CheckConstraintType("clusterRevision", "int16u", "int16u")); @@ -92087,7 +92087,7 @@ class Test_TC_TCCM_1_1 : public TestCommandBridge { { id actualValue = value; - VerifyOrReturn(CheckValue("ClusterRevision", actualValue, 1U)); + VerifyOrReturn(CheckValue("ClusterRevision", actualValue, 2U)); } VerifyOrReturn(CheckConstraintType("clusterRevision", "int16u", "int16u"));