From d9a6b913f3fa45f2be2670794a7d21ee2e780cc9 Mon Sep 17 00:00:00 2001 From: Yufeng Wang Date: Wed, 25 Oct 2023 11:11:48 -0700 Subject: [PATCH] Implement initial Kotlin generator --- kotlin-detect-config.yaml | 4 + .../generators/kotlin/MatterClusters.jinja | 168 + .../generators/kotlin/MatterFiles_gni.jinja | 9 + .../matter_idl/generators/kotlin/__init__.py | 691 ++++ .../matter_idl/generators/registry.py | 5 + .../cluster/clusters/AccessControlCluster.kt | 243 ++ .../cluster/clusters/AccountLoginCluster.kt | 157 + .../cluster/clusters/ActionsCluster.kt | 368 +++ .../ActivatedCarbonFilterMonitoringCluster.kt | 240 ++ .../AdministratorCommissioningCluster.kt | 206 ++ .../cluster/clusters/AirQualityCluster.kt | 142 + .../clusters/ApplicationBasicCluster.kt | 242 ++ .../clusters/ApplicationLauncherCluster.kt | 238 ++ .../cluster/clusters/AudioOutputCluster.kt | 183 ++ .../clusters/BallastConfigurationCluster.kt | 458 +++ .../cluster/clusters/BarrierControlCluster.kt | 342 ++ .../clusters/BasicInformationCluster.kt | 442 +++ .../clusters/BinaryInputBasicCluster.kt | 310 ++ .../cluster/clusters/BindingCluster.kt | 172 + .../cluster/clusters/BooleanStateCluster.kt | 142 + .../BridgedDeviceBasicInformationCluster.kt | 342 ++ ...nDioxideConcentrationMeasurementCluster.kt | 302 ++ ...MonoxideConcentrationMeasurementCluster.kt | 302 ++ .../cluster/clusters/ChannelCluster.kt | 233 ++ .../cluster/clusters/ColorControlCluster.kt | 1432 ++++++++ .../clusters/ContentLauncherCluster.kt | 218 ++ .../cluster/clusters/DescriptorCluster.kt | 230 ++ .../cluster/clusters/DiagnosticLogsCluster.kt | 155 + .../clusters/DishwasherAlarmCluster.kt | 182 ++ .../cluster/clusters/DishwasherModeCluster.kt | 244 ++ .../cluster/clusters/DoorLockCluster.kt | 1112 +++++++ .../clusters/ElectricalMeasurementCluster.kt | 1795 ++++++++++ .../EthernetNetworkDiagnosticsCluster.kt | 270 ++ .../cluster/clusters/FanControlCluster.kt | 393 +++ .../cluster/clusters/FaultInjectionCluster.kt | 172 + .../cluster/clusters/FixedLabelCluster.kt | 150 + .../clusters/FlowMeasurementCluster.kt | 202 ++ ...aldehydeConcentrationMeasurementCluster.kt | 302 ++ .../clusters/GeneralCommissioningCluster.kt | 275 ++ .../clusters/GeneralDiagnosticsCluster.kt | 295 ++ .../clusters/GroupKeyManagementCluster.kt | 285 ++ .../cluster/clusters/GroupsCluster.kt | 235 ++ .../clusters/HepaFilterMonitoringCluster.kt | 240 ++ .../cluster/clusters/IcdManagementCluster.kt | 269 ++ .../cluster/clusters/IdentifyCluster.kt | 191 ++ .../clusters/IlluminanceMeasurementCluster.kt | 222 ++ .../cluster/clusters/KeypadInputCluster.kt | 144 + .../clusters/LaundryWasherControlsCluster.kt | 226 ++ .../clusters/LaundryWasherModeCluster.kt | 244 ++ .../cluster/clusters/LevelControlCluster.kt | 602 ++++ .../LocalizationConfigurationCluster.kt | 174 + .../cluster/clusters/LowPowerCluster.kt | 138 + .../cluster/clusters/MediaInputCluster.kt | 199 ++ .../cluster/clusters/MediaPlaybackCluster.kt | 356 ++ .../cluster/clusters/ModeSelectCluster.kt | 266 ++ .../clusters/NetworkCommissioningCluster.kt | 441 +++ ...nDioxideConcentrationMeasurementCluster.kt | 302 ++ .../clusters/OccupancySensingCluster.kt | 405 +++ .../cluster/clusters/OnOffCluster.kt | 302 ++ .../OnOffSwitchConfigurationCluster.kt | 166 + .../clusters/OperationalCredentialsCluster.kt | 364 +++ .../clusters/OperationalStateCluster.kt | 280 ++ .../OtaSoftwareUpdateProviderCluster.kt | 214 ++ .../OtaSoftwareUpdateRequestorCluster.kt | 239 ++ .../OzoneConcentrationMeasurementCluster.kt | 302 ++ .../Pm10ConcentrationMeasurementCluster.kt | 302 ++ .../Pm1ConcentrationMeasurementCluster.kt | 302 ++ .../Pm25ConcentrationMeasurementCluster.kt | 302 ++ .../cluster/clusters/PowerSourceCluster.kt | 612 ++++ .../PowerSourceConfigurationCluster.kt | 150 + .../clusters/PressureMeasurementCluster.kt | 286 ++ .../clusters/ProxyConfigurationCluster.kt | 130 + .../cluster/clusters/ProxyDiscoveryCluster.kt | 130 + .../cluster/clusters/ProxyValidCluster.kt | 130 + .../clusters/PulseWidthModulationCluster.kt | 130 + .../PumpConfigurationAndControlCluster.kt | 598 ++++ .../RadonConcentrationMeasurementCluster.kt | 302 ++ .../clusters/RefrigeratorAlarmCluster.kt | 158 + ...TemperatureControlledCabinetModeCluster.kt | 249 ++ .../RelativeHumidityMeasurementCluster.kt | 202 ++ .../cluster/clusters/RvcCleanModeCluster.kt | 212 ++ .../clusters/RvcOperationalStateCluster.kt | 280 ++ .../cluster/clusters/RvcRunModeCluster.kt | 212 ++ .../cluster/clusters/SampleMeiCluster.kt | 181 ++ .../cluster/clusters/ScenesCluster.kt | 475 +++ .../cluster/clusters/SmokeCoAlarmCluster.kt | 306 ++ .../clusters/SoftwareDiagnosticsCluster.kt | 194 ++ .../cluster/clusters/SwitchCluster.kt | 166 + .../clusters/TargetNavigatorCluster.kt | 181 ++ .../clusters/TemperatureControlCluster.kt | 229 ++ .../clusters/TemperatureMeasurementCluster.kt | 202 ++ .../cluster/clusters/ThermostatCluster.kt | 1208 +++++++ ...mostatUserInterfaceConfigurationCluster.kt | 205 ++ .../ThreadNetworkDiagnosticsCluster.kt | 1056 ++++++ .../clusters/TimeFormatLocalizationCluster.kt | 198 ++ .../clusters/TimeSynchronizationCluster.kt | 416 +++ ...ompoundsConcentrationMeasurementCluster.kt | 302 ++ .../clusters/UnitLocalizationCluster.kt | 154 + .../cluster/clusters/UnitTestingCluster.kt | 2874 +++++++++++++++++ .../cluster/clusters/UserLabelCluster.kt | 165 + .../cluster/clusters/WakeOnLanCluster.kt | 142 + .../clusters/WiFiNetworkDiagnosticsCluster.kt | 394 +++ .../cluster/clusters/WindowCoveringCluster.kt | 554 ++++ .../matter/devicecontroller/cluster/files.gni | 103 + 104 files changed, 34566 insertions(+) create mode 100644 scripts/py_matter_idl/matter_idl/generators/kotlin/MatterClusters.jinja create mode 100644 scripts/py_matter_idl/matter_idl/generators/kotlin/MatterFiles_gni.jinja create mode 100644 scripts/py_matter_idl/matter_idl/generators/kotlin/__init__.py create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AccessControlCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AccountLoginCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ActionsCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ActivatedCarbonFilterMonitoringCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AdministratorCommissioningCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AirQualityCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ApplicationBasicCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ApplicationLauncherCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AudioOutputCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BallastConfigurationCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BarrierControlCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BasicInformationCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BinaryInputBasicCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BindingCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BooleanStateCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BridgedDeviceBasicInformationCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/CarbonDioxideConcentrationMeasurementCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/CarbonMonoxideConcentrationMeasurementCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ChannelCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ColorControlCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ContentLauncherCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DescriptorCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DiagnosticLogsCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DishwasherAlarmCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DishwasherModeCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DoorLockCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ElectricalMeasurementCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/EthernetNetworkDiagnosticsCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FanControlCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FaultInjectionCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FixedLabelCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FlowMeasurementCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FormaldehydeConcentrationMeasurementCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GeneralCommissioningCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GeneralDiagnosticsCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GroupKeyManagementCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GroupsCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/HepaFilterMonitoringCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IcdManagementCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IdentifyCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IlluminanceMeasurementCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/KeypadInputCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryWasherControlsCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryWasherModeCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LevelControlCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LocalizationConfigurationCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LowPowerCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MediaInputCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MediaPlaybackCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ModeSelectCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/NetworkCommissioningCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/NitrogenDioxideConcentrationMeasurementCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OccupancySensingCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OnOffCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OnOffSwitchConfigurationCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OperationalCredentialsCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OperationalStateCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OtaSoftwareUpdateProviderCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OtaSoftwareUpdateRequestorCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OzoneConcentrationMeasurementCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm10ConcentrationMeasurementCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm1ConcentrationMeasurementCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm25ConcentrationMeasurementCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PowerSourceCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PowerSourceConfigurationCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PressureMeasurementCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyConfigurationCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyDiscoveryCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyValidCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PulseWidthModulationCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PumpConfigurationAndControlCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RadonConcentrationMeasurementCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RefrigeratorAlarmCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RefrigeratorAndTemperatureControlledCabinetModeCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RelativeHumidityMeasurementCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcCleanModeCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcOperationalStateCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcRunModeCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SampleMeiCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ScenesCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SmokeCoAlarmCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SoftwareDiagnosticsCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SwitchCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TargetNavigatorCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TemperatureControlCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TemperatureMeasurementCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThermostatCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThermostatUserInterfaceConfigurationCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThreadNetworkDiagnosticsCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimeFormatLocalizationCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimeSynchronizationCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TotalVolatileOrganicCompoundsConcentrationMeasurementCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UnitLocalizationCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UnitTestingCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UserLabelCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WakeOnLanCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WiFiNetworkDiagnosticsCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WindowCoveringCluster.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/files.gni 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/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/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