diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlEntryChangedEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlEntryChangedEvent.kt index 75edd8da4997e5..a206757d729531 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlEntryChangedEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlEntryChangedEvent.kt @@ -17,22 +17,20 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class AccessControlClusterAccessControlEntryChangedEvent ( - val adminNodeID: ULong?, - val adminPasscodeID: UInt?, - val changeType: UInt, - val latestValue: chip.devicecontroller.cluster.structs.AccessControlClusterAccessControlEntryStruct?, - val fabricIndex: UInt) { - override fun toString(): String = buildString { +class AccessControlClusterAccessControlEntryChangedEvent( + val adminNodeID: ULong?, + val adminPasscodeID: UInt?, + val changeType: UInt, + val latestValue: + chip.devicecontroller.cluster.structs.AccessControlClusterAccessControlEntryStruct?, + val fabricIndex: UInt +) { + override fun toString(): String = buildString { append("AccessControlClusterAccessControlEntryChangedEvent {\n") append("\tadminNodeID : $adminNodeID\n") append("\tadminPasscodeID : $adminPasscodeID\n") @@ -46,21 +44,21 @@ class AccessControlClusterAccessControlEntryChangedEvent ( tlvWriter.apply { startStructure(tlvTag) if (adminNodeID != null) { - put(ContextSpecificTag(TAG_ADMIN_NODE_I_D), adminNodeID) - } else { - putNull(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) - } + put(ContextSpecificTag(TAG_ADMIN_NODE_I_D), adminNodeID) + } else { + putNull(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) + } if (adminPasscodeID != null) { - put(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D), adminPasscodeID) - } else { - putNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) - } + put(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D), adminPasscodeID) + } else { + putNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) + } put(ContextSpecificTag(TAG_CHANGE_TYPE), changeType) if (latestValue != null) { - latestValue.toTlv(ContextSpecificTag(TAG_LATEST_VALUE), this) - } else { - putNull(ContextSpecificTag(TAG_LATEST_VALUE)) - } + latestValue.toTlv(ContextSpecificTag(TAG_LATEST_VALUE), this) + } else { + putNull(ContextSpecificTag(TAG_LATEST_VALUE)) + } put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) endStructure() } @@ -73,32 +71,45 @@ class AccessControlClusterAccessControlEntryChangedEvent ( private const val TAG_LATEST_VALUE = 4 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : AccessControlClusterAccessControlEntryChangedEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): AccessControlClusterAccessControlEntryChangedEvent { tlvReader.enterStructure(tlvTag) - val adminNodeID = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) - null - } - val adminPasscodeID = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) - null - } + val adminNodeID = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) + null + } + val adminPasscodeID = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) + null + } val changeType = tlvReader.getUInt(ContextSpecificTag(TAG_CHANGE_TYPE)) - val latestValue = if (!tlvReader.isNull()) { - chip.devicecontroller.cluster.structs.AccessControlClusterAccessControlEntryStruct.fromTlv(ContextSpecificTag(TAG_LATEST_VALUE), tlvReader) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_LATEST_VALUE)) - null - } + val latestValue = + if (!tlvReader.isNull()) { + chip.devicecontroller.cluster.structs.AccessControlClusterAccessControlEntryStruct + .fromTlv(ContextSpecificTag(TAG_LATEST_VALUE), tlvReader) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_LATEST_VALUE)) + null + } val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() - return AccessControlClusterAccessControlEntryChangedEvent(adminNodeID, adminPasscodeID, changeType, latestValue, fabricIndex) + return AccessControlClusterAccessControlEntryChangedEvent( + adminNodeID, + adminPasscodeID, + changeType, + latestValue, + fabricIndex + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlExtensionChangedEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlExtensionChangedEvent.kt index 31aad754e04833..8377cc96d5f545 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlExtensionChangedEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlExtensionChangedEvent.kt @@ -17,22 +17,20 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class AccessControlClusterAccessControlExtensionChangedEvent ( - val adminNodeID: ULong?, - val adminPasscodeID: UInt?, - val changeType: UInt, - val latestValue: chip.devicecontroller.cluster.structs.AccessControlClusterAccessControlExtensionStruct?, - val fabricIndex: UInt) { - override fun toString(): String = buildString { +class AccessControlClusterAccessControlExtensionChangedEvent( + val adminNodeID: ULong?, + val adminPasscodeID: UInt?, + val changeType: UInt, + val latestValue: + chip.devicecontroller.cluster.structs.AccessControlClusterAccessControlExtensionStruct?, + val fabricIndex: UInt +) { + override fun toString(): String = buildString { append("AccessControlClusterAccessControlExtensionChangedEvent {\n") append("\tadminNodeID : $adminNodeID\n") append("\tadminPasscodeID : $adminPasscodeID\n") @@ -46,21 +44,21 @@ class AccessControlClusterAccessControlExtensionChangedEvent ( tlvWriter.apply { startStructure(tlvTag) if (adminNodeID != null) { - put(ContextSpecificTag(TAG_ADMIN_NODE_I_D), adminNodeID) - } else { - putNull(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) - } + put(ContextSpecificTag(TAG_ADMIN_NODE_I_D), adminNodeID) + } else { + putNull(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) + } if (adminPasscodeID != null) { - put(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D), adminPasscodeID) - } else { - putNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) - } + put(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D), adminPasscodeID) + } else { + putNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) + } put(ContextSpecificTag(TAG_CHANGE_TYPE), changeType) if (latestValue != null) { - latestValue.toTlv(ContextSpecificTag(TAG_LATEST_VALUE), this) - } else { - putNull(ContextSpecificTag(TAG_LATEST_VALUE)) - } + latestValue.toTlv(ContextSpecificTag(TAG_LATEST_VALUE), this) + } else { + putNull(ContextSpecificTag(TAG_LATEST_VALUE)) + } put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) endStructure() } @@ -73,32 +71,45 @@ class AccessControlClusterAccessControlExtensionChangedEvent ( private const val TAG_LATEST_VALUE = 4 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : AccessControlClusterAccessControlExtensionChangedEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): AccessControlClusterAccessControlExtensionChangedEvent { tlvReader.enterStructure(tlvTag) - val adminNodeID = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) - null - } - val adminPasscodeID = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) - null - } + val adminNodeID = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) + null + } + val adminPasscodeID = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) + null + } val changeType = tlvReader.getUInt(ContextSpecificTag(TAG_CHANGE_TYPE)) - val latestValue = if (!tlvReader.isNull()) { - chip.devicecontroller.cluster.structs.AccessControlClusterAccessControlExtensionStruct.fromTlv(ContextSpecificTag(TAG_LATEST_VALUE), tlvReader) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_LATEST_VALUE)) - null - } + val latestValue = + if (!tlvReader.isNull()) { + chip.devicecontroller.cluster.structs.AccessControlClusterAccessControlExtensionStruct + .fromTlv(ContextSpecificTag(TAG_LATEST_VALUE), tlvReader) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_LATEST_VALUE)) + null + } val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() - return AccessControlClusterAccessControlExtensionChangedEvent(adminNodeID, adminPasscodeID, changeType, latestValue, fabricIndex) + return AccessControlClusterAccessControlExtensionChangedEvent( + adminNodeID, + adminPasscodeID, + changeType, + latestValue, + fabricIndex + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ActionsClusterActionFailedEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ActionsClusterActionFailedEvent.kt index 59405162837cd8..ea2f1931564f35 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ActionsClusterActionFailedEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ActionsClusterActionFailedEvent.kt @@ -17,21 +17,18 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ActionsClusterActionFailedEvent ( - val actionID: UInt, - val invokeID: ULong, - val newState: UInt, - val error: UInt) { - override fun toString(): String = buildString { +class ActionsClusterActionFailedEvent( + val actionID: UInt, + val invokeID: ULong, + val newState: UInt, + val error: UInt +) { + override fun toString(): String = buildString { append("ActionsClusterActionFailedEvent {\n") append("\tactionID : $actionID\n") append("\tinvokeID : $invokeID\n") @@ -57,13 +54,13 @@ class ActionsClusterActionFailedEvent ( private const val TAG_NEW_STATE = 2 private const val TAG_ERROR = 3 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ActionsClusterActionFailedEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ActionsClusterActionFailedEvent { tlvReader.enterStructure(tlvTag) val actionID = tlvReader.getUInt(ContextSpecificTag(TAG_ACTION_I_D)) val invokeID = tlvReader.getULong(ContextSpecificTag(TAG_INVOKE_I_D)) val newState = tlvReader.getUInt(ContextSpecificTag(TAG_NEW_STATE)) val error = tlvReader.getUInt(ContextSpecificTag(TAG_ERROR)) - + tlvReader.exitContainer() return ActionsClusterActionFailedEvent(actionID, invokeID, newState, error) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ActionsClusterStateChangedEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ActionsClusterStateChangedEvent.kt index 868fbace2ac50e..d95c5e9d66480b 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ActionsClusterStateChangedEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ActionsClusterStateChangedEvent.kt @@ -17,20 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ActionsClusterStateChangedEvent ( - val actionID: UInt, - val invokeID: ULong, - val newState: UInt) { - override fun toString(): String = buildString { +class ActionsClusterStateChangedEvent(val actionID: UInt, val invokeID: ULong, val newState: UInt) { + override fun toString(): String = buildString { append("ActionsClusterStateChangedEvent {\n") append("\tactionID : $actionID\n") append("\tinvokeID : $invokeID\n") @@ -53,12 +46,12 @@ class ActionsClusterStateChangedEvent ( private const val TAG_INVOKE_I_D = 1 private const val TAG_NEW_STATE = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ActionsClusterStateChangedEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ActionsClusterStateChangedEvent { tlvReader.enterStructure(tlvTag) val actionID = tlvReader.getUInt(ContextSpecificTag(TAG_ACTION_I_D)) val invokeID = tlvReader.getULong(ContextSpecificTag(TAG_INVOKE_I_D)) val newState = tlvReader.getUInt(ContextSpecificTag(TAG_NEW_STATE)) - + tlvReader.exitContainer() return ActionsClusterStateChangedEvent(actionID, invokeID, newState) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BasicInformationClusterLeaveEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BasicInformationClusterLeaveEvent.kt index 8ca5a2a0195e9c..6d2c068c849afb 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BasicInformationClusterLeaveEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BasicInformationClusterLeaveEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class BasicInformationClusterLeaveEvent ( - val fabricIndex: UInt) { - override fun toString(): String = buildString { +class BasicInformationClusterLeaveEvent(val fabricIndex: UInt) { + override fun toString(): String = buildString { append("BasicInformationClusterLeaveEvent {\n") append("\tfabricIndex : $fabricIndex\n") append("}\n") @@ -45,10 +40,10 @@ class BasicInformationClusterLeaveEvent ( companion object { private const val TAG_FABRIC_INDEX = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BasicInformationClusterLeaveEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): BasicInformationClusterLeaveEvent { tlvReader.enterStructure(tlvTag) val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() return BasicInformationClusterLeaveEvent(fabricIndex) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BasicInformationClusterReachableChangedEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BasicInformationClusterReachableChangedEvent.kt index 4a6bf00b468e48..4e6cb20e13c5e0 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BasicInformationClusterReachableChangedEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BasicInformationClusterReachableChangedEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class BasicInformationClusterReachableChangedEvent ( - val reachableNewValue: Boolean) { - override fun toString(): String = buildString { +class BasicInformationClusterReachableChangedEvent(val reachableNewValue: Boolean) { + override fun toString(): String = buildString { append("BasicInformationClusterReachableChangedEvent {\n") append("\treachableNewValue : $reachableNewValue\n") append("}\n") @@ -45,10 +40,10 @@ class BasicInformationClusterReachableChangedEvent ( companion object { private const val TAG_REACHABLE_NEW_VALUE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BasicInformationClusterReachableChangedEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): BasicInformationClusterReachableChangedEvent { tlvReader.enterStructure(tlvTag) val reachableNewValue = tlvReader.getBoolean(ContextSpecificTag(TAG_REACHABLE_NEW_VALUE)) - + tlvReader.exitContainer() return BasicInformationClusterReachableChangedEvent(reachableNewValue) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BasicInformationClusterStartUpEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BasicInformationClusterStartUpEvent.kt index b87f7ebee81d72..5ba3a8d3591e9a 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BasicInformationClusterStartUpEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BasicInformationClusterStartUpEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class BasicInformationClusterStartUpEvent ( - val softwareVersion: ULong) { - override fun toString(): String = buildString { +class BasicInformationClusterStartUpEvent(val softwareVersion: ULong) { + override fun toString(): String = buildString { append("BasicInformationClusterStartUpEvent {\n") append("\tsoftwareVersion : $softwareVersion\n") append("}\n") @@ -45,10 +40,10 @@ class BasicInformationClusterStartUpEvent ( companion object { private const val TAG_SOFTWARE_VERSION = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BasicInformationClusterStartUpEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): BasicInformationClusterStartUpEvent { tlvReader.enterStructure(tlvTag) val softwareVersion = tlvReader.getULong(ContextSpecificTag(TAG_SOFTWARE_VERSION)) - + tlvReader.exitContainer() return BasicInformationClusterStartUpEvent(softwareVersion) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BooleanStateClusterStateChangeEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BooleanStateClusterStateChangeEvent.kt index 632226d00db082..f133fd21988180 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BooleanStateClusterStateChangeEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BooleanStateClusterStateChangeEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class BooleanStateClusterStateChangeEvent ( - val stateValue: Boolean) { - override fun toString(): String = buildString { +class BooleanStateClusterStateChangeEvent(val stateValue: Boolean) { + override fun toString(): String = buildString { append("BooleanStateClusterStateChangeEvent {\n") append("\tstateValue : $stateValue\n") append("}\n") @@ -45,10 +40,10 @@ class BooleanStateClusterStateChangeEvent ( companion object { private const val TAG_STATE_VALUE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BooleanStateClusterStateChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): BooleanStateClusterStateChangeEvent { tlvReader.enterStructure(tlvTag) val stateValue = tlvReader.getBoolean(ContextSpecificTag(TAG_STATE_VALUE)) - + tlvReader.exitContainer() return BooleanStateClusterStateChangeEvent(stateValue) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterReachableChangedEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterReachableChangedEvent.kt index b5bbae742887b3..4a66dd930bf954 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterReachableChangedEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterReachableChangedEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class BridgedDeviceBasicInformationClusterReachableChangedEvent ( - val reachableNewValue: Boolean) { - override fun toString(): String = buildString { +class BridgedDeviceBasicInformationClusterReachableChangedEvent(val reachableNewValue: Boolean) { + override fun toString(): String = buildString { append("BridgedDeviceBasicInformationClusterReachableChangedEvent {\n") append("\treachableNewValue : $reachableNewValue\n") append("}\n") @@ -45,10 +40,13 @@ class BridgedDeviceBasicInformationClusterReachableChangedEvent ( companion object { private const val TAG_REACHABLE_NEW_VALUE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BridgedDeviceBasicInformationClusterReachableChangedEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): BridgedDeviceBasicInformationClusterReachableChangedEvent { tlvReader.enterStructure(tlvTag) val reachableNewValue = tlvReader.getBoolean(ContextSpecificTag(TAG_REACHABLE_NEW_VALUE)) - + tlvReader.exitContainer() return BridgedDeviceBasicInformationClusterReachableChangedEvent(reachableNewValue) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterStartUpEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterStartUpEvent.kt index ac2c49d2929233..33e897ec0dcc9c 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterStartUpEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterStartUpEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class BridgedDeviceBasicInformationClusterStartUpEvent ( - val softwareVersion: ULong) { - override fun toString(): String = buildString { +class BridgedDeviceBasicInformationClusterStartUpEvent(val softwareVersion: ULong) { + override fun toString(): String = buildString { append("BridgedDeviceBasicInformationClusterStartUpEvent {\n") append("\tsoftwareVersion : $softwareVersion\n") append("}\n") @@ -45,10 +40,13 @@ class BridgedDeviceBasicInformationClusterStartUpEvent ( companion object { private const val TAG_SOFTWARE_VERSION = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BridgedDeviceBasicInformationClusterStartUpEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): BridgedDeviceBasicInformationClusterStartUpEvent { tlvReader.enterStructure(tlvTag) val softwareVersion = tlvReader.getULong(ContextSpecificTag(TAG_SOFTWARE_VERSION)) - + tlvReader.exitContainer() return BridgedDeviceBasicInformationClusterStartUpEvent(softwareVersion) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DishwasherAlarmClusterNotifyEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DishwasherAlarmClusterNotifyEvent.kt index 71bdf0da0ad747..233b0d7030c8e5 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DishwasherAlarmClusterNotifyEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DishwasherAlarmClusterNotifyEvent.kt @@ -17,21 +17,18 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class DishwasherAlarmClusterNotifyEvent ( - val active: ULong, - val inactive: ULong, - val state: ULong, - val mask: ULong) { - override fun toString(): String = buildString { +class DishwasherAlarmClusterNotifyEvent( + val active: ULong, + val inactive: ULong, + val state: ULong, + val mask: ULong +) { + override fun toString(): String = buildString { append("DishwasherAlarmClusterNotifyEvent {\n") append("\tactive : $active\n") append("\tinactive : $inactive\n") @@ -57,13 +54,13 @@ class DishwasherAlarmClusterNotifyEvent ( private const val TAG_STATE = 2 private const val TAG_MASK = 3 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DishwasherAlarmClusterNotifyEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DishwasherAlarmClusterNotifyEvent { tlvReader.enterStructure(tlvTag) val active = tlvReader.getULong(ContextSpecificTag(TAG_ACTIVE)) val inactive = tlvReader.getULong(ContextSpecificTag(TAG_INACTIVE)) val state = tlvReader.getULong(ContextSpecificTag(TAG_STATE)) val mask = tlvReader.getULong(ContextSpecificTag(TAG_MASK)) - + tlvReader.exitContainer() return DishwasherAlarmClusterNotifyEvent(active, inactive, state, mask) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterDoorLockAlarmEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterDoorLockAlarmEvent.kt index a64fa042cfcd15..918abe443473eb 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterDoorLockAlarmEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterDoorLockAlarmEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class DoorLockClusterDoorLockAlarmEvent ( - val alarmCode: UInt) { - override fun toString(): String = buildString { +class DoorLockClusterDoorLockAlarmEvent(val alarmCode: UInt) { + override fun toString(): String = buildString { append("DoorLockClusterDoorLockAlarmEvent {\n") append("\talarmCode : $alarmCode\n") append("}\n") @@ -45,10 +40,10 @@ class DoorLockClusterDoorLockAlarmEvent ( companion object { private const val TAG_ALARM_CODE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DoorLockClusterDoorLockAlarmEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DoorLockClusterDoorLockAlarmEvent { tlvReader.enterStructure(tlvTag) val alarmCode = tlvReader.getUInt(ContextSpecificTag(TAG_ALARM_CODE)) - + tlvReader.exitContainer() return DoorLockClusterDoorLockAlarmEvent(alarmCode) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterDoorStateChangeEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterDoorStateChangeEvent.kt index bed611cb8674c0..64b69e7e205eb0 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterDoorStateChangeEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterDoorStateChangeEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class DoorLockClusterDoorStateChangeEvent ( - val doorState: UInt) { - override fun toString(): String = buildString { +class DoorLockClusterDoorStateChangeEvent(val doorState: UInt) { + override fun toString(): String = buildString { append("DoorLockClusterDoorStateChangeEvent {\n") append("\tdoorState : $doorState\n") append("}\n") @@ -45,10 +40,10 @@ class DoorLockClusterDoorStateChangeEvent ( companion object { private const val TAG_DOOR_STATE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DoorLockClusterDoorStateChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DoorLockClusterDoorStateChangeEvent { tlvReader.enterStructure(tlvTag) val doorState = tlvReader.getUInt(ContextSpecificTag(TAG_DOOR_STATE)) - + tlvReader.exitContainer() return DoorLockClusterDoorStateChangeEvent(doorState) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationErrorEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationErrorEvent.kt index c57900a30d7946..d943e5d8ece7b8 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationErrorEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationErrorEvent.kt @@ -17,24 +17,24 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* +import java.util.Optional import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class DoorLockClusterLockOperationErrorEvent ( - val lockOperationType: UInt, - val operationSource: UInt, - val operationError: UInt, - val userIndex: UInt?, - val fabricIndex: UInt?, - val sourceNode: ULong?, - val credentials: Optional>?) { - override fun toString(): String = buildString { +class DoorLockClusterLockOperationErrorEvent( + val lockOperationType: UInt, + val operationSource: UInt, + val operationError: UInt, + val userIndex: UInt?, + val fabricIndex: UInt?, + val sourceNode: ULong?, + val credentials: + Optional>? +) { + override fun toString(): String = buildString { append("DoorLockClusterLockOperationErrorEvent {\n") append("\tlockOperationType : $lockOperationType\n") append("\toperationSource : $operationSource\n") @@ -53,32 +53,32 @@ class DoorLockClusterLockOperationErrorEvent ( put(ContextSpecificTag(TAG_OPERATION_SOURCE), operationSource) put(ContextSpecificTag(TAG_OPERATION_ERROR), operationError) if (userIndex != null) { - put(ContextSpecificTag(TAG_USER_INDEX), userIndex) - } else { - putNull(ContextSpecificTag(TAG_USER_INDEX)) - } + put(ContextSpecificTag(TAG_USER_INDEX), userIndex) + } else { + putNull(ContextSpecificTag(TAG_USER_INDEX)) + } if (fabricIndex != null) { - put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) - } else { - putNull(ContextSpecificTag(TAG_FABRIC_INDEX)) - } + put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) + } else { + putNull(ContextSpecificTag(TAG_FABRIC_INDEX)) + } if (sourceNode != null) { - put(ContextSpecificTag(TAG_SOURCE_NODE), sourceNode) - } else { - putNull(ContextSpecificTag(TAG_SOURCE_NODE)) - } + put(ContextSpecificTag(TAG_SOURCE_NODE), sourceNode) + } else { + putNull(ContextSpecificTag(TAG_SOURCE_NODE)) + } if (credentials != null) { - if (credentials.isPresent) { - val optcredentials = credentials.get() - startArray(ContextSpecificTag(TAG_CREDENTIALS)) - for (item in optcredentials.iterator()) { - item.toTlv(AnonymousTag, this) + if (credentials.isPresent) { + val optcredentials = credentials.get() + startArray(ContextSpecificTag(TAG_CREDENTIALS)) + for (item in optcredentials.iterator()) { + item.toTlv(AnonymousTag, this) + } + endArray() + } + } else { + putNull(ContextSpecificTag(TAG_CREDENTIALS)) } - endArray() - } - } else { - putNull(ContextSpecificTag(TAG_CREDENTIALS)) - } endStructure() } } @@ -92,49 +92,68 @@ class DoorLockClusterLockOperationErrorEvent ( private const val TAG_SOURCE_NODE = 5 private const val TAG_CREDENTIALS = 6 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DoorLockClusterLockOperationErrorEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DoorLockClusterLockOperationErrorEvent { tlvReader.enterStructure(tlvTag) val lockOperationType = tlvReader.getUInt(ContextSpecificTag(TAG_LOCK_OPERATION_TYPE)) val operationSource = tlvReader.getUInt(ContextSpecificTag(TAG_OPERATION_SOURCE)) val operationError = tlvReader.getUInt(ContextSpecificTag(TAG_OPERATION_ERROR)) - val userIndex = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_USER_INDEX)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_USER_INDEX)) - null - } - val fabricIndex = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_FABRIC_INDEX)) - null - } - val sourceNode = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_SOURCE_NODE)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_SOURCE_NODE)) - null - } - val credentials = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_CREDENTIALS))) { - Optional.of(buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CREDENTIALS)) - while(!tlvReader.isEndOfContainer()) { - this.add(chip.devicecontroller.cluster.structs.DoorLockClusterCredentialStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - }) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_CREDENTIALS)) - null - } - + val userIndex = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_USER_INDEX)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_USER_INDEX)) + null + } + val fabricIndex = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_FABRIC_INDEX)) + null + } + val sourceNode = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_SOURCE_NODE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_SOURCE_NODE)) + null + } + val credentials = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_CREDENTIALS))) { + Optional.of( + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CREDENTIALS)) + while (!tlvReader.isEndOfContainer()) { + this.add( + chip.devicecontroller.cluster.structs.DoorLockClusterCredentialStruct.fromTlv( + AnonymousTag, + tlvReader + ) + ) + } + tlvReader.exitContainer() + } + ) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_CREDENTIALS)) + null + } + tlvReader.exitContainer() - return DoorLockClusterLockOperationErrorEvent(lockOperationType, operationSource, operationError, userIndex, fabricIndex, sourceNode, credentials) + return DoorLockClusterLockOperationErrorEvent( + lockOperationType, + operationSource, + operationError, + userIndex, + fabricIndex, + sourceNode, + credentials + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationEvent.kt index e86a8e434ee3ae..0e7c7e678bac46 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationEvent.kt @@ -17,23 +17,23 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* +import java.util.Optional import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class DoorLockClusterLockOperationEvent ( - val lockOperationType: UInt, - val operationSource: UInt, - val userIndex: UInt?, - val fabricIndex: UInt?, - val sourceNode: ULong?, - val credentials: Optional>?) { - override fun toString(): String = buildString { +class DoorLockClusterLockOperationEvent( + val lockOperationType: UInt, + val operationSource: UInt, + val userIndex: UInt?, + val fabricIndex: UInt?, + val sourceNode: ULong?, + val credentials: + Optional>? +) { + override fun toString(): String = buildString { append("DoorLockClusterLockOperationEvent {\n") append("\tlockOperationType : $lockOperationType\n") append("\toperationSource : $operationSource\n") @@ -50,32 +50,32 @@ class DoorLockClusterLockOperationEvent ( put(ContextSpecificTag(TAG_LOCK_OPERATION_TYPE), lockOperationType) put(ContextSpecificTag(TAG_OPERATION_SOURCE), operationSource) if (userIndex != null) { - put(ContextSpecificTag(TAG_USER_INDEX), userIndex) - } else { - putNull(ContextSpecificTag(TAG_USER_INDEX)) - } + put(ContextSpecificTag(TAG_USER_INDEX), userIndex) + } else { + putNull(ContextSpecificTag(TAG_USER_INDEX)) + } if (fabricIndex != null) { - put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) - } else { - putNull(ContextSpecificTag(TAG_FABRIC_INDEX)) - } + put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) + } else { + putNull(ContextSpecificTag(TAG_FABRIC_INDEX)) + } if (sourceNode != null) { - put(ContextSpecificTag(TAG_SOURCE_NODE), sourceNode) - } else { - putNull(ContextSpecificTag(TAG_SOURCE_NODE)) - } + put(ContextSpecificTag(TAG_SOURCE_NODE), sourceNode) + } else { + putNull(ContextSpecificTag(TAG_SOURCE_NODE)) + } if (credentials != null) { - if (credentials.isPresent) { - val optcredentials = credentials.get() - startArray(ContextSpecificTag(TAG_CREDENTIALS)) - for (item in optcredentials.iterator()) { - item.toTlv(AnonymousTag, this) + if (credentials.isPresent) { + val optcredentials = credentials.get() + startArray(ContextSpecificTag(TAG_CREDENTIALS)) + for (item in optcredentials.iterator()) { + item.toTlv(AnonymousTag, this) + } + endArray() + } + } else { + putNull(ContextSpecificTag(TAG_CREDENTIALS)) } - endArray() - } - } else { - putNull(ContextSpecificTag(TAG_CREDENTIALS)) - } endStructure() } } @@ -88,48 +88,66 @@ class DoorLockClusterLockOperationEvent ( private const val TAG_SOURCE_NODE = 4 private const val TAG_CREDENTIALS = 5 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DoorLockClusterLockOperationEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DoorLockClusterLockOperationEvent { tlvReader.enterStructure(tlvTag) val lockOperationType = tlvReader.getUInt(ContextSpecificTag(TAG_LOCK_OPERATION_TYPE)) val operationSource = tlvReader.getUInt(ContextSpecificTag(TAG_OPERATION_SOURCE)) - val userIndex = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_USER_INDEX)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_USER_INDEX)) - null - } - val fabricIndex = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_FABRIC_INDEX)) - null - } - val sourceNode = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_SOURCE_NODE)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_SOURCE_NODE)) - null - } - val credentials = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_CREDENTIALS))) { - Optional.of(buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CREDENTIALS)) - while(!tlvReader.isEndOfContainer()) { - this.add(chip.devicecontroller.cluster.structs.DoorLockClusterCredentialStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - }) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_CREDENTIALS)) - null - } - + val userIndex = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_USER_INDEX)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_USER_INDEX)) + null + } + val fabricIndex = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_FABRIC_INDEX)) + null + } + val sourceNode = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_SOURCE_NODE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_SOURCE_NODE)) + null + } + val credentials = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_CREDENTIALS))) { + Optional.of( + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CREDENTIALS)) + while (!tlvReader.isEndOfContainer()) { + this.add( + chip.devicecontroller.cluster.structs.DoorLockClusterCredentialStruct.fromTlv( + AnonymousTag, + tlvReader + ) + ) + } + tlvReader.exitContainer() + } + ) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_CREDENTIALS)) + null + } + tlvReader.exitContainer() - return DoorLockClusterLockOperationEvent(lockOperationType, operationSource, userIndex, fabricIndex, sourceNode, credentials) + return DoorLockClusterLockOperationEvent( + lockOperationType, + operationSource, + userIndex, + fabricIndex, + sourceNode, + credentials + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterLockUserChangeEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterLockUserChangeEvent.kt index 7ef7dc4931b846..a5fc3f3725485e 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterLockUserChangeEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterLockUserChangeEvent.kt @@ -17,24 +17,21 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class DoorLockClusterLockUserChangeEvent ( - val lockDataType: UInt, - val dataOperationType: UInt, - val operationSource: UInt, - val userIndex: UInt?, - val fabricIndex: UInt?, - val sourceNode: ULong?, - val dataIndex: UInt?) { - override fun toString(): String = buildString { +class DoorLockClusterLockUserChangeEvent( + val lockDataType: UInt, + val dataOperationType: UInt, + val operationSource: UInt, + val userIndex: UInt?, + val fabricIndex: UInt?, + val sourceNode: ULong?, + val dataIndex: UInt? +) { + override fun toString(): String = buildString { append("DoorLockClusterLockUserChangeEvent {\n") append("\tlockDataType : $lockDataType\n") append("\tdataOperationType : $dataOperationType\n") @@ -53,25 +50,25 @@ class DoorLockClusterLockUserChangeEvent ( put(ContextSpecificTag(TAG_DATA_OPERATION_TYPE), dataOperationType) put(ContextSpecificTag(TAG_OPERATION_SOURCE), operationSource) if (userIndex != null) { - put(ContextSpecificTag(TAG_USER_INDEX), userIndex) - } else { - putNull(ContextSpecificTag(TAG_USER_INDEX)) - } + put(ContextSpecificTag(TAG_USER_INDEX), userIndex) + } else { + putNull(ContextSpecificTag(TAG_USER_INDEX)) + } if (fabricIndex != null) { - put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) - } else { - putNull(ContextSpecificTag(TAG_FABRIC_INDEX)) - } + put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) + } else { + putNull(ContextSpecificTag(TAG_FABRIC_INDEX)) + } if (sourceNode != null) { - put(ContextSpecificTag(TAG_SOURCE_NODE), sourceNode) - } else { - putNull(ContextSpecificTag(TAG_SOURCE_NODE)) - } + put(ContextSpecificTag(TAG_SOURCE_NODE), sourceNode) + } else { + putNull(ContextSpecificTag(TAG_SOURCE_NODE)) + } if (dataIndex != null) { - put(ContextSpecificTag(TAG_DATA_INDEX), dataIndex) - } else { - putNull(ContextSpecificTag(TAG_DATA_INDEX)) - } + put(ContextSpecificTag(TAG_DATA_INDEX), dataIndex) + } else { + putNull(ContextSpecificTag(TAG_DATA_INDEX)) + } endStructure() } } @@ -85,39 +82,51 @@ class DoorLockClusterLockUserChangeEvent ( private const val TAG_SOURCE_NODE = 5 private const val TAG_DATA_INDEX = 6 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DoorLockClusterLockUserChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DoorLockClusterLockUserChangeEvent { tlvReader.enterStructure(tlvTag) val lockDataType = tlvReader.getUInt(ContextSpecificTag(TAG_LOCK_DATA_TYPE)) val dataOperationType = tlvReader.getUInt(ContextSpecificTag(TAG_DATA_OPERATION_TYPE)) val operationSource = tlvReader.getUInt(ContextSpecificTag(TAG_OPERATION_SOURCE)) - val userIndex = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_USER_INDEX)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_USER_INDEX)) - null - } - val fabricIndex = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_FABRIC_INDEX)) - null - } - val sourceNode = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_SOURCE_NODE)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_SOURCE_NODE)) - null - } - val dataIndex = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_DATA_INDEX)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_DATA_INDEX)) - null - } - + val userIndex = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_USER_INDEX)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_USER_INDEX)) + null + } + val fabricIndex = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_FABRIC_INDEX)) + null + } + val sourceNode = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_SOURCE_NODE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_SOURCE_NODE)) + null + } + val dataIndex = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_DATA_INDEX)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_DATA_INDEX)) + null + } + tlvReader.exitContainer() - return DoorLockClusterLockUserChangeEvent(lockDataType, dataOperationType, operationSource, userIndex, fabricIndex, sourceNode, dataIndex) + return DoorLockClusterLockUserChangeEvent( + lockDataType, + dataOperationType, + operationSource, + userIndex, + fabricIndex, + sourceNode, + dataIndex + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterBootReasonEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterBootReasonEvent.kt index c3100ce31c6f9b..ab8a2c3ad964b4 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterBootReasonEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterBootReasonEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class GeneralDiagnosticsClusterBootReasonEvent ( - val bootReason: UInt) { - override fun toString(): String = buildString { +class GeneralDiagnosticsClusterBootReasonEvent(val bootReason: UInt) { + override fun toString(): String = buildString { append("GeneralDiagnosticsClusterBootReasonEvent {\n") append("\tbootReason : $bootReason\n") append("}\n") @@ -45,10 +40,10 @@ class GeneralDiagnosticsClusterBootReasonEvent ( companion object { private const val TAG_BOOT_REASON = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : GeneralDiagnosticsClusterBootReasonEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): GeneralDiagnosticsClusterBootReasonEvent { tlvReader.enterStructure(tlvTag) val bootReason = tlvReader.getUInt(ContextSpecificTag(TAG_BOOT_REASON)) - + tlvReader.exitContainer() return GeneralDiagnosticsClusterBootReasonEvent(bootReason) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterHardwareFaultChangeEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterHardwareFaultChangeEvent.kt index f93896c837f200..e09f3961230b34 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterHardwareFaultChangeEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterHardwareFaultChangeEvent.kt @@ -20,16 +20,14 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class GeneralDiagnosticsClusterHardwareFaultChangeEvent ( - val current: List, - val previous: List) { - override fun toString(): String = buildString { +class GeneralDiagnosticsClusterHardwareFaultChangeEvent( + val current: List, + val previous: List +) { + override fun toString(): String = buildString { append("GeneralDiagnosticsClusterHardwareFaultChangeEvent {\n") append("\tcurrent : $current\n") append("\tprevious : $previous\n") @@ -57,23 +55,28 @@ class GeneralDiagnosticsClusterHardwareFaultChangeEvent ( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : GeneralDiagnosticsClusterHardwareFaultChangeEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): GeneralDiagnosticsClusterHardwareFaultChangeEvent { tlvReader.enterStructure(tlvTag) - val current = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val previous = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val current = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val previous = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return GeneralDiagnosticsClusterHardwareFaultChangeEvent(current, previous) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterNetworkFaultChangeEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterNetworkFaultChangeEvent.kt index ebc04643e795f2..2d17b1773194dc 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterNetworkFaultChangeEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterNetworkFaultChangeEvent.kt @@ -20,16 +20,14 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class GeneralDiagnosticsClusterNetworkFaultChangeEvent ( - val current: List, - val previous: List) { - override fun toString(): String = buildString { +class GeneralDiagnosticsClusterNetworkFaultChangeEvent( + val current: List, + val previous: List +) { + override fun toString(): String = buildString { append("GeneralDiagnosticsClusterNetworkFaultChangeEvent {\n") append("\tcurrent : $current\n") append("\tprevious : $previous\n") @@ -57,23 +55,28 @@ class GeneralDiagnosticsClusterNetworkFaultChangeEvent ( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : GeneralDiagnosticsClusterNetworkFaultChangeEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): GeneralDiagnosticsClusterNetworkFaultChangeEvent { tlvReader.enterStructure(tlvTag) - val current = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val previous = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val current = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val previous = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return GeneralDiagnosticsClusterNetworkFaultChangeEvent(current, previous) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterRadioFaultChangeEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterRadioFaultChangeEvent.kt index 238e8657f6984b..3fc425674dde60 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterRadioFaultChangeEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterRadioFaultChangeEvent.kt @@ -20,16 +20,14 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class GeneralDiagnosticsClusterRadioFaultChangeEvent ( - val current: List, - val previous: List) { - override fun toString(): String = buildString { +class GeneralDiagnosticsClusterRadioFaultChangeEvent( + val current: List, + val previous: List +) { + override fun toString(): String = buildString { append("GeneralDiagnosticsClusterRadioFaultChangeEvent {\n") append("\tcurrent : $current\n") append("\tprevious : $previous\n") @@ -57,23 +55,25 @@ class GeneralDiagnosticsClusterRadioFaultChangeEvent ( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : GeneralDiagnosticsClusterRadioFaultChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): GeneralDiagnosticsClusterRadioFaultChangeEvent { tlvReader.enterStructure(tlvTag) - val current = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val previous = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val current = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val previous = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return GeneralDiagnosticsClusterRadioFaultChangeEvent(current, previous) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationCompletionEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationCompletionEvent.kt index bd2f7895bfd1e2..95cf699d416744 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationCompletionEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationCompletionEvent.kt @@ -17,20 +17,18 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class OperationalStateClusterOperationCompletionEvent ( - val completionErrorCode: UInt, - val totalOperationalTime: Optional?, - val pausedTime: Optional?) { - override fun toString(): String = buildString { +class OperationalStateClusterOperationCompletionEvent( + val completionErrorCode: UInt, + val totalOperationalTime: Optional?, + val pausedTime: Optional? +) { + override fun toString(): String = buildString { append("OperationalStateClusterOperationCompletionEvent {\n") append("\tcompletionErrorCode : $completionErrorCode\n") append("\ttotalOperationalTime : $totalOperationalTime\n") @@ -43,21 +41,21 @@ class OperationalStateClusterOperationCompletionEvent ( startStructure(tlvTag) put(ContextSpecificTag(TAG_COMPLETION_ERROR_CODE), completionErrorCode) if (totalOperationalTime != null) { - if (totalOperationalTime.isPresent) { - val opttotalOperationalTime = totalOperationalTime.get() - put(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME), opttotalOperationalTime) - } - } else { - putNull(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME)) - } + if (totalOperationalTime.isPresent) { + val opttotalOperationalTime = totalOperationalTime.get() + put(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME), opttotalOperationalTime) + } + } else { + putNull(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME)) + } if (pausedTime != null) { - if (pausedTime.isPresent) { - val optpausedTime = pausedTime.get() - put(ContextSpecificTag(TAG_PAUSED_TIME), optpausedTime) - } - } else { - putNull(ContextSpecificTag(TAG_PAUSED_TIME)) - } + if (pausedTime.isPresent) { + val optpausedTime = pausedTime.get() + put(ContextSpecificTag(TAG_PAUSED_TIME), optpausedTime) + } + } else { + putNull(ContextSpecificTag(TAG_PAUSED_TIME)) + } endStructure() } } @@ -67,33 +65,42 @@ class OperationalStateClusterOperationCompletionEvent ( private const val TAG_TOTAL_OPERATIONAL_TIME = 1 private const val TAG_PAUSED_TIME = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OperationalStateClusterOperationCompletionEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): OperationalStateClusterOperationCompletionEvent { tlvReader.enterStructure(tlvTag) val completionErrorCode = tlvReader.getUInt(ContextSpecificTag(TAG_COMPLETION_ERROR_CODE)) - val totalOperationalTime = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) { - Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME)) - null - } - val pausedTime = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_PAUSED_TIME))) { - Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_PAUSED_TIME))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_PAUSED_TIME)) - null - } - + val totalOperationalTime = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) { + Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME)) + null + } + val pausedTime = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_PAUSED_TIME))) { + Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_PAUSED_TIME))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PAUSED_TIME)) + null + } + tlvReader.exitContainer() - return OperationalStateClusterOperationCompletionEvent(completionErrorCode, totalOperationalTime, pausedTime) + return OperationalStateClusterOperationCompletionEvent( + completionErrorCode, + totalOperationalTime, + pausedTime + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationalErrorEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationalErrorEvent.kt index f0cd196223d72c..4ff0719f3d0f3b 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationalErrorEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationalErrorEvent.kt @@ -17,18 +17,15 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class OperationalStateClusterOperationalErrorEvent ( - val errorState: chip.devicecontroller.cluster.structs.OperationalStateClusterErrorStateStruct) { - override fun toString(): String = buildString { +class OperationalStateClusterOperationalErrorEvent( + val errorState: chip.devicecontroller.cluster.structs.OperationalStateClusterErrorStateStruct +) { + override fun toString(): String = buildString { append("OperationalStateClusterOperationalErrorEvent {\n") append("\terrorState : $errorState\n") append("}\n") @@ -45,10 +42,14 @@ class OperationalStateClusterOperationalErrorEvent ( companion object { private const val TAG_ERROR_STATE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OperationalStateClusterOperationalErrorEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): OperationalStateClusterOperationalErrorEvent { tlvReader.enterStructure(tlvTag) - val errorState = chip.devicecontroller.cluster.structs.OperationalStateClusterErrorStateStruct.fromTlv(ContextSpecificTag(TAG_ERROR_STATE), tlvReader) - + val errorState = + chip.devicecontroller.cluster.structs.OperationalStateClusterErrorStateStruct.fromTlv( + ContextSpecificTag(TAG_ERROR_STATE), + tlvReader + ) + tlvReader.exitContainer() return OperationalStateClusterOperationalErrorEvent(errorState) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterDownloadErrorEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterDownloadErrorEvent.kt index 67e9047f0532a4..8156c9578afadc 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterDownloadErrorEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterDownloadErrorEvent.kt @@ -17,21 +17,18 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class OtaSoftwareUpdateRequestorClusterDownloadErrorEvent ( - val softwareVersion: ULong, - val bytesDownloaded: ULong, - val progressPercent: UInt?, - val platformCode: Long?) { - override fun toString(): String = buildString { +class OtaSoftwareUpdateRequestorClusterDownloadErrorEvent( + val softwareVersion: ULong, + val bytesDownloaded: ULong, + val progressPercent: UInt?, + val platformCode: Long? +) { + override fun toString(): String = buildString { append("OtaSoftwareUpdateRequestorClusterDownloadErrorEvent {\n") append("\tsoftwareVersion : $softwareVersion\n") append("\tbytesDownloaded : $bytesDownloaded\n") @@ -46,15 +43,15 @@ class OtaSoftwareUpdateRequestorClusterDownloadErrorEvent ( put(ContextSpecificTag(TAG_SOFTWARE_VERSION), softwareVersion) put(ContextSpecificTag(TAG_BYTES_DOWNLOADED), bytesDownloaded) if (progressPercent != null) { - put(ContextSpecificTag(TAG_PROGRESS_PERCENT), progressPercent) - } else { - putNull(ContextSpecificTag(TAG_PROGRESS_PERCENT)) - } + put(ContextSpecificTag(TAG_PROGRESS_PERCENT), progressPercent) + } else { + putNull(ContextSpecificTag(TAG_PROGRESS_PERCENT)) + } if (platformCode != null) { - put(ContextSpecificTag(TAG_PLATFORM_CODE), platformCode) - } else { - putNull(ContextSpecificTag(TAG_PLATFORM_CODE)) - } + put(ContextSpecificTag(TAG_PLATFORM_CODE), platformCode) + } else { + putNull(ContextSpecificTag(TAG_PLATFORM_CODE)) + } endStructure() } } @@ -65,26 +62,36 @@ class OtaSoftwareUpdateRequestorClusterDownloadErrorEvent ( private const val TAG_PROGRESS_PERCENT = 2 private const val TAG_PLATFORM_CODE = 3 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OtaSoftwareUpdateRequestorClusterDownloadErrorEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): OtaSoftwareUpdateRequestorClusterDownloadErrorEvent { tlvReader.enterStructure(tlvTag) val softwareVersion = tlvReader.getULong(ContextSpecificTag(TAG_SOFTWARE_VERSION)) val bytesDownloaded = tlvReader.getULong(ContextSpecificTag(TAG_BYTES_DOWNLOADED)) - val progressPercent = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_PROGRESS_PERCENT)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_PROGRESS_PERCENT)) - null - } - val platformCode = if (!tlvReader.isNull()) { - tlvReader.getLong(ContextSpecificTag(TAG_PLATFORM_CODE)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_PLATFORM_CODE)) - null - } - + val progressPercent = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_PROGRESS_PERCENT)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PROGRESS_PERCENT)) + null + } + val platformCode = + if (!tlvReader.isNull()) { + tlvReader.getLong(ContextSpecificTag(TAG_PLATFORM_CODE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PLATFORM_CODE)) + null + } + tlvReader.exitContainer() - return OtaSoftwareUpdateRequestorClusterDownloadErrorEvent(softwareVersion, bytesDownloaded, progressPercent, platformCode) + return OtaSoftwareUpdateRequestorClusterDownloadErrorEvent( + softwareVersion, + bytesDownloaded, + progressPercent, + platformCode + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterStateTransitionEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterStateTransitionEvent.kt index 99acba4d90a2dd..3843fe8b3b782a 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterStateTransitionEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterStateTransitionEvent.kt @@ -17,21 +17,18 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class OtaSoftwareUpdateRequestorClusterStateTransitionEvent ( - val previousState: UInt, - val newState: UInt, - val reason: UInt, - val targetSoftwareVersion: ULong?) { - override fun toString(): String = buildString { +class OtaSoftwareUpdateRequestorClusterStateTransitionEvent( + val previousState: UInt, + val newState: UInt, + val reason: UInt, + val targetSoftwareVersion: ULong? +) { + override fun toString(): String = buildString { append("OtaSoftwareUpdateRequestorClusterStateTransitionEvent {\n") append("\tpreviousState : $previousState\n") append("\tnewState : $newState\n") @@ -47,10 +44,10 @@ class OtaSoftwareUpdateRequestorClusterStateTransitionEvent ( put(ContextSpecificTag(TAG_NEW_STATE), newState) put(ContextSpecificTag(TAG_REASON), reason) if (targetSoftwareVersion != null) { - put(ContextSpecificTag(TAG_TARGET_SOFTWARE_VERSION), targetSoftwareVersion) - } else { - putNull(ContextSpecificTag(TAG_TARGET_SOFTWARE_VERSION)) - } + put(ContextSpecificTag(TAG_TARGET_SOFTWARE_VERSION), targetSoftwareVersion) + } else { + putNull(ContextSpecificTag(TAG_TARGET_SOFTWARE_VERSION)) + } endStructure() } } @@ -61,21 +58,30 @@ class OtaSoftwareUpdateRequestorClusterStateTransitionEvent ( private const val TAG_REASON = 2 private const val TAG_TARGET_SOFTWARE_VERSION = 3 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OtaSoftwareUpdateRequestorClusterStateTransitionEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): OtaSoftwareUpdateRequestorClusterStateTransitionEvent { tlvReader.enterStructure(tlvTag) val previousState = tlvReader.getUInt(ContextSpecificTag(TAG_PREVIOUS_STATE)) val newState = tlvReader.getUInt(ContextSpecificTag(TAG_NEW_STATE)) val reason = tlvReader.getUInt(ContextSpecificTag(TAG_REASON)) - val targetSoftwareVersion = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_TARGET_SOFTWARE_VERSION)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_TARGET_SOFTWARE_VERSION)) - null - } - + val targetSoftwareVersion = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_TARGET_SOFTWARE_VERSION)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_TARGET_SOFTWARE_VERSION)) + null + } + tlvReader.exitContainer() - return OtaSoftwareUpdateRequestorClusterStateTransitionEvent(previousState, newState, reason, targetSoftwareVersion) + return OtaSoftwareUpdateRequestorClusterStateTransitionEvent( + previousState, + newState, + reason, + targetSoftwareVersion + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterVersionAppliedEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterVersionAppliedEvent.kt index 50dda1eeae85db..43ec6b74bfc442 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterVersionAppliedEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterVersionAppliedEvent.kt @@ -17,19 +17,16 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class OtaSoftwareUpdateRequestorClusterVersionAppliedEvent ( - val softwareVersion: ULong, - val productID: UInt) { - override fun toString(): String = buildString { +class OtaSoftwareUpdateRequestorClusterVersionAppliedEvent( + val softwareVersion: ULong, + val productID: UInt +) { + override fun toString(): String = buildString { append("OtaSoftwareUpdateRequestorClusterVersionAppliedEvent {\n") append("\tsoftwareVersion : $softwareVersion\n") append("\tproductID : $productID\n") @@ -49,11 +46,14 @@ class OtaSoftwareUpdateRequestorClusterVersionAppliedEvent ( private const val TAG_SOFTWARE_VERSION = 0 private const val TAG_PRODUCT_I_D = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OtaSoftwareUpdateRequestorClusterVersionAppliedEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): OtaSoftwareUpdateRequestorClusterVersionAppliedEvent { tlvReader.enterStructure(tlvTag) val softwareVersion = tlvReader.getULong(ContextSpecificTag(TAG_SOFTWARE_VERSION)) val productID = tlvReader.getUInt(ContextSpecificTag(TAG_PRODUCT_I_D)) - + tlvReader.exitContainer() return OtaSoftwareUpdateRequestorClusterVersionAppliedEvent(softwareVersion, productID) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/PowerSourceClusterBatChargeFaultChangeEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/PowerSourceClusterBatChargeFaultChangeEvent.kt index b09829b20efd50..fdb0b033a7616a 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/PowerSourceClusterBatChargeFaultChangeEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/PowerSourceClusterBatChargeFaultChangeEvent.kt @@ -20,16 +20,14 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class PowerSourceClusterBatChargeFaultChangeEvent ( - val current: List, - val previous: List) { - override fun toString(): String = buildString { +class PowerSourceClusterBatChargeFaultChangeEvent( + val current: List, + val previous: List +) { + override fun toString(): String = buildString { append("PowerSourceClusterBatChargeFaultChangeEvent {\n") append("\tcurrent : $current\n") append("\tprevious : $previous\n") @@ -57,23 +55,25 @@ class PowerSourceClusterBatChargeFaultChangeEvent ( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : PowerSourceClusterBatChargeFaultChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): PowerSourceClusterBatChargeFaultChangeEvent { tlvReader.enterStructure(tlvTag) - val current = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val previous = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val current = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val previous = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return PowerSourceClusterBatChargeFaultChangeEvent(current, previous) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/PowerSourceClusterBatFaultChangeEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/PowerSourceClusterBatFaultChangeEvent.kt index ef4689fff56f84..7a5d133299cef5 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/PowerSourceClusterBatFaultChangeEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/PowerSourceClusterBatFaultChangeEvent.kt @@ -20,16 +20,11 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class PowerSourceClusterBatFaultChangeEvent ( - val current: List, - val previous: List) { - override fun toString(): String = buildString { +class PowerSourceClusterBatFaultChangeEvent(val current: List, val previous: List) { + override fun toString(): String = buildString { append("PowerSourceClusterBatFaultChangeEvent {\n") append("\tcurrent : $current\n") append("\tprevious : $previous\n") @@ -57,23 +52,25 @@ class PowerSourceClusterBatFaultChangeEvent ( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : PowerSourceClusterBatFaultChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): PowerSourceClusterBatFaultChangeEvent { tlvReader.enterStructure(tlvTag) - val current = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val previous = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val current = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val previous = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return PowerSourceClusterBatFaultChangeEvent(current, previous) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/PowerSourceClusterWiredFaultChangeEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/PowerSourceClusterWiredFaultChangeEvent.kt index 5062e14fc47019..1f004191d406f0 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/PowerSourceClusterWiredFaultChangeEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/PowerSourceClusterWiredFaultChangeEvent.kt @@ -20,16 +20,11 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class PowerSourceClusterWiredFaultChangeEvent ( - val current: List, - val previous: List) { - override fun toString(): String = buildString { +class PowerSourceClusterWiredFaultChangeEvent(val current: List, val previous: List) { + override fun toString(): String = buildString { append("PowerSourceClusterWiredFaultChangeEvent {\n") append("\tcurrent : $current\n") append("\tprevious : $previous\n") @@ -57,23 +52,25 @@ class PowerSourceClusterWiredFaultChangeEvent ( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : PowerSourceClusterWiredFaultChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): PowerSourceClusterWiredFaultChangeEvent { tlvReader.enterStructure(tlvTag) - val current = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val previous = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val current = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val previous = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return PowerSourceClusterWiredFaultChangeEvent(current, previous) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/RefrigeratorAlarmClusterNotifyEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/RefrigeratorAlarmClusterNotifyEvent.kt index 0d0ec7f29f122c..2584478cd02e39 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/RefrigeratorAlarmClusterNotifyEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/RefrigeratorAlarmClusterNotifyEvent.kt @@ -17,21 +17,18 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class RefrigeratorAlarmClusterNotifyEvent ( - val active: ULong, - val inactive: ULong, - val state: ULong, - val mask: ULong) { - override fun toString(): String = buildString { +class RefrigeratorAlarmClusterNotifyEvent( + val active: ULong, + val inactive: ULong, + val state: ULong, + val mask: ULong +) { + override fun toString(): String = buildString { append("RefrigeratorAlarmClusterNotifyEvent {\n") append("\tactive : $active\n") append("\tinactive : $inactive\n") @@ -57,13 +54,13 @@ class RefrigeratorAlarmClusterNotifyEvent ( private const val TAG_STATE = 2 private const val TAG_MASK = 3 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RefrigeratorAlarmClusterNotifyEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): RefrigeratorAlarmClusterNotifyEvent { tlvReader.enterStructure(tlvTag) val active = tlvReader.getULong(ContextSpecificTag(TAG_ACTIVE)) val inactive = tlvReader.getULong(ContextSpecificTag(TAG_INACTIVE)) val state = tlvReader.getULong(ContextSpecificTag(TAG_STATE)) val mask = tlvReader.getULong(ContextSpecificTag(TAG_MASK)) - + tlvReader.exitContainer() return RefrigeratorAlarmClusterNotifyEvent(active, inactive, state, mask) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationCompletionEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationCompletionEvent.kt index a9817567e22677..cfea1b82753b91 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationCompletionEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationCompletionEvent.kt @@ -17,20 +17,18 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class RvcOperationalStateClusterOperationCompletionEvent ( - val completionErrorCode: UInt, - val totalOperationalTime: Optional?, - val pausedTime: Optional?) { - override fun toString(): String = buildString { +class RvcOperationalStateClusterOperationCompletionEvent( + val completionErrorCode: UInt, + val totalOperationalTime: Optional?, + val pausedTime: Optional? +) { + override fun toString(): String = buildString { append("RvcOperationalStateClusterOperationCompletionEvent {\n") append("\tcompletionErrorCode : $completionErrorCode\n") append("\ttotalOperationalTime : $totalOperationalTime\n") @@ -43,21 +41,21 @@ class RvcOperationalStateClusterOperationCompletionEvent ( startStructure(tlvTag) put(ContextSpecificTag(TAG_COMPLETION_ERROR_CODE), completionErrorCode) if (totalOperationalTime != null) { - if (totalOperationalTime.isPresent) { - val opttotalOperationalTime = totalOperationalTime.get() - put(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME), opttotalOperationalTime) - } - } else { - putNull(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME)) - } + if (totalOperationalTime.isPresent) { + val opttotalOperationalTime = totalOperationalTime.get() + put(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME), opttotalOperationalTime) + } + } else { + putNull(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME)) + } if (pausedTime != null) { - if (pausedTime.isPresent) { - val optpausedTime = pausedTime.get() - put(ContextSpecificTag(TAG_PAUSED_TIME), optpausedTime) - } - } else { - putNull(ContextSpecificTag(TAG_PAUSED_TIME)) - } + if (pausedTime.isPresent) { + val optpausedTime = pausedTime.get() + put(ContextSpecificTag(TAG_PAUSED_TIME), optpausedTime) + } + } else { + putNull(ContextSpecificTag(TAG_PAUSED_TIME)) + } endStructure() } } @@ -67,33 +65,42 @@ class RvcOperationalStateClusterOperationCompletionEvent ( private const val TAG_TOTAL_OPERATIONAL_TIME = 1 private const val TAG_PAUSED_TIME = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RvcOperationalStateClusterOperationCompletionEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): RvcOperationalStateClusterOperationCompletionEvent { tlvReader.enterStructure(tlvTag) val completionErrorCode = tlvReader.getUInt(ContextSpecificTag(TAG_COMPLETION_ERROR_CODE)) - val totalOperationalTime = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) { - Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME)) - null - } - val pausedTime = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_PAUSED_TIME))) { - Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_PAUSED_TIME))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_PAUSED_TIME)) - null - } - + val totalOperationalTime = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) { + Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME)) + null + } + val pausedTime = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_PAUSED_TIME))) { + Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_PAUSED_TIME))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PAUSED_TIME)) + null + } + tlvReader.exitContainer() - return RvcOperationalStateClusterOperationCompletionEvent(completionErrorCode, totalOperationalTime, pausedTime) + return RvcOperationalStateClusterOperationCompletionEvent( + completionErrorCode, + totalOperationalTime, + pausedTime + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationalErrorEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationalErrorEvent.kt index 406ef9431645cd..6ad8a5e8875408 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationalErrorEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationalErrorEvent.kt @@ -17,18 +17,15 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class RvcOperationalStateClusterOperationalErrorEvent ( - val errorState: chip.devicecontroller.cluster.structs.RvcOperationalStateClusterErrorStateStruct) { - override fun toString(): String = buildString { +class RvcOperationalStateClusterOperationalErrorEvent( + val errorState: chip.devicecontroller.cluster.structs.RvcOperationalStateClusterErrorStateStruct +) { + override fun toString(): String = buildString { append("RvcOperationalStateClusterOperationalErrorEvent {\n") append("\terrorState : $errorState\n") append("}\n") @@ -45,10 +42,17 @@ class RvcOperationalStateClusterOperationalErrorEvent ( companion object { private const val TAG_ERROR_STATE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RvcOperationalStateClusterOperationalErrorEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): RvcOperationalStateClusterOperationalErrorEvent { tlvReader.enterStructure(tlvTag) - val errorState = chip.devicecontroller.cluster.structs.RvcOperationalStateClusterErrorStateStruct.fromTlv(ContextSpecificTag(TAG_ERROR_STATE), tlvReader) - + val errorState = + chip.devicecontroller.cluster.structs.RvcOperationalStateClusterErrorStateStruct.fromTlv( + ContextSpecificTag(TAG_ERROR_STATE), + tlvReader + ) + tlvReader.exitContainer() return RvcOperationalStateClusterOperationalErrorEvent(errorState) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterCOAlarmEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterCOAlarmEvent.kt index 48acd74033fca2..a34090499ca233 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterCOAlarmEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterCOAlarmEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class SmokeCoAlarmClusterCOAlarmEvent ( - val alarmSeverityLevel: UInt) { - override fun toString(): String = buildString { +class SmokeCoAlarmClusterCOAlarmEvent(val alarmSeverityLevel: UInt) { + override fun toString(): String = buildString { append("SmokeCoAlarmClusterCOAlarmEvent {\n") append("\talarmSeverityLevel : $alarmSeverityLevel\n") append("}\n") @@ -45,10 +40,10 @@ class SmokeCoAlarmClusterCOAlarmEvent ( companion object { private const val TAG_ALARM_SEVERITY_LEVEL = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SmokeCoAlarmClusterCOAlarmEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SmokeCoAlarmClusterCOAlarmEvent { tlvReader.enterStructure(tlvTag) val alarmSeverityLevel = tlvReader.getUInt(ContextSpecificTag(TAG_ALARM_SEVERITY_LEVEL)) - + tlvReader.exitContainer() return SmokeCoAlarmClusterCOAlarmEvent(alarmSeverityLevel) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectCOAlarmEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectCOAlarmEvent.kt index 685a6ab5fc1059..c3ec4fbf491c87 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectCOAlarmEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectCOAlarmEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class SmokeCoAlarmClusterInterconnectCOAlarmEvent ( - val alarmSeverityLevel: UInt) { - override fun toString(): String = buildString { +class SmokeCoAlarmClusterInterconnectCOAlarmEvent(val alarmSeverityLevel: UInt) { + override fun toString(): String = buildString { append("SmokeCoAlarmClusterInterconnectCOAlarmEvent {\n") append("\talarmSeverityLevel : $alarmSeverityLevel\n") append("}\n") @@ -45,10 +40,10 @@ class SmokeCoAlarmClusterInterconnectCOAlarmEvent ( companion object { private const val TAG_ALARM_SEVERITY_LEVEL = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SmokeCoAlarmClusterInterconnectCOAlarmEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SmokeCoAlarmClusterInterconnectCOAlarmEvent { tlvReader.enterStructure(tlvTag) val alarmSeverityLevel = tlvReader.getUInt(ContextSpecificTag(TAG_ALARM_SEVERITY_LEVEL)) - + tlvReader.exitContainer() return SmokeCoAlarmClusterInterconnectCOAlarmEvent(alarmSeverityLevel) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectSmokeAlarmEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectSmokeAlarmEvent.kt index 1fb60bf24aec59..3957d722ade622 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectSmokeAlarmEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectSmokeAlarmEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class SmokeCoAlarmClusterInterconnectSmokeAlarmEvent ( - val alarmSeverityLevel: UInt) { - override fun toString(): String = buildString { +class SmokeCoAlarmClusterInterconnectSmokeAlarmEvent(val alarmSeverityLevel: UInt) { + override fun toString(): String = buildString { append("SmokeCoAlarmClusterInterconnectSmokeAlarmEvent {\n") append("\talarmSeverityLevel : $alarmSeverityLevel\n") append("}\n") @@ -45,10 +40,10 @@ class SmokeCoAlarmClusterInterconnectSmokeAlarmEvent ( companion object { private const val TAG_ALARM_SEVERITY_LEVEL = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SmokeCoAlarmClusterInterconnectSmokeAlarmEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SmokeCoAlarmClusterInterconnectSmokeAlarmEvent { tlvReader.enterStructure(tlvTag) val alarmSeverityLevel = tlvReader.getUInt(ContextSpecificTag(TAG_ALARM_SEVERITY_LEVEL)) - + tlvReader.exitContainer() return SmokeCoAlarmClusterInterconnectSmokeAlarmEvent(alarmSeverityLevel) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterLowBatteryEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterLowBatteryEvent.kt index 91345969b757b4..e855a9391a7491 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterLowBatteryEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterLowBatteryEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class SmokeCoAlarmClusterLowBatteryEvent ( - val alarmSeverityLevel: UInt) { - override fun toString(): String = buildString { +class SmokeCoAlarmClusterLowBatteryEvent(val alarmSeverityLevel: UInt) { + override fun toString(): String = buildString { append("SmokeCoAlarmClusterLowBatteryEvent {\n") append("\talarmSeverityLevel : $alarmSeverityLevel\n") append("}\n") @@ -45,10 +40,10 @@ class SmokeCoAlarmClusterLowBatteryEvent ( companion object { private const val TAG_ALARM_SEVERITY_LEVEL = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SmokeCoAlarmClusterLowBatteryEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SmokeCoAlarmClusterLowBatteryEvent { tlvReader.enterStructure(tlvTag) val alarmSeverityLevel = tlvReader.getUInt(ContextSpecificTag(TAG_ALARM_SEVERITY_LEVEL)) - + tlvReader.exitContainer() return SmokeCoAlarmClusterLowBatteryEvent(alarmSeverityLevel) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterSmokeAlarmEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterSmokeAlarmEvent.kt index 3494dffe4f3d5b..5e5ff96385c265 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterSmokeAlarmEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterSmokeAlarmEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class SmokeCoAlarmClusterSmokeAlarmEvent ( - val alarmSeverityLevel: UInt) { - override fun toString(): String = buildString { +class SmokeCoAlarmClusterSmokeAlarmEvent(val alarmSeverityLevel: UInt) { + override fun toString(): String = buildString { append("SmokeCoAlarmClusterSmokeAlarmEvent {\n") append("\talarmSeverityLevel : $alarmSeverityLevel\n") append("}\n") @@ -45,10 +40,10 @@ class SmokeCoAlarmClusterSmokeAlarmEvent ( companion object { private const val TAG_ALARM_SEVERITY_LEVEL = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SmokeCoAlarmClusterSmokeAlarmEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SmokeCoAlarmClusterSmokeAlarmEvent { tlvReader.enterStructure(tlvTag) val alarmSeverityLevel = tlvReader.getUInt(ContextSpecificTag(TAG_ALARM_SEVERITY_LEVEL)) - + tlvReader.exitContainer() return SmokeCoAlarmClusterSmokeAlarmEvent(alarmSeverityLevel) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SoftwareDiagnosticsClusterSoftwareFaultEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SoftwareDiagnosticsClusterSoftwareFaultEvent.kt index b0e0d4844fadca..d3389bbaf8f367 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SoftwareDiagnosticsClusterSoftwareFaultEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SoftwareDiagnosticsClusterSoftwareFaultEvent.kt @@ -17,20 +17,18 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class SoftwareDiagnosticsClusterSoftwareFaultEvent ( - val id: ULong, - val name: Optional, - val faultRecording: Optional) { - override fun toString(): String = buildString { +class SoftwareDiagnosticsClusterSoftwareFaultEvent( + val id: ULong, + val name: Optional, + val faultRecording: Optional +) { + override fun toString(): String = buildString { append("SoftwareDiagnosticsClusterSoftwareFaultEvent {\n") append("\tid : $id\n") append("\tname : $name\n") @@ -43,13 +41,13 @@ class SoftwareDiagnosticsClusterSoftwareFaultEvent ( startStructure(tlvTag) put(ContextSpecificTag(TAG_ID), id) if (name.isPresent) { - val optname = name.get() - put(ContextSpecificTag(TAG_NAME), optname) - } + val optname = name.get() + put(ContextSpecificTag(TAG_NAME), optname) + } if (faultRecording.isPresent) { - val optfaultRecording = faultRecording.get() - put(ContextSpecificTag(TAG_FAULT_RECORDING), optfaultRecording) - } + val optfaultRecording = faultRecording.get() + put(ContextSpecificTag(TAG_FAULT_RECORDING), optfaultRecording) + } endStructure() } } @@ -59,20 +57,22 @@ class SoftwareDiagnosticsClusterSoftwareFaultEvent ( private const val TAG_NAME = 1 private const val TAG_FAULT_RECORDING = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SoftwareDiagnosticsClusterSoftwareFaultEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SoftwareDiagnosticsClusterSoftwareFaultEvent { tlvReader.enterStructure(tlvTag) val id = tlvReader.getULong(ContextSpecificTag(TAG_ID)) - val name = if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) - } else { - Optional.empty() - } - val faultRecording = if (tlvReader.isNextTag(ContextSpecificTag(TAG_FAULT_RECORDING))) { - Optional.of(tlvReader.getByteArray(ContextSpecificTag(TAG_FAULT_RECORDING))) - } else { - Optional.empty() - } - + val name = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) + } else { + Optional.empty() + } + val faultRecording = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_FAULT_RECORDING))) { + Optional.of(tlvReader.getByteArray(ContextSpecificTag(TAG_FAULT_RECORDING))) + } else { + Optional.empty() + } + tlvReader.exitContainer() return SoftwareDiagnosticsClusterSoftwareFaultEvent(id, name, faultRecording) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterInitialPressEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterInitialPressEvent.kt index fa3cf254ebdb96..965bc1a81af5ac 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterInitialPressEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterInitialPressEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class SwitchClusterInitialPressEvent ( - val newPosition: UInt) { - override fun toString(): String = buildString { +class SwitchClusterInitialPressEvent(val newPosition: UInt) { + override fun toString(): String = buildString { append("SwitchClusterInitialPressEvent {\n") append("\tnewPosition : $newPosition\n") append("}\n") @@ -45,10 +40,10 @@ class SwitchClusterInitialPressEvent ( companion object { private const val TAG_NEW_POSITION = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SwitchClusterInitialPressEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SwitchClusterInitialPressEvent { tlvReader.enterStructure(tlvTag) val newPosition = tlvReader.getUInt(ContextSpecificTag(TAG_NEW_POSITION)) - + tlvReader.exitContainer() return SwitchClusterInitialPressEvent(newPosition) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterLongPressEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterLongPressEvent.kt index 2748e8e6a44449..e986ef1d8d97fe 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterLongPressEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterLongPressEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class SwitchClusterLongPressEvent ( - val newPosition: UInt) { - override fun toString(): String = buildString { +class SwitchClusterLongPressEvent(val newPosition: UInt) { + override fun toString(): String = buildString { append("SwitchClusterLongPressEvent {\n") append("\tnewPosition : $newPosition\n") append("}\n") @@ -45,10 +40,10 @@ class SwitchClusterLongPressEvent ( companion object { private const val TAG_NEW_POSITION = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SwitchClusterLongPressEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SwitchClusterLongPressEvent { tlvReader.enterStructure(tlvTag) val newPosition = tlvReader.getUInt(ContextSpecificTag(TAG_NEW_POSITION)) - + tlvReader.exitContainer() return SwitchClusterLongPressEvent(newPosition) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterLongReleaseEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterLongReleaseEvent.kt index f4661d48d8e63e..e99b119d906e8b 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterLongReleaseEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterLongReleaseEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class SwitchClusterLongReleaseEvent ( - val previousPosition: UInt) { - override fun toString(): String = buildString { +class SwitchClusterLongReleaseEvent(val previousPosition: UInt) { + override fun toString(): String = buildString { append("SwitchClusterLongReleaseEvent {\n") append("\tpreviousPosition : $previousPosition\n") append("}\n") @@ -45,10 +40,10 @@ class SwitchClusterLongReleaseEvent ( companion object { private const val TAG_PREVIOUS_POSITION = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SwitchClusterLongReleaseEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SwitchClusterLongReleaseEvent { tlvReader.enterStructure(tlvTag) val previousPosition = tlvReader.getUInt(ContextSpecificTag(TAG_PREVIOUS_POSITION)) - + tlvReader.exitContainer() return SwitchClusterLongReleaseEvent(previousPosition) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressCompleteEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressCompleteEvent.kt index b5d580a7cf0c55..381ec17ae29ac5 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressCompleteEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressCompleteEvent.kt @@ -17,19 +17,16 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class SwitchClusterMultiPressCompleteEvent ( - val previousPosition: UInt, - val totalNumberOfPressesCounted: UInt) { - override fun toString(): String = buildString { +class SwitchClusterMultiPressCompleteEvent( + val previousPosition: UInt, + val totalNumberOfPressesCounted: UInt +) { + override fun toString(): String = buildString { append("SwitchClusterMultiPressCompleteEvent {\n") append("\tpreviousPosition : $previousPosition\n") append("\ttotalNumberOfPressesCounted : $totalNumberOfPressesCounted\n") @@ -49,11 +46,12 @@ class SwitchClusterMultiPressCompleteEvent ( private const val TAG_PREVIOUS_POSITION = 0 private const val TAG_TOTAL_NUMBER_OF_PRESSES_COUNTED = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SwitchClusterMultiPressCompleteEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SwitchClusterMultiPressCompleteEvent { tlvReader.enterStructure(tlvTag) val previousPosition = tlvReader.getUInt(ContextSpecificTag(TAG_PREVIOUS_POSITION)) - val totalNumberOfPressesCounted = tlvReader.getUInt(ContextSpecificTag(TAG_TOTAL_NUMBER_OF_PRESSES_COUNTED)) - + val totalNumberOfPressesCounted = + tlvReader.getUInt(ContextSpecificTag(TAG_TOTAL_NUMBER_OF_PRESSES_COUNTED)) + tlvReader.exitContainer() return SwitchClusterMultiPressCompleteEvent(previousPosition, totalNumberOfPressesCounted) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressOngoingEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressOngoingEvent.kt index fcaf6c0ca5ef5f..dd904f59cb9fdc 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressOngoingEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressOngoingEvent.kt @@ -17,19 +17,16 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class SwitchClusterMultiPressOngoingEvent ( - val newPosition: UInt, - val currentNumberOfPressesCounted: UInt) { - override fun toString(): String = buildString { +class SwitchClusterMultiPressOngoingEvent( + val newPosition: UInt, + val currentNumberOfPressesCounted: UInt +) { + override fun toString(): String = buildString { append("SwitchClusterMultiPressOngoingEvent {\n") append("\tnewPosition : $newPosition\n") append("\tcurrentNumberOfPressesCounted : $currentNumberOfPressesCounted\n") @@ -49,11 +46,12 @@ class SwitchClusterMultiPressOngoingEvent ( private const val TAG_NEW_POSITION = 0 private const val TAG_CURRENT_NUMBER_OF_PRESSES_COUNTED = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SwitchClusterMultiPressOngoingEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SwitchClusterMultiPressOngoingEvent { tlvReader.enterStructure(tlvTag) val newPosition = tlvReader.getUInt(ContextSpecificTag(TAG_NEW_POSITION)) - val currentNumberOfPressesCounted = tlvReader.getUInt(ContextSpecificTag(TAG_CURRENT_NUMBER_OF_PRESSES_COUNTED)) - + val currentNumberOfPressesCounted = + tlvReader.getUInt(ContextSpecificTag(TAG_CURRENT_NUMBER_OF_PRESSES_COUNTED)) + tlvReader.exitContainer() return SwitchClusterMultiPressOngoingEvent(newPosition, currentNumberOfPressesCounted) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterShortReleaseEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterShortReleaseEvent.kt index 91a786b4f78740..477dc53e895a2a 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterShortReleaseEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterShortReleaseEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class SwitchClusterShortReleaseEvent ( - val previousPosition: UInt) { - override fun toString(): String = buildString { +class SwitchClusterShortReleaseEvent(val previousPosition: UInt) { + override fun toString(): String = buildString { append("SwitchClusterShortReleaseEvent {\n") append("\tpreviousPosition : $previousPosition\n") append("}\n") @@ -45,10 +40,10 @@ class SwitchClusterShortReleaseEvent ( companion object { private const val TAG_PREVIOUS_POSITION = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SwitchClusterShortReleaseEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SwitchClusterShortReleaseEvent { tlvReader.enterStructure(tlvTag) val previousPosition = tlvReader.getUInt(ContextSpecificTag(TAG_PREVIOUS_POSITION)) - + tlvReader.exitContainer() return SwitchClusterShortReleaseEvent(previousPosition) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterSwitchLatchedEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterSwitchLatchedEvent.kt index f6537ab66e931a..6a2ea4883e4f6f 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterSwitchLatchedEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterSwitchLatchedEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class SwitchClusterSwitchLatchedEvent ( - val newPosition: UInt) { - override fun toString(): String = buildString { +class SwitchClusterSwitchLatchedEvent(val newPosition: UInt) { + override fun toString(): String = buildString { append("SwitchClusterSwitchLatchedEvent {\n") append("\tnewPosition : $newPosition\n") append("}\n") @@ -45,10 +40,10 @@ class SwitchClusterSwitchLatchedEvent ( companion object { private const val TAG_NEW_POSITION = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SwitchClusterSwitchLatchedEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SwitchClusterSwitchLatchedEvent { tlvReader.enterStructure(tlvTag) val newPosition = tlvReader.getUInt(ContextSpecificTag(TAG_NEW_POSITION)) - + tlvReader.exitContainer() return SwitchClusterSwitchLatchedEvent(newPosition) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterConnectionStatusEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterConnectionStatusEvent.kt index 7a9290a163f25e..dc55e372090536 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterConnectionStatusEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterConnectionStatusEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ThreadNetworkDiagnosticsClusterConnectionStatusEvent ( - val connectionStatus: UInt) { - override fun toString(): String = buildString { +class ThreadNetworkDiagnosticsClusterConnectionStatusEvent(val connectionStatus: UInt) { + override fun toString(): String = buildString { append("ThreadNetworkDiagnosticsClusterConnectionStatusEvent {\n") append("\tconnectionStatus : $connectionStatus\n") append("}\n") @@ -45,10 +40,13 @@ class ThreadNetworkDiagnosticsClusterConnectionStatusEvent ( companion object { private const val TAG_CONNECTION_STATUS = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ThreadNetworkDiagnosticsClusterConnectionStatusEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): ThreadNetworkDiagnosticsClusterConnectionStatusEvent { tlvReader.enterStructure(tlvTag) val connectionStatus = tlvReader.getUInt(ContextSpecificTag(TAG_CONNECTION_STATUS)) - + tlvReader.exitContainer() return ThreadNetworkDiagnosticsClusterConnectionStatusEvent(connectionStatus) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent.kt index 384675b471a0d6..f2ce60e4c710ba 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent.kt @@ -20,16 +20,14 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent ( - val current: List, - val previous: List) { - override fun toString(): String = buildString { +class ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent( + val current: List, + val previous: List +) { + override fun toString(): String = buildString { append("ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent {\n") append("\tcurrent : $current\n") append("\tprevious : $previous\n") @@ -57,23 +55,28 @@ class ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent ( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent { tlvReader.enterStructure(tlvTag) - val current = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val previous = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val current = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val previous = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent(current, previous) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterDSTStatusEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterDSTStatusEvent.kt index d4162a1dd3f5ae..7564293e97be61 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterDSTStatusEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterDSTStatusEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class TimeSynchronizationClusterDSTStatusEvent ( - val DSTOffsetActive: Boolean) { - override fun toString(): String = buildString { +class TimeSynchronizationClusterDSTStatusEvent(val DSTOffsetActive: Boolean) { + override fun toString(): String = buildString { append("TimeSynchronizationClusterDSTStatusEvent {\n") append("\tDSTOffsetActive : $DSTOffsetActive\n") append("}\n") @@ -45,10 +40,10 @@ class TimeSynchronizationClusterDSTStatusEvent ( companion object { private const val TAG_D_S_T_OFFSET_ACTIVE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : TimeSynchronizationClusterDSTStatusEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): TimeSynchronizationClusterDSTStatusEvent { tlvReader.enterStructure(tlvTag) val DSTOffsetActive = tlvReader.getBoolean(ContextSpecificTag(TAG_D_S_T_OFFSET_ACTIVE)) - + tlvReader.exitContainer() return TimeSynchronizationClusterDSTStatusEvent(DSTOffsetActive) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterTimeZoneStatusEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterTimeZoneStatusEvent.kt index 52b2b4fd1e1dfa..9e9d5ef9f1355f 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterTimeZoneStatusEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterTimeZoneStatusEvent.kt @@ -17,19 +17,14 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class TimeSynchronizationClusterTimeZoneStatusEvent ( - val offset: Long, - val name: Optional) { - override fun toString(): String = buildString { +class TimeSynchronizationClusterTimeZoneStatusEvent(val offset: Long, val name: Optional) { + override fun toString(): String = buildString { append("TimeSynchronizationClusterTimeZoneStatusEvent {\n") append("\toffset : $offset\n") append("\tname : $name\n") @@ -41,9 +36,9 @@ class TimeSynchronizationClusterTimeZoneStatusEvent ( startStructure(tlvTag) put(ContextSpecificTag(TAG_OFFSET), offset) if (name.isPresent) { - val optname = name.get() - put(ContextSpecificTag(TAG_NAME), optname) - } + val optname = name.get() + put(ContextSpecificTag(TAG_NAME), optname) + } endStructure() } } @@ -52,15 +47,16 @@ class TimeSynchronizationClusterTimeZoneStatusEvent ( private const val TAG_OFFSET = 0 private const val TAG_NAME = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : TimeSynchronizationClusterTimeZoneStatusEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): TimeSynchronizationClusterTimeZoneStatusEvent { tlvReader.enterStructure(tlvTag) val offset = tlvReader.getLong(ContextSpecificTag(TAG_OFFSET)) - val name = if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) - } else { - Optional.empty() - } - + val name = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) + } else { + Optional.empty() + } + tlvReader.exitContainer() return TimeSynchronizationClusterTimeZoneStatusEvent(offset, name) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/UnitTestingClusterTestEventEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/UnitTestingClusterTestEventEvent.kt index 89dbdc9593b84e..d92c0b6b531a6b 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/UnitTestingClusterTestEventEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/UnitTestingClusterTestEventEvent.kt @@ -20,20 +20,18 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class UnitTestingClusterTestEventEvent ( - val arg1: UInt, - val arg2: UInt, - val arg3: Boolean, - val arg4: chip.devicecontroller.cluster.structs.UnitTestingClusterSimpleStruct, - val arg5: List, - val arg6: List) { - override fun toString(): String = buildString { +class UnitTestingClusterTestEventEvent( + val arg1: UInt, + val arg2: UInt, + val arg3: Boolean, + val arg4: chip.devicecontroller.cluster.structs.UnitTestingClusterSimpleStruct, + val arg5: List, + val arg6: List +) { + override fun toString(): String = buildString { append("UnitTestingClusterTestEventEvent {\n") append("\targ1 : $arg1\n") append("\targ2 : $arg2\n") @@ -73,27 +71,38 @@ class UnitTestingClusterTestEventEvent ( private const val TAG_ARG5 = 5 private const val TAG_ARG6 = 6 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : UnitTestingClusterTestEventEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UnitTestingClusterTestEventEvent { tlvReader.enterStructure(tlvTag) val arg1 = tlvReader.getUInt(ContextSpecificTag(TAG_ARG1)) val arg2 = tlvReader.getUInt(ContextSpecificTag(TAG_ARG2)) val arg3 = tlvReader.getBoolean(ContextSpecificTag(TAG_ARG3)) - val arg4 = chip.devicecontroller.cluster.structs.UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_ARG4), tlvReader) - val arg5 = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_ARG5)) - while(!tlvReader.isEndOfContainer()) { - this.add(chip.devicecontroller.cluster.structs.UnitTestingClusterSimpleStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - val arg6 = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_ARG6)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val arg4 = + chip.devicecontroller.cluster.structs.UnitTestingClusterSimpleStruct.fromTlv( + ContextSpecificTag(TAG_ARG4), + tlvReader + ) + val arg5 = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_ARG5)) + while (!tlvReader.isEndOfContainer()) { + this.add( + chip.devicecontroller.cluster.structs.UnitTestingClusterSimpleStruct.fromTlv( + AnonymousTag, + tlvReader + ) + ) + } + tlvReader.exitContainer() + } + val arg6 = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_ARG6)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return UnitTestingClusterTestEventEvent(arg1, arg2, arg3, arg4, arg5, arg6) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/UnitTestingClusterTestFabricScopedEventEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/UnitTestingClusterTestFabricScopedEventEvent.kt index b71c9c788a3a76..b6cc1c77125923 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/UnitTestingClusterTestFabricScopedEventEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/UnitTestingClusterTestFabricScopedEventEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class UnitTestingClusterTestFabricScopedEventEvent ( - val fabricIndex: UInt) { - override fun toString(): String = buildString { +class UnitTestingClusterTestFabricScopedEventEvent(val fabricIndex: UInt) { + override fun toString(): String = buildString { append("UnitTestingClusterTestFabricScopedEventEvent {\n") append("\tfabricIndex : $fabricIndex\n") append("}\n") @@ -45,10 +40,10 @@ class UnitTestingClusterTestFabricScopedEventEvent ( companion object { private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : UnitTestingClusterTestFabricScopedEventEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UnitTestingClusterTestFabricScopedEventEvent { tlvReader.enterStructure(tlvTag) val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() return UnitTestingClusterTestFabricScopedEventEvent(fabricIndex) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterAssociationFailureEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterAssociationFailureEvent.kt index 353230c4664dc5..2f94dc8e6b1c58 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterAssociationFailureEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterAssociationFailureEvent.kt @@ -17,19 +17,16 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class WiFiNetworkDiagnosticsClusterAssociationFailureEvent ( - val associationFailureCause: UInt, - val status: UInt) { - override fun toString(): String = buildString { +class WiFiNetworkDiagnosticsClusterAssociationFailureEvent( + val associationFailureCause: UInt, + val status: UInt +) { + override fun toString(): String = buildString { append("WiFiNetworkDiagnosticsClusterAssociationFailureEvent {\n") append("\tassociationFailureCause : $associationFailureCause\n") append("\tstatus : $status\n") @@ -49,11 +46,15 @@ class WiFiNetworkDiagnosticsClusterAssociationFailureEvent ( private const val TAG_ASSOCIATION_FAILURE_CAUSE = 0 private const val TAG_STATUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : WiFiNetworkDiagnosticsClusterAssociationFailureEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): WiFiNetworkDiagnosticsClusterAssociationFailureEvent { tlvReader.enterStructure(tlvTag) - val associationFailureCause = tlvReader.getUInt(ContextSpecificTag(TAG_ASSOCIATION_FAILURE_CAUSE)) + val associationFailureCause = + tlvReader.getUInt(ContextSpecificTag(TAG_ASSOCIATION_FAILURE_CAUSE)) val status = tlvReader.getUInt(ContextSpecificTag(TAG_STATUS)) - + tlvReader.exitContainer() return WiFiNetworkDiagnosticsClusterAssociationFailureEvent(associationFailureCause, status) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterConnectionStatusEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterConnectionStatusEvent.kt index e106ddd9b7498d..34b126059fffd2 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterConnectionStatusEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterConnectionStatusEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class WiFiNetworkDiagnosticsClusterConnectionStatusEvent ( - val connectionStatus: UInt) { - override fun toString(): String = buildString { +class WiFiNetworkDiagnosticsClusterConnectionStatusEvent(val connectionStatus: UInt) { + override fun toString(): String = buildString { append("WiFiNetworkDiagnosticsClusterConnectionStatusEvent {\n") append("\tconnectionStatus : $connectionStatus\n") append("}\n") @@ -45,10 +40,13 @@ class WiFiNetworkDiagnosticsClusterConnectionStatusEvent ( companion object { private const val TAG_CONNECTION_STATUS = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : WiFiNetworkDiagnosticsClusterConnectionStatusEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): WiFiNetworkDiagnosticsClusterConnectionStatusEvent { tlvReader.enterStructure(tlvTag) val connectionStatus = tlvReader.getUInt(ContextSpecificTag(TAG_CONNECTION_STATUS)) - + tlvReader.exitContainer() return WiFiNetworkDiagnosticsClusterConnectionStatusEvent(connectionStatus) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterDisconnectionEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterDisconnectionEvent.kt index 33cb99c03f48a2..9c0875da20a177 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterDisconnectionEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterDisconnectionEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class WiFiNetworkDiagnosticsClusterDisconnectionEvent ( - val reasonCode: UInt) { - override fun toString(): String = buildString { +class WiFiNetworkDiagnosticsClusterDisconnectionEvent(val reasonCode: UInt) { + override fun toString(): String = buildString { append("WiFiNetworkDiagnosticsClusterDisconnectionEvent {\n") append("\treasonCode : $reasonCode\n") append("}\n") @@ -45,10 +40,13 @@ class WiFiNetworkDiagnosticsClusterDisconnectionEvent ( companion object { private const val TAG_REASON_CODE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : WiFiNetworkDiagnosticsClusterDisconnectionEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): WiFiNetworkDiagnosticsClusterDisconnectionEvent { tlvReader.enterStructure(tlvTag) val reasonCode = tlvReader.getUInt(ContextSpecificTag(TAG_REASON_CODE)) - + tlvReader.exitContainer() return WiFiNetworkDiagnosticsClusterDisconnectionEvent(reasonCode) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AccessControlClusterAccessControlEntryStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AccessControlClusterAccessControlEntryStruct.kt index d228ef19fb8e79..ad7257cc39f901 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AccessControlClusterAccessControlEntryStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AccessControlClusterAccessControlEntryStruct.kt @@ -20,19 +20,17 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class AccessControlClusterAccessControlEntryStruct ( - val privilege: UInt, - val authMode: UInt, - val subjects: List?, - val targets: List?, - val fabricIndex: UInt) { - override fun toString(): String = buildString { +class AccessControlClusterAccessControlEntryStruct( + val privilege: UInt, + val authMode: UInt, + val subjects: List?, + val targets: List?, + val fabricIndex: UInt +) { + override fun toString(): String = buildString { append("AccessControlClusterAccessControlEntryStruct {\n") append("\tprivilege : $privilege\n") append("\tauthMode : $authMode\n") @@ -48,23 +46,23 @@ class AccessControlClusterAccessControlEntryStruct ( put(ContextSpecificTag(TAG_PRIVILEGE), privilege) put(ContextSpecificTag(TAG_AUTH_MODE), authMode) if (subjects != null) { - startArray(ContextSpecificTag(TAG_SUBJECTS)) - for (item in subjects.iterator()) { - put(AnonymousTag, item) + startArray(ContextSpecificTag(TAG_SUBJECTS)) + for (item in subjects.iterator()) { + put(AnonymousTag, item) + } + endArray() + } else { + putNull(ContextSpecificTag(TAG_SUBJECTS)) } - endArray() - } else { - putNull(ContextSpecificTag(TAG_SUBJECTS)) - } if (targets != null) { - startArray(ContextSpecificTag(TAG_TARGETS)) - for (item in targets.iterator()) { - item.toTlv(AnonymousTag, this) + startArray(ContextSpecificTag(TAG_TARGETS)) + for (item in targets.iterator()) { + item.toTlv(AnonymousTag, this) + } + endArray() + } else { + putNull(ContextSpecificTag(TAG_TARGETS)) } - endArray() - } else { - putNull(ContextSpecificTag(TAG_TARGETS)) - } put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) endStructure() } @@ -77,39 +75,47 @@ class AccessControlClusterAccessControlEntryStruct ( private const val TAG_TARGETS = 4 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : AccessControlClusterAccessControlEntryStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): AccessControlClusterAccessControlEntryStruct { tlvReader.enterStructure(tlvTag) val privilege = tlvReader.getUInt(ContextSpecificTag(TAG_PRIVILEGE)) val authMode = tlvReader.getUInt(ContextSpecificTag(TAG_AUTH_MODE)) - val subjects = if (!tlvReader.isNull()) { - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_SUBJECTS)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getULong(AnonymousTag)) - } - tlvReader.exitContainer() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_SUBJECTS)) - null - } - val targets = if (!tlvReader.isNull()) { - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_TARGETS)) - while(!tlvReader.isEndOfContainer()) { - add(AccessControlClusterAccessControlTargetStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_TARGETS)) - null - } + val subjects = + if (!tlvReader.isNull()) { + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_SUBJECTS)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getULong(AnonymousTag)) + } + tlvReader.exitContainer() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_SUBJECTS)) + null + } + val targets = + if (!tlvReader.isNull()) { + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_TARGETS)) + while (!tlvReader.isEndOfContainer()) { + add(AccessControlClusterAccessControlTargetStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_TARGETS)) + null + } val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() - return AccessControlClusterAccessControlEntryStruct(privilege, authMode, subjects, targets, fabricIndex) + return AccessControlClusterAccessControlEntryStruct( + privilege, + authMode, + subjects, + targets, + fabricIndex + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AccessControlClusterAccessControlExtensionStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AccessControlClusterAccessControlExtensionStruct.kt index b41ebafd9de72a..c75c7632f06be3 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AccessControlClusterAccessControlExtensionStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AccessControlClusterAccessControlExtensionStruct.kt @@ -17,19 +17,13 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class AccessControlClusterAccessControlExtensionStruct ( - val data: ByteArray, - val fabricIndex: UInt) { - override fun toString(): String = buildString { +class AccessControlClusterAccessControlExtensionStruct(val data: ByteArray, val fabricIndex: UInt) { + override fun toString(): String = buildString { append("AccessControlClusterAccessControlExtensionStruct {\n") append("\tdata : $data\n") append("\tfabricIndex : $fabricIndex\n") @@ -49,11 +43,14 @@ class AccessControlClusterAccessControlExtensionStruct ( private const val TAG_DATA = 1 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : AccessControlClusterAccessControlExtensionStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): AccessControlClusterAccessControlExtensionStruct { tlvReader.enterStructure(tlvTag) val data = tlvReader.getByteArray(ContextSpecificTag(TAG_DATA)) val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() return AccessControlClusterAccessControlExtensionStruct(data, fabricIndex) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AccessControlClusterAccessControlTargetStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AccessControlClusterAccessControlTargetStruct.kt index 1eab00f450d8f0..5fb4de109d6c6a 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AccessControlClusterAccessControlTargetStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AccessControlClusterAccessControlTargetStruct.kt @@ -17,20 +17,17 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class AccessControlClusterAccessControlTargetStruct ( - val cluster: ULong?, - val endpoint: UInt?, - val deviceType: ULong?) { - override fun toString(): String = buildString { +class AccessControlClusterAccessControlTargetStruct( + val cluster: ULong?, + val endpoint: UInt?, + val deviceType: ULong? +) { + override fun toString(): String = buildString { append("AccessControlClusterAccessControlTargetStruct {\n") append("\tcluster : $cluster\n") append("\tendpoint : $endpoint\n") @@ -42,20 +39,20 @@ class AccessControlClusterAccessControlTargetStruct ( tlvWriter.apply { startStructure(tlvTag) if (cluster != null) { - put(ContextSpecificTag(TAG_CLUSTER), cluster) - } else { - putNull(ContextSpecificTag(TAG_CLUSTER)) - } + put(ContextSpecificTag(TAG_CLUSTER), cluster) + } else { + putNull(ContextSpecificTag(TAG_CLUSTER)) + } if (endpoint != null) { - put(ContextSpecificTag(TAG_ENDPOINT), endpoint) - } else { - putNull(ContextSpecificTag(TAG_ENDPOINT)) - } + put(ContextSpecificTag(TAG_ENDPOINT), endpoint) + } else { + putNull(ContextSpecificTag(TAG_ENDPOINT)) + } if (deviceType != null) { - put(ContextSpecificTag(TAG_DEVICE_TYPE), deviceType) - } else { - putNull(ContextSpecificTag(TAG_DEVICE_TYPE)) - } + put(ContextSpecificTag(TAG_DEVICE_TYPE), deviceType) + } else { + putNull(ContextSpecificTag(TAG_DEVICE_TYPE)) + } endStructure() } } @@ -65,27 +62,30 @@ class AccessControlClusterAccessControlTargetStruct ( private const val TAG_ENDPOINT = 1 private const val TAG_DEVICE_TYPE = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : AccessControlClusterAccessControlTargetStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): AccessControlClusterAccessControlTargetStruct { tlvReader.enterStructure(tlvTag) - val cluster = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_CLUSTER)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_CLUSTER)) - null - } - val endpoint = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_ENDPOINT)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_ENDPOINT)) - null - } - val deviceType = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_DEVICE_TYPE)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_DEVICE_TYPE)) - null - } - + val cluster = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_CLUSTER)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_CLUSTER)) + null + } + val endpoint = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_ENDPOINT)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_ENDPOINT)) + null + } + val deviceType = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_DEVICE_TYPE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_DEVICE_TYPE)) + null + } + tlvReader.exitContainer() return AccessControlClusterAccessControlTargetStruct(cluster, endpoint, deviceType) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ActionsClusterActionStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ActionsClusterActionStruct.kt index 8ae474f8e727db..5d5c21a6906968 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ActionsClusterActionStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ActionsClusterActionStruct.kt @@ -17,23 +17,20 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ActionsClusterActionStruct ( - val actionID: UInt, - val name: String, - val type: UInt, - val endpointListID: UInt, - val supportedCommands: UInt, - val state: UInt) { - override fun toString(): String = buildString { +class ActionsClusterActionStruct( + val actionID: UInt, + val name: String, + val type: UInt, + val endpointListID: UInt, + val supportedCommands: UInt, + val state: UInt +) { + override fun toString(): String = buildString { append("ActionsClusterActionStruct {\n") append("\tactionID : $actionID\n") append("\tname : $name\n") @@ -65,7 +62,7 @@ class ActionsClusterActionStruct ( private const val TAG_SUPPORTED_COMMANDS = 4 private const val TAG_STATE = 5 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ActionsClusterActionStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ActionsClusterActionStruct { tlvReader.enterStructure(tlvTag) val actionID = tlvReader.getUInt(ContextSpecificTag(TAG_ACTION_I_D)) val name = tlvReader.getString(ContextSpecificTag(TAG_NAME)) @@ -73,10 +70,17 @@ class ActionsClusterActionStruct ( val endpointListID = tlvReader.getUInt(ContextSpecificTag(TAG_ENDPOINT_LIST_I_D)) val supportedCommands = tlvReader.getUInt(ContextSpecificTag(TAG_SUPPORTED_COMMANDS)) val state = tlvReader.getUInt(ContextSpecificTag(TAG_STATE)) - + tlvReader.exitContainer() - return ActionsClusterActionStruct(actionID, name, type, endpointListID, supportedCommands, state) + return ActionsClusterActionStruct( + actionID, + name, + type, + endpointListID, + supportedCommands, + state + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ActionsClusterEndpointListStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ActionsClusterEndpointListStruct.kt index a8f078a4ba75c6..d5716531a18c99 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ActionsClusterEndpointListStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ActionsClusterEndpointListStruct.kt @@ -20,18 +20,16 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ActionsClusterEndpointListStruct ( - val endpointListID: UInt, - val name: String, - val type: UInt, - val endpoints: List) { - override fun toString(): String = buildString { +class ActionsClusterEndpointListStruct( + val endpointListID: UInt, + val name: String, + val type: UInt, + val endpoints: List +) { + override fun toString(): String = buildString { append("ActionsClusterEndpointListStruct {\n") append("\tendpointListID : $endpointListID\n") append("\tname : $name\n") @@ -61,19 +59,20 @@ class ActionsClusterEndpointListStruct ( private const val TAG_TYPE = 2 private const val TAG_ENDPOINTS = 3 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ActionsClusterEndpointListStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ActionsClusterEndpointListStruct { tlvReader.enterStructure(tlvTag) val endpointListID = tlvReader.getUInt(ContextSpecificTag(TAG_ENDPOINT_LIST_I_D)) val name = tlvReader.getString(ContextSpecificTag(TAG_NAME)) val type = tlvReader.getUInt(ContextSpecificTag(TAG_TYPE)) - val endpoints = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_ENDPOINTS)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val endpoints = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_ENDPOINTS)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return ActionsClusterEndpointListStruct(endpointListID, name, type, endpoints) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ActivatedCarbonFilterMonitoringClusterReplacementProductStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ActivatedCarbonFilterMonitoringClusterReplacementProductStruct.kt index fa41e784da11de..138571f0342bb8 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ActivatedCarbonFilterMonitoringClusterReplacementProductStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ActivatedCarbonFilterMonitoringClusterReplacementProductStruct.kt @@ -17,19 +17,16 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ActivatedCarbonFilterMonitoringClusterReplacementProductStruct ( - val productIdentifierType: UInt, - val productIdentifierValue: String) { - override fun toString(): String = buildString { +class ActivatedCarbonFilterMonitoringClusterReplacementProductStruct( + val productIdentifierType: UInt, + val productIdentifierValue: String +) { + override fun toString(): String = buildString { append("ActivatedCarbonFilterMonitoringClusterReplacementProductStruct {\n") append("\tproductIdentifierType : $productIdentifierType\n") append("\tproductIdentifierValue : $productIdentifierValue\n") @@ -49,14 +46,21 @@ class ActivatedCarbonFilterMonitoringClusterReplacementProductStruct ( private const val TAG_PRODUCT_IDENTIFIER_TYPE = 0 private const val TAG_PRODUCT_IDENTIFIER_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ActivatedCarbonFilterMonitoringClusterReplacementProductStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): ActivatedCarbonFilterMonitoringClusterReplacementProductStruct { tlvReader.enterStructure(tlvTag) val productIdentifierType = tlvReader.getUInt(ContextSpecificTag(TAG_PRODUCT_IDENTIFIER_TYPE)) - val productIdentifierValue = tlvReader.getString(ContextSpecificTag(TAG_PRODUCT_IDENTIFIER_VALUE)) - + val productIdentifierValue = + tlvReader.getString(ContextSpecificTag(TAG_PRODUCT_IDENTIFIER_VALUE)) + tlvReader.exitContainer() - return ActivatedCarbonFilterMonitoringClusterReplacementProductStruct(productIdentifierType, productIdentifierValue) + return ActivatedCarbonFilterMonitoringClusterReplacementProductStruct( + productIdentifierType, + productIdentifierValue + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ApplicationBasicClusterApplicationStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ApplicationBasicClusterApplicationStruct.kt index f052c51f03c144..1fb108656c7973 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ApplicationBasicClusterApplicationStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ApplicationBasicClusterApplicationStruct.kt @@ -17,19 +17,16 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ApplicationBasicClusterApplicationStruct ( - val catalogVendorID: UInt, - val applicationID: String) { - override fun toString(): String = buildString { +class ApplicationBasicClusterApplicationStruct( + val catalogVendorID: UInt, + val applicationID: String +) { + override fun toString(): String = buildString { append("ApplicationBasicClusterApplicationStruct {\n") append("\tcatalogVendorID : $catalogVendorID\n") append("\tapplicationID : $applicationID\n") @@ -49,11 +46,11 @@ class ApplicationBasicClusterApplicationStruct ( private const val TAG_CATALOG_VENDOR_I_D = 0 private const val TAG_APPLICATION_I_D = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ApplicationBasicClusterApplicationStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ApplicationBasicClusterApplicationStruct { tlvReader.enterStructure(tlvTag) val catalogVendorID = tlvReader.getUInt(ContextSpecificTag(TAG_CATALOG_VENDOR_I_D)) val applicationID = tlvReader.getString(ContextSpecificTag(TAG_APPLICATION_I_D)) - + tlvReader.exitContainer() return ApplicationBasicClusterApplicationStruct(catalogVendorID, applicationID) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationEPStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationEPStruct.kt index 89f372803fe317..ea33f81faaf3e0 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationEPStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationEPStruct.kt @@ -17,19 +17,17 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ApplicationLauncherClusterApplicationEPStruct ( - val application: ApplicationLauncherClusterApplicationStruct, - val endpoint: Optional) { - override fun toString(): String = buildString { +class ApplicationLauncherClusterApplicationEPStruct( + val application: ApplicationLauncherClusterApplicationStruct, + val endpoint: Optional +) { + override fun toString(): String = buildString { append("ApplicationLauncherClusterApplicationEPStruct {\n") append("\tapplication : $application\n") append("\tendpoint : $endpoint\n") @@ -41,9 +39,9 @@ class ApplicationLauncherClusterApplicationEPStruct ( startStructure(tlvTag) application.toTlv(ContextSpecificTag(TAG_APPLICATION), this) if (endpoint.isPresent) { - val optendpoint = endpoint.get() - put(ContextSpecificTag(TAG_ENDPOINT), optendpoint) - } + val optendpoint = endpoint.get() + put(ContextSpecificTag(TAG_ENDPOINT), optendpoint) + } endStructure() } } @@ -52,15 +50,20 @@ class ApplicationLauncherClusterApplicationEPStruct ( private const val TAG_APPLICATION = 0 private const val TAG_ENDPOINT = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ApplicationLauncherClusterApplicationEPStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ApplicationLauncherClusterApplicationEPStruct { tlvReader.enterStructure(tlvTag) - val application = ApplicationLauncherClusterApplicationStruct.fromTlv(ContextSpecificTag(TAG_APPLICATION), tlvReader) - val endpoint = if (tlvReader.isNextTag(ContextSpecificTag(TAG_ENDPOINT))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_ENDPOINT))) - } else { - Optional.empty() - } - + val application = + ApplicationLauncherClusterApplicationStruct.fromTlv( + ContextSpecificTag(TAG_APPLICATION), + tlvReader + ) + val endpoint = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_ENDPOINT))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_ENDPOINT))) + } else { + Optional.empty() + } + tlvReader.exitContainer() return ApplicationLauncherClusterApplicationEPStruct(application, endpoint) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationStruct.kt index b306cbca62125a..c7ec51b47dfb4b 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationStruct.kt @@ -17,19 +17,16 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ApplicationLauncherClusterApplicationStruct ( - val catalogVendorID: UInt, - val applicationID: String) { - override fun toString(): String = buildString { +class ApplicationLauncherClusterApplicationStruct( + val catalogVendorID: UInt, + val applicationID: String +) { + override fun toString(): String = buildString { append("ApplicationLauncherClusterApplicationStruct {\n") append("\tcatalogVendorID : $catalogVendorID\n") append("\tapplicationID : $applicationID\n") @@ -49,11 +46,11 @@ class ApplicationLauncherClusterApplicationStruct ( private const val TAG_CATALOG_VENDOR_I_D = 0 private const val TAG_APPLICATION_I_D = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ApplicationLauncherClusterApplicationStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ApplicationLauncherClusterApplicationStruct { tlvReader.enterStructure(tlvTag) val catalogVendorID = tlvReader.getUInt(ContextSpecificTag(TAG_CATALOG_VENDOR_I_D)) val applicationID = tlvReader.getString(ContextSpecificTag(TAG_APPLICATION_I_D)) - + tlvReader.exitContainer() return ApplicationLauncherClusterApplicationStruct(catalogVendorID, applicationID) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AudioOutputClusterOutputInfoStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AudioOutputClusterOutputInfoStruct.kt index 60726ce82d5c56..6336549e45a0bc 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AudioOutputClusterOutputInfoStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AudioOutputClusterOutputInfoStruct.kt @@ -17,20 +17,13 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class AudioOutputClusterOutputInfoStruct ( - val index: UInt, - val outputType: UInt, - val name: String) { - override fun toString(): String = buildString { +class AudioOutputClusterOutputInfoStruct(val index: UInt, val outputType: UInt, val name: String) { + override fun toString(): String = buildString { append("AudioOutputClusterOutputInfoStruct {\n") append("\tindex : $index\n") append("\toutputType : $outputType\n") @@ -53,12 +46,12 @@ class AudioOutputClusterOutputInfoStruct ( private const val TAG_OUTPUT_TYPE = 1 private const val TAG_NAME = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : AudioOutputClusterOutputInfoStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): AudioOutputClusterOutputInfoStruct { tlvReader.enterStructure(tlvTag) val index = tlvReader.getUInt(ContextSpecificTag(TAG_INDEX)) val outputType = tlvReader.getUInt(ContextSpecificTag(TAG_OUTPUT_TYPE)) val name = tlvReader.getString(ContextSpecificTag(TAG_NAME)) - + tlvReader.exitContainer() return AudioOutputClusterOutputInfoStruct(index, outputType, name) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BasicInformationClusterCapabilityMinimaStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BasicInformationClusterCapabilityMinimaStruct.kt index 494c946f40b998..d79225dd61468e 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BasicInformationClusterCapabilityMinimaStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BasicInformationClusterCapabilityMinimaStruct.kt @@ -17,19 +17,16 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class BasicInformationClusterCapabilityMinimaStruct ( - val caseSessionsPerFabric: UInt, - val subscriptionsPerFabric: UInt) { - override fun toString(): String = buildString { +class BasicInformationClusterCapabilityMinimaStruct( + val caseSessionsPerFabric: UInt, + val subscriptionsPerFabric: UInt +) { + override fun toString(): String = buildString { append("BasicInformationClusterCapabilityMinimaStruct {\n") append("\tcaseSessionsPerFabric : $caseSessionsPerFabric\n") append("\tsubscriptionsPerFabric : $subscriptionsPerFabric\n") @@ -49,14 +46,19 @@ class BasicInformationClusterCapabilityMinimaStruct ( private const val TAG_CASE_SESSIONS_PER_FABRIC = 0 private const val TAG_SUBSCRIPTIONS_PER_FABRIC = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BasicInformationClusterCapabilityMinimaStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): BasicInformationClusterCapabilityMinimaStruct { tlvReader.enterStructure(tlvTag) - val caseSessionsPerFabric = tlvReader.getUInt(ContextSpecificTag(TAG_CASE_SESSIONS_PER_FABRIC)) - val subscriptionsPerFabric = tlvReader.getUInt(ContextSpecificTag(TAG_SUBSCRIPTIONS_PER_FABRIC)) - + val caseSessionsPerFabric = + tlvReader.getUInt(ContextSpecificTag(TAG_CASE_SESSIONS_PER_FABRIC)) + val subscriptionsPerFabric = + tlvReader.getUInt(ContextSpecificTag(TAG_SUBSCRIPTIONS_PER_FABRIC)) + tlvReader.exitContainer() - return BasicInformationClusterCapabilityMinimaStruct(caseSessionsPerFabric, subscriptionsPerFabric) + return BasicInformationClusterCapabilityMinimaStruct( + caseSessionsPerFabric, + subscriptionsPerFabric + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BasicInformationClusterProductAppearanceStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BasicInformationClusterProductAppearanceStruct.kt index 44f42edb6adf2d..5a0eb3ace2ef7b 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BasicInformationClusterProductAppearanceStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BasicInformationClusterProductAppearanceStruct.kt @@ -17,19 +17,13 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class BasicInformationClusterProductAppearanceStruct ( - val finish: UInt, - val primaryColor: UInt?) { - override fun toString(): String = buildString { +class BasicInformationClusterProductAppearanceStruct(val finish: UInt, val primaryColor: UInt?) { + override fun toString(): String = buildString { append("BasicInformationClusterProductAppearanceStruct {\n") append("\tfinish : $finish\n") append("\tprimaryColor : $primaryColor\n") @@ -41,10 +35,10 @@ class BasicInformationClusterProductAppearanceStruct ( startStructure(tlvTag) put(ContextSpecificTag(TAG_FINISH), finish) if (primaryColor != null) { - put(ContextSpecificTag(TAG_PRIMARY_COLOR), primaryColor) - } else { - putNull(ContextSpecificTag(TAG_PRIMARY_COLOR)) - } + put(ContextSpecificTag(TAG_PRIMARY_COLOR), primaryColor) + } else { + putNull(ContextSpecificTag(TAG_PRIMARY_COLOR)) + } endStructure() } } @@ -53,16 +47,17 @@ class BasicInformationClusterProductAppearanceStruct ( private const val TAG_FINISH = 0 private const val TAG_PRIMARY_COLOR = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BasicInformationClusterProductAppearanceStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): BasicInformationClusterProductAppearanceStruct { tlvReader.enterStructure(tlvTag) val finish = tlvReader.getUInt(ContextSpecificTag(TAG_FINISH)) - val primaryColor = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_PRIMARY_COLOR)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_PRIMARY_COLOR)) - null - } - + val primaryColor = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_PRIMARY_COLOR)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PRIMARY_COLOR)) + null + } + tlvReader.exitContainer() return BasicInformationClusterProductAppearanceStruct(finish, primaryColor) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BindingClusterTargetStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BindingClusterTargetStruct.kt index 9454790cb7ac05..70c8deedaaaf6a 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BindingClusterTargetStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BindingClusterTargetStruct.kt @@ -17,22 +17,20 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class BindingClusterTargetStruct ( - val node: Optional, - val group: Optional, - val endpoint: Optional, - val cluster: Optional, - val fabricIndex: UInt) { - override fun toString(): String = buildString { +class BindingClusterTargetStruct( + val node: Optional, + val group: Optional, + val endpoint: Optional, + val cluster: Optional, + val fabricIndex: UInt +) { + override fun toString(): String = buildString { append("BindingClusterTargetStruct {\n") append("\tnode : $node\n") append("\tgroup : $group\n") @@ -46,21 +44,21 @@ class BindingClusterTargetStruct ( tlvWriter.apply { startStructure(tlvTag) if (node.isPresent) { - val optnode = node.get() - put(ContextSpecificTag(TAG_NODE), optnode) - } + val optnode = node.get() + put(ContextSpecificTag(TAG_NODE), optnode) + } if (group.isPresent) { - val optgroup = group.get() - put(ContextSpecificTag(TAG_GROUP), optgroup) - } + val optgroup = group.get() + put(ContextSpecificTag(TAG_GROUP), optgroup) + } if (endpoint.isPresent) { - val optendpoint = endpoint.get() - put(ContextSpecificTag(TAG_ENDPOINT), optendpoint) - } + val optendpoint = endpoint.get() + put(ContextSpecificTag(TAG_ENDPOINT), optendpoint) + } if (cluster.isPresent) { - val optcluster = cluster.get() - put(ContextSpecificTag(TAG_CLUSTER), optcluster) - } + val optcluster = cluster.get() + put(ContextSpecificTag(TAG_CLUSTER), optcluster) + } put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) endStructure() } @@ -73,30 +71,34 @@ class BindingClusterTargetStruct ( private const val TAG_CLUSTER = 4 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BindingClusterTargetStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): BindingClusterTargetStruct { tlvReader.enterStructure(tlvTag) - val node = if (tlvReader.isNextTag(ContextSpecificTag(TAG_NODE))) { - Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_NODE))) - } else { - Optional.empty() - } - val group = if (tlvReader.isNextTag(ContextSpecificTag(TAG_GROUP))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_GROUP))) - } else { - Optional.empty() - } - val endpoint = if (tlvReader.isNextTag(ContextSpecificTag(TAG_ENDPOINT))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_ENDPOINT))) - } else { - Optional.empty() - } - val cluster = if (tlvReader.isNextTag(ContextSpecificTag(TAG_CLUSTER))) { - Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_CLUSTER))) - } else { - Optional.empty() - } + val node = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NODE))) { + Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_NODE))) + } else { + Optional.empty() + } + val group = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_GROUP))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_GROUP))) + } else { + Optional.empty() + } + val endpoint = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_ENDPOINT))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_ENDPOINT))) + } else { + Optional.empty() + } + val cluster = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_CLUSTER))) { + Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_CLUSTER))) + } else { + Optional.empty() + } val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() return BindingClusterTargetStruct(node, group, endpoint, cluster, fabricIndex) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BridgedDeviceBasicInformationClusterProductAppearanceStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BridgedDeviceBasicInformationClusterProductAppearanceStruct.kt index 6f548b1a015b9c..ec2d58aa588cea 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BridgedDeviceBasicInformationClusterProductAppearanceStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BridgedDeviceBasicInformationClusterProductAppearanceStruct.kt @@ -17,19 +17,16 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class BridgedDeviceBasicInformationClusterProductAppearanceStruct ( - val finish: UInt, - val primaryColor: UInt?) { - override fun toString(): String = buildString { +class BridgedDeviceBasicInformationClusterProductAppearanceStruct( + val finish: UInt, + val primaryColor: UInt? +) { + override fun toString(): String = buildString { append("BridgedDeviceBasicInformationClusterProductAppearanceStruct {\n") append("\tfinish : $finish\n") append("\tprimaryColor : $primaryColor\n") @@ -41,10 +38,10 @@ class BridgedDeviceBasicInformationClusterProductAppearanceStruct ( startStructure(tlvTag) put(ContextSpecificTag(TAG_FINISH), finish) if (primaryColor != null) { - put(ContextSpecificTag(TAG_PRIMARY_COLOR), primaryColor) - } else { - putNull(ContextSpecificTag(TAG_PRIMARY_COLOR)) - } + put(ContextSpecificTag(TAG_PRIMARY_COLOR), primaryColor) + } else { + putNull(ContextSpecificTag(TAG_PRIMARY_COLOR)) + } endStructure() } } @@ -53,16 +50,20 @@ class BridgedDeviceBasicInformationClusterProductAppearanceStruct ( private const val TAG_FINISH = 0 private const val TAG_PRIMARY_COLOR = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BridgedDeviceBasicInformationClusterProductAppearanceStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): BridgedDeviceBasicInformationClusterProductAppearanceStruct { tlvReader.enterStructure(tlvTag) val finish = tlvReader.getUInt(ContextSpecificTag(TAG_FINISH)) - val primaryColor = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_PRIMARY_COLOR)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_PRIMARY_COLOR)) - null - } - + val primaryColor = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_PRIMARY_COLOR)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PRIMARY_COLOR)) + null + } + tlvReader.exitContainer() return BridgedDeviceBasicInformationClusterProductAppearanceStruct(finish, primaryColor) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ChannelClusterChannelInfoStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ChannelClusterChannelInfoStruct.kt index eacde5acfb039b..f8ca194e2e444e 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ChannelClusterChannelInfoStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ChannelClusterChannelInfoStruct.kt @@ -17,22 +17,20 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ChannelClusterChannelInfoStruct ( - val majorNumber: UInt, - val minorNumber: UInt, - val name: Optional, - val callSign: Optional, - val affiliateCallSign: Optional) { - override fun toString(): String = buildString { +class ChannelClusterChannelInfoStruct( + val majorNumber: UInt, + val minorNumber: UInt, + val name: Optional, + val callSign: Optional, + val affiliateCallSign: Optional +) { + override fun toString(): String = buildString { append("ChannelClusterChannelInfoStruct {\n") append("\tmajorNumber : $majorNumber\n") append("\tminorNumber : $minorNumber\n") @@ -48,17 +46,17 @@ class ChannelClusterChannelInfoStruct ( put(ContextSpecificTag(TAG_MAJOR_NUMBER), majorNumber) put(ContextSpecificTag(TAG_MINOR_NUMBER), minorNumber) if (name.isPresent) { - val optname = name.get() - put(ContextSpecificTag(TAG_NAME), optname) - } + val optname = name.get() + put(ContextSpecificTag(TAG_NAME), optname) + } if (callSign.isPresent) { - val optcallSign = callSign.get() - put(ContextSpecificTag(TAG_CALL_SIGN), optcallSign) - } + val optcallSign = callSign.get() + put(ContextSpecificTag(TAG_CALL_SIGN), optcallSign) + } if (affiliateCallSign.isPresent) { - val optaffiliateCallSign = affiliateCallSign.get() - put(ContextSpecificTag(TAG_AFFILIATE_CALL_SIGN), optaffiliateCallSign) - } + val optaffiliateCallSign = affiliateCallSign.get() + put(ContextSpecificTag(TAG_AFFILIATE_CALL_SIGN), optaffiliateCallSign) + } endStructure() } } @@ -70,29 +68,38 @@ class ChannelClusterChannelInfoStruct ( private const val TAG_CALL_SIGN = 3 private const val TAG_AFFILIATE_CALL_SIGN = 4 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ChannelClusterChannelInfoStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ChannelClusterChannelInfoStruct { tlvReader.enterStructure(tlvTag) val majorNumber = tlvReader.getUInt(ContextSpecificTag(TAG_MAJOR_NUMBER)) val minorNumber = tlvReader.getUInt(ContextSpecificTag(TAG_MINOR_NUMBER)) - val name = if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) - } else { - Optional.empty() - } - val callSign = if (tlvReader.isNextTag(ContextSpecificTag(TAG_CALL_SIGN))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_CALL_SIGN))) - } else { - Optional.empty() - } - val affiliateCallSign = if (tlvReader.isNextTag(ContextSpecificTag(TAG_AFFILIATE_CALL_SIGN))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_AFFILIATE_CALL_SIGN))) - } else { - Optional.empty() - } - + val name = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) + } else { + Optional.empty() + } + val callSign = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_CALL_SIGN))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_CALL_SIGN))) + } else { + Optional.empty() + } + val affiliateCallSign = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_AFFILIATE_CALL_SIGN))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_AFFILIATE_CALL_SIGN))) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return ChannelClusterChannelInfoStruct(majorNumber, minorNumber, name, callSign, affiliateCallSign) + return ChannelClusterChannelInfoStruct( + majorNumber, + minorNumber, + name, + callSign, + affiliateCallSign + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ChannelClusterLineupInfoStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ChannelClusterLineupInfoStruct.kt index 357509b7e3eb70..d205e89f966bae 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ChannelClusterLineupInfoStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ChannelClusterLineupInfoStruct.kt @@ -17,21 +17,19 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ChannelClusterLineupInfoStruct ( - val operatorName: String, - val lineupName: Optional, - val postalCode: Optional, - val lineupInfoType: UInt) { - override fun toString(): String = buildString { +class ChannelClusterLineupInfoStruct( + val operatorName: String, + val lineupName: Optional, + val postalCode: Optional, + val lineupInfoType: UInt +) { + override fun toString(): String = buildString { append("ChannelClusterLineupInfoStruct {\n") append("\toperatorName : $operatorName\n") append("\tlineupName : $lineupName\n") @@ -45,13 +43,13 @@ class ChannelClusterLineupInfoStruct ( startStructure(tlvTag) put(ContextSpecificTag(TAG_OPERATOR_NAME), operatorName) if (lineupName.isPresent) { - val optlineupName = lineupName.get() - put(ContextSpecificTag(TAG_LINEUP_NAME), optlineupName) - } + val optlineupName = lineupName.get() + put(ContextSpecificTag(TAG_LINEUP_NAME), optlineupName) + } if (postalCode.isPresent) { - val optpostalCode = postalCode.get() - put(ContextSpecificTag(TAG_POSTAL_CODE), optpostalCode) - } + val optpostalCode = postalCode.get() + put(ContextSpecificTag(TAG_POSTAL_CODE), optpostalCode) + } put(ContextSpecificTag(TAG_LINEUP_INFO_TYPE), lineupInfoType) endStructure() } @@ -63,21 +61,23 @@ class ChannelClusterLineupInfoStruct ( private const val TAG_POSTAL_CODE = 2 private const val TAG_LINEUP_INFO_TYPE = 3 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ChannelClusterLineupInfoStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ChannelClusterLineupInfoStruct { tlvReader.enterStructure(tlvTag) val operatorName = tlvReader.getString(ContextSpecificTag(TAG_OPERATOR_NAME)) - val lineupName = if (tlvReader.isNextTag(ContextSpecificTag(TAG_LINEUP_NAME))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_LINEUP_NAME))) - } else { - Optional.empty() - } - val postalCode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_POSTAL_CODE))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_POSTAL_CODE))) - } else { - Optional.empty() - } + val lineupName = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_LINEUP_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_LINEUP_NAME))) + } else { + Optional.empty() + } + val postalCode = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_POSTAL_CODE))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_POSTAL_CODE))) + } else { + Optional.empty() + } val lineupInfoType = tlvReader.getUInt(ContextSpecificTag(TAG_LINEUP_INFO_TYPE)) - + tlvReader.exitContainer() return ChannelClusterLineupInfoStruct(operatorName, lineupName, postalCode, lineupInfoType) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterAdditionalInfoStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterAdditionalInfoStruct.kt index cdc41e36467d57..c9df652a2ca5a8 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterAdditionalInfoStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterAdditionalInfoStruct.kt @@ -17,19 +17,13 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ContentLauncherClusterAdditionalInfoStruct ( - val name: String, - val value: String) { - override fun toString(): String = buildString { +class ContentLauncherClusterAdditionalInfoStruct(val name: String, val value: String) { + override fun toString(): String = buildString { append("ContentLauncherClusterAdditionalInfoStruct {\n") append("\tname : $name\n") append("\tvalue : $value\n") @@ -49,11 +43,11 @@ class ContentLauncherClusterAdditionalInfoStruct ( private const val TAG_NAME = 0 private const val TAG_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ContentLauncherClusterAdditionalInfoStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ContentLauncherClusterAdditionalInfoStruct { tlvReader.enterStructure(tlvTag) val name = tlvReader.getString(ContextSpecificTag(TAG_NAME)) val value = tlvReader.getString(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return ContentLauncherClusterAdditionalInfoStruct(name, value) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterBrandingInformationStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterBrandingInformationStruct.kt index 56028fc4d11e93..5508763757c036 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterBrandingInformationStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterBrandingInformationStruct.kt @@ -17,23 +17,21 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ContentLauncherClusterBrandingInformationStruct ( - val providerName: String, - val background: Optional, - val logo: Optional, - val progressBar: Optional, - val splash: Optional, - val waterMark: Optional) { - override fun toString(): String = buildString { +class ContentLauncherClusterBrandingInformationStruct( + val providerName: String, + val background: Optional, + val logo: Optional, + val progressBar: Optional, + val splash: Optional, + val waterMark: Optional +) { + override fun toString(): String = buildString { append("ContentLauncherClusterBrandingInformationStruct {\n") append("\tproviderName : $providerName\n") append("\tbackground : $background\n") @@ -49,25 +47,25 @@ class ContentLauncherClusterBrandingInformationStruct ( startStructure(tlvTag) put(ContextSpecificTag(TAG_PROVIDER_NAME), providerName) if (background.isPresent) { - val optbackground = background.get() - optbackground.toTlv(ContextSpecificTag(TAG_BACKGROUND), this) - } + val optbackground = background.get() + optbackground.toTlv(ContextSpecificTag(TAG_BACKGROUND), this) + } if (logo.isPresent) { - val optlogo = logo.get() - optlogo.toTlv(ContextSpecificTag(TAG_LOGO), this) - } + val optlogo = logo.get() + optlogo.toTlv(ContextSpecificTag(TAG_LOGO), this) + } if (progressBar.isPresent) { - val optprogressBar = progressBar.get() - optprogressBar.toTlv(ContextSpecificTag(TAG_PROGRESS_BAR), this) - } + val optprogressBar = progressBar.get() + optprogressBar.toTlv(ContextSpecificTag(TAG_PROGRESS_BAR), this) + } if (splash.isPresent) { - val optsplash = splash.get() - optsplash.toTlv(ContextSpecificTag(TAG_SPLASH), this) - } + val optsplash = splash.get() + optsplash.toTlv(ContextSpecificTag(TAG_SPLASH), this) + } if (waterMark.isPresent) { - val optwaterMark = waterMark.get() - optwaterMark.toTlv(ContextSpecificTag(TAG_WATER_MARK), this) - } + val optwaterMark = waterMark.get() + optwaterMark.toTlv(ContextSpecificTag(TAG_WATER_MARK), this) + } endStructure() } } @@ -80,38 +78,78 @@ class ContentLauncherClusterBrandingInformationStruct ( private const val TAG_SPLASH = 4 private const val TAG_WATER_MARK = 5 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ContentLauncherClusterBrandingInformationStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): ContentLauncherClusterBrandingInformationStruct { tlvReader.enterStructure(tlvTag) val providerName = tlvReader.getString(ContextSpecificTag(TAG_PROVIDER_NAME)) - val background = if (tlvReader.isNextTag(ContextSpecificTag(TAG_BACKGROUND))) { - Optional.of(ContentLauncherClusterStyleInformationStruct.fromTlv(ContextSpecificTag(TAG_BACKGROUND), tlvReader)) - } else { - Optional.empty() - } - val logo = if (tlvReader.isNextTag(ContextSpecificTag(TAG_LOGO))) { - Optional.of(ContentLauncherClusterStyleInformationStruct.fromTlv(ContextSpecificTag(TAG_LOGO), tlvReader)) - } else { - Optional.empty() - } - val progressBar = if (tlvReader.isNextTag(ContextSpecificTag(TAG_PROGRESS_BAR))) { - Optional.of(ContentLauncherClusterStyleInformationStruct.fromTlv(ContextSpecificTag(TAG_PROGRESS_BAR), tlvReader)) - } else { - Optional.empty() - } - val splash = if (tlvReader.isNextTag(ContextSpecificTag(TAG_SPLASH))) { - Optional.of(ContentLauncherClusterStyleInformationStruct.fromTlv(ContextSpecificTag(TAG_SPLASH), tlvReader)) - } else { - Optional.empty() - } - val waterMark = if (tlvReader.isNextTag(ContextSpecificTag(TAG_WATER_MARK))) { - Optional.of(ContentLauncherClusterStyleInformationStruct.fromTlv(ContextSpecificTag(TAG_WATER_MARK), tlvReader)) - } else { - Optional.empty() - } - + val background = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_BACKGROUND))) { + Optional.of( + ContentLauncherClusterStyleInformationStruct.fromTlv( + ContextSpecificTag(TAG_BACKGROUND), + tlvReader + ) + ) + } else { + Optional.empty() + } + val logo = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_LOGO))) { + Optional.of( + ContentLauncherClusterStyleInformationStruct.fromTlv( + ContextSpecificTag(TAG_LOGO), + tlvReader + ) + ) + } else { + Optional.empty() + } + val progressBar = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_PROGRESS_BAR))) { + Optional.of( + ContentLauncherClusterStyleInformationStruct.fromTlv( + ContextSpecificTag(TAG_PROGRESS_BAR), + tlvReader + ) + ) + } else { + Optional.empty() + } + val splash = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_SPLASH))) { + Optional.of( + ContentLauncherClusterStyleInformationStruct.fromTlv( + ContextSpecificTag(TAG_SPLASH), + tlvReader + ) + ) + } else { + Optional.empty() + } + val waterMark = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_WATER_MARK))) { + Optional.of( + ContentLauncherClusterStyleInformationStruct.fromTlv( + ContextSpecificTag(TAG_WATER_MARK), + tlvReader + ) + ) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return ContentLauncherClusterBrandingInformationStruct(providerName, background, logo, progressBar, splash, waterMark) + return ContentLauncherClusterBrandingInformationStruct( + providerName, + background, + logo, + progressBar, + splash, + waterMark + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterContentSearchStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterContentSearchStruct.kt index 9f100e058c4305..fc1cfc5de7b014 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterContentSearchStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterContentSearchStruct.kt @@ -20,15 +20,13 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ContentLauncherClusterContentSearchStruct ( - val parameterList: List) { - override fun toString(): String = buildString { +class ContentLauncherClusterContentSearchStruct( + val parameterList: List +) { + override fun toString(): String = buildString { append("ContentLauncherClusterContentSearchStruct {\n") append("\tparameterList : $parameterList\n") append("}\n") @@ -49,16 +47,17 @@ class ContentLauncherClusterContentSearchStruct ( companion object { private const val TAG_PARAMETER_LIST = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ContentLauncherClusterContentSearchStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ContentLauncherClusterContentSearchStruct { tlvReader.enterStructure(tlvTag) - val parameterList = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PARAMETER_LIST)) - while(!tlvReader.isEndOfContainer()) { - add(ContentLauncherClusterParameterStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val parameterList = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PARAMETER_LIST)) + while (!tlvReader.isEndOfContainer()) { + add(ContentLauncherClusterParameterStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return ContentLauncherClusterContentSearchStruct(parameterList) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterDimensionStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterDimensionStruct.kt index 8c6fd83e614072..f00027d639958c 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterDimensionStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterDimensionStruct.kt @@ -17,20 +17,17 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ContentLauncherClusterDimensionStruct ( - val width: Double, - val height: Double, - val metric: UInt) { - override fun toString(): String = buildString { +class ContentLauncherClusterDimensionStruct( + val width: Double, + val height: Double, + val metric: UInt +) { + override fun toString(): String = buildString { append("ContentLauncherClusterDimensionStruct {\n") append("\twidth : $width\n") append("\theight : $height\n") @@ -53,12 +50,12 @@ class ContentLauncherClusterDimensionStruct ( private const val TAG_HEIGHT = 1 private const val TAG_METRIC = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ContentLauncherClusterDimensionStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ContentLauncherClusterDimensionStruct { tlvReader.enterStructure(tlvTag) val width = tlvReader.getDouble(ContextSpecificTag(TAG_WIDTH)) val height = tlvReader.getDouble(ContextSpecificTag(TAG_HEIGHT)) val metric = tlvReader.getUInt(ContextSpecificTag(TAG_METRIC)) - + tlvReader.exitContainer() return ContentLauncherClusterDimensionStruct(width, height, metric) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterParameterStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterParameterStruct.kt index 0a547a665e8609..458fb5e7b29d9c 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterParameterStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterParameterStruct.kt @@ -17,20 +17,19 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import java.util.Optional import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ContentLauncherClusterParameterStruct ( - val type: UInt, - val value: String, - val externalIDList: Optional>) { - override fun toString(): String = buildString { +class ContentLauncherClusterParameterStruct( + val type: UInt, + val value: String, + val externalIDList: Optional> +) { + override fun toString(): String = buildString { append("ContentLauncherClusterParameterStruct {\n") append("\ttype : $type\n") append("\tvalue : $value\n") @@ -44,13 +43,13 @@ class ContentLauncherClusterParameterStruct ( put(ContextSpecificTag(TAG_TYPE), type) put(ContextSpecificTag(TAG_VALUE), value) if (externalIDList.isPresent) { - val optexternalIDList = externalIDList.get() - startArray(ContextSpecificTag(TAG_EXTERNAL_I_D_LIST)) - for (item in optexternalIDList.iterator()) { - item.toTlv(AnonymousTag, this) + val optexternalIDList = externalIDList.get() + startArray(ContextSpecificTag(TAG_EXTERNAL_I_D_LIST)) + for (item in optexternalIDList.iterator()) { + item.toTlv(AnonymousTag, this) + } + endArray() } - endArray() - } endStructure() } } @@ -60,22 +59,25 @@ class ContentLauncherClusterParameterStruct ( private const val TAG_VALUE = 1 private const val TAG_EXTERNAL_I_D_LIST = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ContentLauncherClusterParameterStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ContentLauncherClusterParameterStruct { tlvReader.enterStructure(tlvTag) val type = tlvReader.getUInt(ContextSpecificTag(TAG_TYPE)) val value = tlvReader.getString(ContextSpecificTag(TAG_VALUE)) - val externalIDList = if (tlvReader.isNextTag(ContextSpecificTag(TAG_EXTERNAL_I_D_LIST))) { - Optional.of(buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_EXTERNAL_I_D_LIST)) - while(!tlvReader.isEndOfContainer()) { - add(ContentLauncherClusterAdditionalInfoStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - }) - } else { - Optional.empty() - } - + val externalIDList = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_EXTERNAL_I_D_LIST))) { + Optional.of( + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_EXTERNAL_I_D_LIST)) + while (!tlvReader.isEndOfContainer()) { + add(ContentLauncherClusterAdditionalInfoStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + ) + } else { + Optional.empty() + } + tlvReader.exitContainer() return ContentLauncherClusterParameterStruct(type, value, externalIDList) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterStyleInformationStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterStyleInformationStruct.kt index c5de0e5706eaea..9b34f59f3eefa6 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterStyleInformationStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterStyleInformationStruct.kt @@ -17,20 +17,18 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ContentLauncherClusterStyleInformationStruct ( - val imageURL: Optional, - val color: Optional, - val size: Optional) { - override fun toString(): String = buildString { +class ContentLauncherClusterStyleInformationStruct( + val imageURL: Optional, + val color: Optional, + val size: Optional +) { + override fun toString(): String = buildString { append("ContentLauncherClusterStyleInformationStruct {\n") append("\timageURL : $imageURL\n") append("\tcolor : $color\n") @@ -42,17 +40,17 @@ class ContentLauncherClusterStyleInformationStruct ( tlvWriter.apply { startStructure(tlvTag) if (imageURL.isPresent) { - val optimageURL = imageURL.get() - put(ContextSpecificTag(TAG_IMAGE_U_R_L), optimageURL) - } + val optimageURL = imageURL.get() + put(ContextSpecificTag(TAG_IMAGE_U_R_L), optimageURL) + } if (color.isPresent) { - val optcolor = color.get() - put(ContextSpecificTag(TAG_COLOR), optcolor) - } + val optcolor = color.get() + put(ContextSpecificTag(TAG_COLOR), optcolor) + } if (size.isPresent) { - val optsize = size.get() - optsize.toTlv(ContextSpecificTag(TAG_SIZE), this) - } + val optsize = size.get() + optsize.toTlv(ContextSpecificTag(TAG_SIZE), this) + } endStructure() } } @@ -62,24 +60,29 @@ class ContentLauncherClusterStyleInformationStruct ( private const val TAG_COLOR = 1 private const val TAG_SIZE = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ContentLauncherClusterStyleInformationStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ContentLauncherClusterStyleInformationStruct { tlvReader.enterStructure(tlvTag) - val imageURL = if (tlvReader.isNextTag(ContextSpecificTag(TAG_IMAGE_U_R_L))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_IMAGE_U_R_L))) - } else { - Optional.empty() - } - val color = if (tlvReader.isNextTag(ContextSpecificTag(TAG_COLOR))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_COLOR))) - } else { - Optional.empty() - } - val size = if (tlvReader.isNextTag(ContextSpecificTag(TAG_SIZE))) { - Optional.of(ContentLauncherClusterDimensionStruct.fromTlv(ContextSpecificTag(TAG_SIZE), tlvReader)) - } else { - Optional.empty() - } - + val imageURL = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_IMAGE_U_R_L))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_IMAGE_U_R_L))) + } else { + Optional.empty() + } + val color = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_COLOR))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_COLOR))) + } else { + Optional.empty() + } + val size = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_SIZE))) { + Optional.of( + ContentLauncherClusterDimensionStruct.fromTlv(ContextSpecificTag(TAG_SIZE), tlvReader) + ) + } else { + Optional.empty() + } + tlvReader.exitContainer() return ContentLauncherClusterStyleInformationStruct(imageURL, color, size) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DescriptorClusterDeviceTypeStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DescriptorClusterDeviceTypeStruct.kt index c5529da5072ea8..0a867ba2296515 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DescriptorClusterDeviceTypeStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DescriptorClusterDeviceTypeStruct.kt @@ -17,19 +17,13 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class DescriptorClusterDeviceTypeStruct ( - val deviceType: ULong, - val revision: UInt) { - override fun toString(): String = buildString { +class DescriptorClusterDeviceTypeStruct(val deviceType: ULong, val revision: UInt) { + override fun toString(): String = buildString { append("DescriptorClusterDeviceTypeStruct {\n") append("\tdeviceType : $deviceType\n") append("\trevision : $revision\n") @@ -49,11 +43,11 @@ class DescriptorClusterDeviceTypeStruct ( private const val TAG_DEVICE_TYPE = 0 private const val TAG_REVISION = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DescriptorClusterDeviceTypeStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DescriptorClusterDeviceTypeStruct { tlvReader.enterStructure(tlvTag) val deviceType = tlvReader.getULong(ContextSpecificTag(TAG_DEVICE_TYPE)) val revision = tlvReader.getUInt(ContextSpecificTag(TAG_REVISION)) - + tlvReader.exitContainer() return DescriptorClusterDeviceTypeStruct(deviceType, revision) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DescriptorClusterSemanticTagStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DescriptorClusterSemanticTagStruct.kt index 89967a1445d75d..91d33d5c0fe2e5 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DescriptorClusterSemanticTagStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DescriptorClusterSemanticTagStruct.kt @@ -17,21 +17,19 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class DescriptorClusterSemanticTagStruct ( - val mfgCode: UInt?, - val namespaceID: UInt, - val tag: UInt, - val label: Optional?) { - override fun toString(): String = buildString { +class DescriptorClusterSemanticTagStruct( + val mfgCode: UInt?, + val namespaceID: UInt, + val tag: UInt, + val label: Optional? +) { + override fun toString(): String = buildString { append("DescriptorClusterSemanticTagStruct {\n") append("\tmfgCode : $mfgCode\n") append("\tnamespaceID : $namespaceID\n") @@ -44,20 +42,20 @@ class DescriptorClusterSemanticTagStruct ( tlvWriter.apply { startStructure(tlvTag) if (mfgCode != null) { - put(ContextSpecificTag(TAG_MFG_CODE), mfgCode) - } else { - putNull(ContextSpecificTag(TAG_MFG_CODE)) - } + put(ContextSpecificTag(TAG_MFG_CODE), mfgCode) + } else { + putNull(ContextSpecificTag(TAG_MFG_CODE)) + } put(ContextSpecificTag(TAG_NAMESPACE_I_D), namespaceID) put(ContextSpecificTag(TAG_TAG), tag) if (label != null) { - if (label.isPresent) { - val optlabel = label.get() - put(ContextSpecificTag(TAG_LABEL), optlabel) - } - } else { - putNull(ContextSpecificTag(TAG_LABEL)) - } + if (label.isPresent) { + val optlabel = label.get() + put(ContextSpecificTag(TAG_LABEL), optlabel) + } + } else { + putNull(ContextSpecificTag(TAG_LABEL)) + } endStructure() } } @@ -68,27 +66,29 @@ class DescriptorClusterSemanticTagStruct ( private const val TAG_TAG = 2 private const val TAG_LABEL = 3 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DescriptorClusterSemanticTagStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DescriptorClusterSemanticTagStruct { tlvReader.enterStructure(tlvTag) - val mfgCode = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_MFG_CODE)) - null - } + val mfgCode = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_MFG_CODE)) + null + } val namespaceID = tlvReader.getUInt(ContextSpecificTag(TAG_NAMESPACE_I_D)) val tag = tlvReader.getUInt(ContextSpecificTag(TAG_TAG)) - val label = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_LABEL))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_LABEL))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_LABEL)) - null - } - + val label = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_LABEL))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_LABEL))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_LABEL)) + null + } + tlvReader.exitContainer() return DescriptorClusterSemanticTagStruct(mfgCode, namespaceID, tag, label) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DishwasherModeClusterModeOptionStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DishwasherModeClusterModeOptionStruct.kt index 04305789265487..0cbbf8fb8c37eb 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DishwasherModeClusterModeOptionStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DishwasherModeClusterModeOptionStruct.kt @@ -20,17 +20,15 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class DishwasherModeClusterModeOptionStruct ( - val label: String, - val mode: UInt, - val modeTags: List) { - override fun toString(): String = buildString { +class DishwasherModeClusterModeOptionStruct( + val label: String, + val mode: UInt, + val modeTags: List +) { + override fun toString(): String = buildString { append("DishwasherModeClusterModeOptionStruct {\n") append("\tlabel : $label\n") append("\tmode : $mode\n") @@ -57,18 +55,19 @@ class DishwasherModeClusterModeOptionStruct ( private const val TAG_MODE = 1 private const val TAG_MODE_TAGS = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DishwasherModeClusterModeOptionStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DishwasherModeClusterModeOptionStruct { tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val mode = tlvReader.getUInt(ContextSpecificTag(TAG_MODE)) - val modeTags = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) - while(!tlvReader.isEndOfContainer()) { - add(DishwasherModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val modeTags = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) + while (!tlvReader.isEndOfContainer()) { + add(DishwasherModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return DishwasherModeClusterModeOptionStruct(label, mode, modeTags) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DishwasherModeClusterModeTagStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DishwasherModeClusterModeTagStruct.kt index f2615f2ddeb01e..916f58bdab72e6 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DishwasherModeClusterModeTagStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DishwasherModeClusterModeTagStruct.kt @@ -17,19 +17,14 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class DishwasherModeClusterModeTagStruct ( - val mfgCode: Optional, - val value: UInt) { - override fun toString(): String = buildString { +class DishwasherModeClusterModeTagStruct(val mfgCode: Optional, val value: UInt) { + override fun toString(): String = buildString { append("DishwasherModeClusterModeTagStruct {\n") append("\tmfgCode : $mfgCode\n") append("\tvalue : $value\n") @@ -40,9 +35,9 @@ class DishwasherModeClusterModeTagStruct ( tlvWriter.apply { startStructure(tlvTag) if (mfgCode.isPresent) { - val optmfgCode = mfgCode.get() - put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) - } + val optmfgCode = mfgCode.get() + put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) + } put(ContextSpecificTag(TAG_VALUE), value) endStructure() } @@ -52,15 +47,16 @@ class DishwasherModeClusterModeTagStruct ( private const val TAG_MFG_CODE = 0 private const val TAG_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DishwasherModeClusterModeTagStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DishwasherModeClusterModeTagStruct { tlvReader.enterStructure(tlvTag) - val mfgCode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE))) - } else { - Optional.empty() - } + val mfgCode = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE))) + } else { + Optional.empty() + } val value = tlvReader.getUInt(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return DishwasherModeClusterModeTagStruct(mfgCode, value) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DoorLockClusterCredentialStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DoorLockClusterCredentialStruct.kt index 108dd2b0efe922..5ee8045b4d17ed 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DoorLockClusterCredentialStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DoorLockClusterCredentialStruct.kt @@ -17,19 +17,13 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class DoorLockClusterCredentialStruct ( - val credentialType: UInt, - val credentialIndex: UInt) { - override fun toString(): String = buildString { +class DoorLockClusterCredentialStruct(val credentialType: UInt, val credentialIndex: UInt) { + override fun toString(): String = buildString { append("DoorLockClusterCredentialStruct {\n") append("\tcredentialType : $credentialType\n") append("\tcredentialIndex : $credentialIndex\n") @@ -49,11 +43,11 @@ class DoorLockClusterCredentialStruct ( private const val TAG_CREDENTIAL_TYPE = 0 private const val TAG_CREDENTIAL_INDEX = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DoorLockClusterCredentialStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DoorLockClusterCredentialStruct { tlvReader.enterStructure(tlvTag) val credentialType = tlvReader.getUInt(ContextSpecificTag(TAG_CREDENTIAL_TYPE)) val credentialIndex = tlvReader.getUInt(ContextSpecificTag(TAG_CREDENTIAL_INDEX)) - + tlvReader.exitContainer() return DoorLockClusterCredentialStruct(credentialType, credentialIndex) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/FixedLabelClusterLabelStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/FixedLabelClusterLabelStruct.kt index 3ca4e99e618df8..258f336d66e50b 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/FixedLabelClusterLabelStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/FixedLabelClusterLabelStruct.kt @@ -17,19 +17,13 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class FixedLabelClusterLabelStruct ( - val label: String, - val value: String) { - override fun toString(): String = buildString { +class FixedLabelClusterLabelStruct(val label: String, val value: String) { + override fun toString(): String = buildString { append("FixedLabelClusterLabelStruct {\n") append("\tlabel : $label\n") append("\tvalue : $value\n") @@ -49,11 +43,11 @@ class FixedLabelClusterLabelStruct ( private const val TAG_LABEL = 0 private const val TAG_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : FixedLabelClusterLabelStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): FixedLabelClusterLabelStruct { tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val value = tlvReader.getString(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return FixedLabelClusterLabelStruct(label, value) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GeneralCommissioningClusterBasicCommissioningInfo.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GeneralCommissioningClusterBasicCommissioningInfo.kt index 6ea28a8fbf75da..eb37145e36f754 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GeneralCommissioningClusterBasicCommissioningInfo.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GeneralCommissioningClusterBasicCommissioningInfo.kt @@ -17,19 +17,16 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class GeneralCommissioningClusterBasicCommissioningInfo ( - val failSafeExpiryLengthSeconds: UInt, - val maxCumulativeFailsafeSeconds: UInt) { - override fun toString(): String = buildString { +class GeneralCommissioningClusterBasicCommissioningInfo( + val failSafeExpiryLengthSeconds: UInt, + val maxCumulativeFailsafeSeconds: UInt +) { + override fun toString(): String = buildString { append("GeneralCommissioningClusterBasicCommissioningInfo {\n") append("\tfailSafeExpiryLengthSeconds : $failSafeExpiryLengthSeconds\n") append("\tmaxCumulativeFailsafeSeconds : $maxCumulativeFailsafeSeconds\n") @@ -49,14 +46,22 @@ class GeneralCommissioningClusterBasicCommissioningInfo ( private const val TAG_FAIL_SAFE_EXPIRY_LENGTH_SECONDS = 0 private const val TAG_MAX_CUMULATIVE_FAILSAFE_SECONDS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : GeneralCommissioningClusterBasicCommissioningInfo { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): GeneralCommissioningClusterBasicCommissioningInfo { tlvReader.enterStructure(tlvTag) - val failSafeExpiryLengthSeconds = tlvReader.getUInt(ContextSpecificTag(TAG_FAIL_SAFE_EXPIRY_LENGTH_SECONDS)) - val maxCumulativeFailsafeSeconds = tlvReader.getUInt(ContextSpecificTag(TAG_MAX_CUMULATIVE_FAILSAFE_SECONDS)) - + val failSafeExpiryLengthSeconds = + tlvReader.getUInt(ContextSpecificTag(TAG_FAIL_SAFE_EXPIRY_LENGTH_SECONDS)) + val maxCumulativeFailsafeSeconds = + tlvReader.getUInt(ContextSpecificTag(TAG_MAX_CUMULATIVE_FAILSAFE_SECONDS)) + tlvReader.exitContainer() - return GeneralCommissioningClusterBasicCommissioningInfo(failSafeExpiryLengthSeconds, maxCumulativeFailsafeSeconds) + return GeneralCommissioningClusterBasicCommissioningInfo( + failSafeExpiryLengthSeconds, + maxCumulativeFailsafeSeconds + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GeneralDiagnosticsClusterNetworkInterface.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GeneralDiagnosticsClusterNetworkInterface.kt index 7656b672bd9058..3f310757c51e6f 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GeneralDiagnosticsClusterNetworkInterface.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GeneralDiagnosticsClusterNetworkInterface.kt @@ -20,22 +20,20 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class GeneralDiagnosticsClusterNetworkInterface ( - val name: String, - val isOperational: Boolean, - val offPremiseServicesReachableIPv4: Boolean?, - val offPremiseServicesReachableIPv6: Boolean?, - val hardwareAddress: ByteArray, - val IPv4Addresses: List, - val IPv6Addresses: List, - val type: UInt) { - override fun toString(): String = buildString { +class GeneralDiagnosticsClusterNetworkInterface( + val name: String, + val isOperational: Boolean, + val offPremiseServicesReachableIPv4: Boolean?, + val offPremiseServicesReachableIPv6: Boolean?, + val hardwareAddress: ByteArray, + val IPv4Addresses: List, + val IPv6Addresses: List, + val type: UInt +) { + override fun toString(): String = buildString { append("GeneralDiagnosticsClusterNetworkInterface {\n") append("\tname : $name\n") append("\tisOperational : $isOperational\n") @@ -54,15 +52,21 @@ class GeneralDiagnosticsClusterNetworkInterface ( put(ContextSpecificTag(TAG_NAME), name) put(ContextSpecificTag(TAG_IS_OPERATIONAL), isOperational) if (offPremiseServicesReachableIPv4 != null) { - put(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV4), offPremiseServicesReachableIPv4) - } else { - putNull(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV4)) - } + put( + ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV4), + offPremiseServicesReachableIPv4 + ) + } else { + putNull(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV4)) + } if (offPremiseServicesReachableIPv6 != null) { - put(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV6), offPremiseServicesReachableIPv6) - } else { - putNull(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV6)) - } + put( + ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV6), + offPremiseServicesReachableIPv6 + ) + } else { + putNull(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV6)) + } put(ContextSpecificTag(TAG_HARDWARE_ADDRESS), hardwareAddress) startArray(ContextSpecificTag(TAG_I_PV4_ADDRESSES)) for (item in IPv4Addresses.iterator()) { @@ -89,42 +93,55 @@ class GeneralDiagnosticsClusterNetworkInterface ( private const val TAG_I_PV6_ADDRESSES = 6 private const val TAG_TYPE = 7 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : GeneralDiagnosticsClusterNetworkInterface { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): GeneralDiagnosticsClusterNetworkInterface { tlvReader.enterStructure(tlvTag) val name = tlvReader.getString(ContextSpecificTag(TAG_NAME)) val isOperational = tlvReader.getBoolean(ContextSpecificTag(TAG_IS_OPERATIONAL)) - val offPremiseServicesReachableIPv4 = if (!tlvReader.isNull()) { - tlvReader.getBoolean(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV4)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV4)) - null - } - val offPremiseServicesReachableIPv6 = if (!tlvReader.isNull()) { - tlvReader.getBoolean(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV6)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV6)) - null - } + val offPremiseServicesReachableIPv4 = + if (!tlvReader.isNull()) { + tlvReader.getBoolean(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV4)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV4)) + null + } + val offPremiseServicesReachableIPv6 = + if (!tlvReader.isNull()) { + tlvReader.getBoolean(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV6)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV6)) + null + } val hardwareAddress = tlvReader.getByteArray(ContextSpecificTag(TAG_HARDWARE_ADDRESS)) - val IPv4Addresses = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_I_PV4_ADDRESSES)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getByteArray(AnonymousTag)) - } - tlvReader.exitContainer() - } - val IPv6Addresses = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_I_PV6_ADDRESSES)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getByteArray(AnonymousTag)) - } - tlvReader.exitContainer() - } + val IPv4Addresses = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_I_PV4_ADDRESSES)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getByteArray(AnonymousTag)) + } + tlvReader.exitContainer() + } + val IPv6Addresses = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_I_PV6_ADDRESSES)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getByteArray(AnonymousTag)) + } + tlvReader.exitContainer() + } val type = tlvReader.getUInt(ContextSpecificTag(TAG_TYPE)) - + tlvReader.exitContainer() - return GeneralDiagnosticsClusterNetworkInterface(name, isOperational, offPremiseServicesReachableIPv4, offPremiseServicesReachableIPv6, hardwareAddress, IPv4Addresses, IPv6Addresses, type) + return GeneralDiagnosticsClusterNetworkInterface( + name, + isOperational, + offPremiseServicesReachableIPv4, + offPremiseServicesReachableIPv6, + hardwareAddress, + IPv4Addresses, + IPv6Addresses, + type + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupInfoMapStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupInfoMapStruct.kt index 72cf67168df8e4..1549a376b4542a 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupInfoMapStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupInfoMapStruct.kt @@ -17,21 +17,20 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import java.util.Optional import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class GroupKeyManagementClusterGroupInfoMapStruct ( - val groupId: UInt, - val endpoints: List, - val groupName: Optional, - val fabricIndex: UInt) { - override fun toString(): String = buildString { +class GroupKeyManagementClusterGroupInfoMapStruct( + val groupId: UInt, + val endpoints: List, + val groupName: Optional, + val fabricIndex: UInt +) { + override fun toString(): String = buildString { append("GroupKeyManagementClusterGroupInfoMapStruct {\n") append("\tgroupId : $groupId\n") append("\tendpoints : $endpoints\n") @@ -50,9 +49,9 @@ class GroupKeyManagementClusterGroupInfoMapStruct ( } endArray() if (groupName.isPresent) { - val optgroupName = groupName.get() - put(ContextSpecificTag(TAG_GROUP_NAME), optgroupName) - } + val optgroupName = groupName.get() + put(ContextSpecificTag(TAG_GROUP_NAME), optgroupName) + } put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) endStructure() } @@ -64,23 +63,25 @@ class GroupKeyManagementClusterGroupInfoMapStruct ( private const val TAG_GROUP_NAME = 3 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : GroupKeyManagementClusterGroupInfoMapStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): GroupKeyManagementClusterGroupInfoMapStruct { tlvReader.enterStructure(tlvTag) val groupId = tlvReader.getUInt(ContextSpecificTag(TAG_GROUP_ID)) - val endpoints = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_ENDPOINTS)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val groupName = if (tlvReader.isNextTag(ContextSpecificTag(TAG_GROUP_NAME))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_GROUP_NAME))) - } else { - Optional.empty() - } + val endpoints = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_ENDPOINTS)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val groupName = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_GROUP_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_GROUP_NAME))) + } else { + Optional.empty() + } val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() return GroupKeyManagementClusterGroupInfoMapStruct(groupId, endpoints, groupName, fabricIndex) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeyMapStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeyMapStruct.kt index 71d7c3ca4cb959..46f4656366bbc8 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeyMapStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeyMapStruct.kt @@ -17,20 +17,17 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class GroupKeyManagementClusterGroupKeyMapStruct ( - val groupId: UInt, - val groupKeySetID: UInt, - val fabricIndex: UInt) { - override fun toString(): String = buildString { +class GroupKeyManagementClusterGroupKeyMapStruct( + val groupId: UInt, + val groupKeySetID: UInt, + val fabricIndex: UInt +) { + override fun toString(): String = buildString { append("GroupKeyManagementClusterGroupKeyMapStruct {\n") append("\tgroupId : $groupId\n") append("\tgroupKeySetID : $groupKeySetID\n") @@ -53,12 +50,12 @@ class GroupKeyManagementClusterGroupKeyMapStruct ( private const val TAG_GROUP_KEY_SET_I_D = 2 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : GroupKeyManagementClusterGroupKeyMapStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): GroupKeyManagementClusterGroupKeyMapStruct { tlvReader.enterStructure(tlvTag) val groupId = tlvReader.getUInt(ContextSpecificTag(TAG_GROUP_ID)) val groupKeySetID = tlvReader.getUInt(ContextSpecificTag(TAG_GROUP_KEY_SET_I_D)) val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() return GroupKeyManagementClusterGroupKeyMapStruct(groupId, groupKeySetID, fabricIndex) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeySetStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeySetStruct.kt index 2eee6ef47d3353..4d995ac2974023 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeySetStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeySetStruct.kt @@ -17,25 +17,22 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class GroupKeyManagementClusterGroupKeySetStruct ( - val groupKeySetID: UInt, - val groupKeySecurityPolicy: UInt, - val epochKey0: ByteArray?, - val epochStartTime0: ULong?, - val epochKey1: ByteArray?, - val epochStartTime1: ULong?, - val epochKey2: ByteArray?, - val epochStartTime2: ULong?) { - override fun toString(): String = buildString { +class GroupKeyManagementClusterGroupKeySetStruct( + val groupKeySetID: UInt, + val groupKeySecurityPolicy: UInt, + val epochKey0: ByteArray?, + val epochStartTime0: ULong?, + val epochKey1: ByteArray?, + val epochStartTime1: ULong?, + val epochKey2: ByteArray?, + val epochStartTime2: ULong? +) { + override fun toString(): String = buildString { append("GroupKeyManagementClusterGroupKeySetStruct {\n") append("\tgroupKeySetID : $groupKeySetID\n") append("\tgroupKeySecurityPolicy : $groupKeySecurityPolicy\n") @@ -54,35 +51,35 @@ class GroupKeyManagementClusterGroupKeySetStruct ( put(ContextSpecificTag(TAG_GROUP_KEY_SET_I_D), groupKeySetID) put(ContextSpecificTag(TAG_GROUP_KEY_SECURITY_POLICY), groupKeySecurityPolicy) if (epochKey0 != null) { - put(ContextSpecificTag(TAG_EPOCH_KEY0), epochKey0) - } else { - putNull(ContextSpecificTag(TAG_EPOCH_KEY0)) - } + put(ContextSpecificTag(TAG_EPOCH_KEY0), epochKey0) + } else { + putNull(ContextSpecificTag(TAG_EPOCH_KEY0)) + } if (epochStartTime0 != null) { - put(ContextSpecificTag(TAG_EPOCH_START_TIME0), epochStartTime0) - } else { - putNull(ContextSpecificTag(TAG_EPOCH_START_TIME0)) - } + put(ContextSpecificTag(TAG_EPOCH_START_TIME0), epochStartTime0) + } else { + putNull(ContextSpecificTag(TAG_EPOCH_START_TIME0)) + } if (epochKey1 != null) { - put(ContextSpecificTag(TAG_EPOCH_KEY1), epochKey1) - } else { - putNull(ContextSpecificTag(TAG_EPOCH_KEY1)) - } + put(ContextSpecificTag(TAG_EPOCH_KEY1), epochKey1) + } else { + putNull(ContextSpecificTag(TAG_EPOCH_KEY1)) + } if (epochStartTime1 != null) { - put(ContextSpecificTag(TAG_EPOCH_START_TIME1), epochStartTime1) - } else { - putNull(ContextSpecificTag(TAG_EPOCH_START_TIME1)) - } + put(ContextSpecificTag(TAG_EPOCH_START_TIME1), epochStartTime1) + } else { + putNull(ContextSpecificTag(TAG_EPOCH_START_TIME1)) + } if (epochKey2 != null) { - put(ContextSpecificTag(TAG_EPOCH_KEY2), epochKey2) - } else { - putNull(ContextSpecificTag(TAG_EPOCH_KEY2)) - } + put(ContextSpecificTag(TAG_EPOCH_KEY2), epochKey2) + } else { + putNull(ContextSpecificTag(TAG_EPOCH_KEY2)) + } if (epochStartTime2 != null) { - put(ContextSpecificTag(TAG_EPOCH_START_TIME2), epochStartTime2) - } else { - putNull(ContextSpecificTag(TAG_EPOCH_START_TIME2)) - } + put(ContextSpecificTag(TAG_EPOCH_START_TIME2), epochStartTime2) + } else { + putNull(ContextSpecificTag(TAG_EPOCH_START_TIME2)) + } endStructure() } } @@ -97,50 +94,66 @@ class GroupKeyManagementClusterGroupKeySetStruct ( private const val TAG_EPOCH_KEY2 = 6 private const val TAG_EPOCH_START_TIME2 = 7 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : GroupKeyManagementClusterGroupKeySetStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): GroupKeyManagementClusterGroupKeySetStruct { tlvReader.enterStructure(tlvTag) val groupKeySetID = tlvReader.getUInt(ContextSpecificTag(TAG_GROUP_KEY_SET_I_D)) - val groupKeySecurityPolicy = tlvReader.getUInt(ContextSpecificTag(TAG_GROUP_KEY_SECURITY_POLICY)) - val epochKey0 = if (!tlvReader.isNull()) { - tlvReader.getByteArray(ContextSpecificTag(TAG_EPOCH_KEY0)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_KEY0)) - null - } - val epochStartTime0 = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_EPOCH_START_TIME0)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_START_TIME0)) - null - } - val epochKey1 = if (!tlvReader.isNull()) { - tlvReader.getByteArray(ContextSpecificTag(TAG_EPOCH_KEY1)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_KEY1)) - null - } - val epochStartTime1 = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_EPOCH_START_TIME1)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_START_TIME1)) - null - } - val epochKey2 = if (!tlvReader.isNull()) { - tlvReader.getByteArray(ContextSpecificTag(TAG_EPOCH_KEY2)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_KEY2)) - null - } - val epochStartTime2 = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_EPOCH_START_TIME2)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_START_TIME2)) - null - } - + val groupKeySecurityPolicy = + tlvReader.getUInt(ContextSpecificTag(TAG_GROUP_KEY_SECURITY_POLICY)) + val epochKey0 = + if (!tlvReader.isNull()) { + tlvReader.getByteArray(ContextSpecificTag(TAG_EPOCH_KEY0)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_KEY0)) + null + } + val epochStartTime0 = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_EPOCH_START_TIME0)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_START_TIME0)) + null + } + val epochKey1 = + if (!tlvReader.isNull()) { + tlvReader.getByteArray(ContextSpecificTag(TAG_EPOCH_KEY1)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_KEY1)) + null + } + val epochStartTime1 = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_EPOCH_START_TIME1)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_START_TIME1)) + null + } + val epochKey2 = + if (!tlvReader.isNull()) { + tlvReader.getByteArray(ContextSpecificTag(TAG_EPOCH_KEY2)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_KEY2)) + null + } + val epochStartTime2 = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_EPOCH_START_TIME2)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_START_TIME2)) + null + } + tlvReader.exitContainer() - return GroupKeyManagementClusterGroupKeySetStruct(groupKeySetID, groupKeySecurityPolicy, epochKey0, epochStartTime0, epochKey1, epochStartTime1, epochKey2, epochStartTime2) + return GroupKeyManagementClusterGroupKeySetStruct( + groupKeySetID, + groupKeySecurityPolicy, + epochKey0, + epochStartTime0, + epochKey1, + epochStartTime1, + epochKey2, + epochStartTime2 + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/HepaFilterMonitoringClusterReplacementProductStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/HepaFilterMonitoringClusterReplacementProductStruct.kt index a5e79f7e076234..b36468116ac1dd 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/HepaFilterMonitoringClusterReplacementProductStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/HepaFilterMonitoringClusterReplacementProductStruct.kt @@ -17,19 +17,16 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class HepaFilterMonitoringClusterReplacementProductStruct ( - val productIdentifierType: UInt, - val productIdentifierValue: String) { - override fun toString(): String = buildString { +class HepaFilterMonitoringClusterReplacementProductStruct( + val productIdentifierType: UInt, + val productIdentifierValue: String +) { + override fun toString(): String = buildString { append("HepaFilterMonitoringClusterReplacementProductStruct {\n") append("\tproductIdentifierType : $productIdentifierType\n") append("\tproductIdentifierValue : $productIdentifierValue\n") @@ -49,14 +46,21 @@ class HepaFilterMonitoringClusterReplacementProductStruct ( private const val TAG_PRODUCT_IDENTIFIER_TYPE = 0 private const val TAG_PRODUCT_IDENTIFIER_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : HepaFilterMonitoringClusterReplacementProductStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): HepaFilterMonitoringClusterReplacementProductStruct { tlvReader.enterStructure(tlvTag) val productIdentifierType = tlvReader.getUInt(ContextSpecificTag(TAG_PRODUCT_IDENTIFIER_TYPE)) - val productIdentifierValue = tlvReader.getString(ContextSpecificTag(TAG_PRODUCT_IDENTIFIER_VALUE)) - + val productIdentifierValue = + tlvReader.getString(ContextSpecificTag(TAG_PRODUCT_IDENTIFIER_VALUE)) + tlvReader.exitContainer() - return HepaFilterMonitoringClusterReplacementProductStruct(productIdentifierType, productIdentifierValue) + return HepaFilterMonitoringClusterReplacementProductStruct( + productIdentifierType, + productIdentifierValue + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/IcdManagementClusterMonitoringRegistrationStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/IcdManagementClusterMonitoringRegistrationStruct.kt index 73b5b688af77c2..87927430232e4e 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/IcdManagementClusterMonitoringRegistrationStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/IcdManagementClusterMonitoringRegistrationStruct.kt @@ -17,20 +17,17 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class IcdManagementClusterMonitoringRegistrationStruct ( - val checkInNodeID: ULong, - val monitoredSubject: ULong, - val fabricIndex: UInt) { - override fun toString(): String = buildString { +class IcdManagementClusterMonitoringRegistrationStruct( + val checkInNodeID: ULong, + val monitoredSubject: ULong, + val fabricIndex: UInt +) { + override fun toString(): String = buildString { append("IcdManagementClusterMonitoringRegistrationStruct {\n") append("\tcheckInNodeID : $checkInNodeID\n") append("\tmonitoredSubject : $monitoredSubject\n") @@ -53,15 +50,22 @@ class IcdManagementClusterMonitoringRegistrationStruct ( private const val TAG_MONITORED_SUBJECT = 2 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : IcdManagementClusterMonitoringRegistrationStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): IcdManagementClusterMonitoringRegistrationStruct { tlvReader.enterStructure(tlvTag) val checkInNodeID = tlvReader.getULong(ContextSpecificTag(TAG_CHECK_IN_NODE_I_D)) val monitoredSubject = tlvReader.getULong(ContextSpecificTag(TAG_MONITORED_SUBJECT)) val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() - return IcdManagementClusterMonitoringRegistrationStruct(checkInNodeID, monitoredSubject, fabricIndex) + return IcdManagementClusterMonitoringRegistrationStruct( + checkInNodeID, + monitoredSubject, + fabricIndex + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/LaundryWasherModeClusterModeOptionStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/LaundryWasherModeClusterModeOptionStruct.kt index 539ddd1fe657ec..f6ca291e0bb46e 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/LaundryWasherModeClusterModeOptionStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/LaundryWasherModeClusterModeOptionStruct.kt @@ -20,17 +20,15 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class LaundryWasherModeClusterModeOptionStruct ( - val label: String, - val mode: UInt, - val modeTags: List) { - override fun toString(): String = buildString { +class LaundryWasherModeClusterModeOptionStruct( + val label: String, + val mode: UInt, + val modeTags: List +) { + override fun toString(): String = buildString { append("LaundryWasherModeClusterModeOptionStruct {\n") append("\tlabel : $label\n") append("\tmode : $mode\n") @@ -57,18 +55,19 @@ class LaundryWasherModeClusterModeOptionStruct ( private const val TAG_MODE = 1 private const val TAG_MODE_TAGS = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : LaundryWasherModeClusterModeOptionStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): LaundryWasherModeClusterModeOptionStruct { tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val mode = tlvReader.getUInt(ContextSpecificTag(TAG_MODE)) - val modeTags = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) - while(!tlvReader.isEndOfContainer()) { - add(LaundryWasherModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val modeTags = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) + while (!tlvReader.isEndOfContainer()) { + add(LaundryWasherModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return LaundryWasherModeClusterModeOptionStruct(label, mode, modeTags) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/LaundryWasherModeClusterModeTagStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/LaundryWasherModeClusterModeTagStruct.kt index f5e971f19259ee..09c2915126efd6 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/LaundryWasherModeClusterModeTagStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/LaundryWasherModeClusterModeTagStruct.kt @@ -17,19 +17,14 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class LaundryWasherModeClusterModeTagStruct ( - val mfgCode: Optional, - val value: UInt) { - override fun toString(): String = buildString { +class LaundryWasherModeClusterModeTagStruct(val mfgCode: Optional, val value: UInt) { + override fun toString(): String = buildString { append("LaundryWasherModeClusterModeTagStruct {\n") append("\tmfgCode : $mfgCode\n") append("\tvalue : $value\n") @@ -40,9 +35,9 @@ class LaundryWasherModeClusterModeTagStruct ( tlvWriter.apply { startStructure(tlvTag) if (mfgCode.isPresent) { - val optmfgCode = mfgCode.get() - put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) - } + val optmfgCode = mfgCode.get() + put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) + } put(ContextSpecificTag(TAG_VALUE), value) endStructure() } @@ -52,15 +47,16 @@ class LaundryWasherModeClusterModeTagStruct ( private const val TAG_MFG_CODE = 0 private const val TAG_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : LaundryWasherModeClusterModeTagStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): LaundryWasherModeClusterModeTagStruct { tlvReader.enterStructure(tlvTag) - val mfgCode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE))) - } else { - Optional.empty() - } + val mfgCode = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE))) + } else { + Optional.empty() + } val value = tlvReader.getUInt(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return LaundryWasherModeClusterModeTagStruct(mfgCode, value) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MediaInputClusterInputInfoStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MediaInputClusterInputInfoStruct.kt index a1e171a4805248..b2b26104143da8 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MediaInputClusterInputInfoStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MediaInputClusterInputInfoStruct.kt @@ -17,21 +17,18 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class MediaInputClusterInputInfoStruct ( - val index: UInt, - val inputType: UInt, - val name: String, - val description: String) { - override fun toString(): String = buildString { +class MediaInputClusterInputInfoStruct( + val index: UInt, + val inputType: UInt, + val name: String, + val description: String +) { + override fun toString(): String = buildString { append("MediaInputClusterInputInfoStruct {\n") append("\tindex : $index\n") append("\tinputType : $inputType\n") @@ -57,13 +54,13 @@ class MediaInputClusterInputInfoStruct ( private const val TAG_NAME = 2 private const val TAG_DESCRIPTION = 3 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : MediaInputClusterInputInfoStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): MediaInputClusterInputInfoStruct { tlvReader.enterStructure(tlvTag) val index = tlvReader.getUInt(ContextSpecificTag(TAG_INDEX)) val inputType = tlvReader.getUInt(ContextSpecificTag(TAG_INPUT_TYPE)) val name = tlvReader.getString(ContextSpecificTag(TAG_NAME)) val description = tlvReader.getString(ContextSpecificTag(TAG_DESCRIPTION)) - + tlvReader.exitContainer() return MediaInputClusterInputInfoStruct(index, inputType, name, description) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MediaPlaybackClusterPlaybackPositionStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MediaPlaybackClusterPlaybackPositionStruct.kt index a41c94eb25f23b..c58c381f8d6e14 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MediaPlaybackClusterPlaybackPositionStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MediaPlaybackClusterPlaybackPositionStruct.kt @@ -17,19 +17,13 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class MediaPlaybackClusterPlaybackPositionStruct ( - val updatedAt: ULong, - val position: ULong?) { - override fun toString(): String = buildString { +class MediaPlaybackClusterPlaybackPositionStruct(val updatedAt: ULong, val position: ULong?) { + override fun toString(): String = buildString { append("MediaPlaybackClusterPlaybackPositionStruct {\n") append("\tupdatedAt : $updatedAt\n") append("\tposition : $position\n") @@ -41,10 +35,10 @@ class MediaPlaybackClusterPlaybackPositionStruct ( startStructure(tlvTag) put(ContextSpecificTag(TAG_UPDATED_AT), updatedAt) if (position != null) { - put(ContextSpecificTag(TAG_POSITION), position) - } else { - putNull(ContextSpecificTag(TAG_POSITION)) - } + put(ContextSpecificTag(TAG_POSITION), position) + } else { + putNull(ContextSpecificTag(TAG_POSITION)) + } endStructure() } } @@ -53,16 +47,17 @@ class MediaPlaybackClusterPlaybackPositionStruct ( private const val TAG_UPDATED_AT = 0 private const val TAG_POSITION = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : MediaPlaybackClusterPlaybackPositionStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): MediaPlaybackClusterPlaybackPositionStruct { tlvReader.enterStructure(tlvTag) val updatedAt = tlvReader.getULong(ContextSpecificTag(TAG_UPDATED_AT)) - val position = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_POSITION)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_POSITION)) - null - } - + val position = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_POSITION)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_POSITION)) + null + } + tlvReader.exitContainer() return MediaPlaybackClusterPlaybackPositionStruct(updatedAt, position) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeOptionStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeOptionStruct.kt index 504a72e24e3598..69caf35509d049 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeOptionStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeOptionStruct.kt @@ -20,17 +20,15 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class MicrowaveOvenModeClusterModeOptionStruct ( - val label: String, - val mode: UInt, - val modeTags: List) { - override fun toString(): String = buildString { +class MicrowaveOvenModeClusterModeOptionStruct( + val label: String, + val mode: UInt, + val modeTags: List +) { + override fun toString(): String = buildString { append("MicrowaveOvenModeClusterModeOptionStruct {\n") append("\tlabel : $label\n") append("\tmode : $mode\n") @@ -57,18 +55,19 @@ class MicrowaveOvenModeClusterModeOptionStruct ( private const val TAG_MODE = 1 private const val TAG_MODE_TAGS = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : MicrowaveOvenModeClusterModeOptionStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): MicrowaveOvenModeClusterModeOptionStruct { tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val mode = tlvReader.getUInt(ContextSpecificTag(TAG_MODE)) - val modeTags = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) - while(!tlvReader.isEndOfContainer()) { - add(MicrowaveOvenModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val modeTags = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) + while (!tlvReader.isEndOfContainer()) { + add(MicrowaveOvenModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return MicrowaveOvenModeClusterModeOptionStruct(label, mode, modeTags) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeTagStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeTagStruct.kt index 4459562dcadcf3..bf9800a012de5f 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeTagStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeTagStruct.kt @@ -17,19 +17,14 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class MicrowaveOvenModeClusterModeTagStruct ( - val mfgCode: Optional, - val value: UInt) { - override fun toString(): String = buildString { +class MicrowaveOvenModeClusterModeTagStruct(val mfgCode: Optional, val value: UInt) { + override fun toString(): String = buildString { append("MicrowaveOvenModeClusterModeTagStruct {\n") append("\tmfgCode : $mfgCode\n") append("\tvalue : $value\n") @@ -40,9 +35,9 @@ class MicrowaveOvenModeClusterModeTagStruct ( tlvWriter.apply { startStructure(tlvTag) if (mfgCode.isPresent) { - val optmfgCode = mfgCode.get() - put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) - } + val optmfgCode = mfgCode.get() + put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) + } put(ContextSpecificTag(TAG_VALUE), value) endStructure() } @@ -52,15 +47,16 @@ class MicrowaveOvenModeClusterModeTagStruct ( private const val TAG_MFG_CODE = 0 private const val TAG_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : MicrowaveOvenModeClusterModeTagStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): MicrowaveOvenModeClusterModeTagStruct { tlvReader.enterStructure(tlvTag) - val mfgCode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE))) - } else { - Optional.empty() - } + val mfgCode = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE))) + } else { + Optional.empty() + } val value = tlvReader.getUInt(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return MicrowaveOvenModeClusterModeTagStruct(mfgCode, value) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ModeSelectClusterModeOptionStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ModeSelectClusterModeOptionStruct.kt index 6613c8f6988cc6..fb74943fcd20b0 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ModeSelectClusterModeOptionStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ModeSelectClusterModeOptionStruct.kt @@ -20,17 +20,15 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ModeSelectClusterModeOptionStruct ( - val label: String, - val mode: UInt, - val semanticTags: List) { - override fun toString(): String = buildString { +class ModeSelectClusterModeOptionStruct( + val label: String, + val mode: UInt, + val semanticTags: List +) { + override fun toString(): String = buildString { append("ModeSelectClusterModeOptionStruct {\n") append("\tlabel : $label\n") append("\tmode : $mode\n") @@ -57,18 +55,19 @@ class ModeSelectClusterModeOptionStruct ( private const val TAG_MODE = 1 private const val TAG_SEMANTIC_TAGS = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ModeSelectClusterModeOptionStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ModeSelectClusterModeOptionStruct { tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val mode = tlvReader.getUInt(ContextSpecificTag(TAG_MODE)) - val semanticTags = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_SEMANTIC_TAGS)) - while(!tlvReader.isEndOfContainer()) { - add(ModeSelectClusterSemanticTagStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val semanticTags = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_SEMANTIC_TAGS)) + while (!tlvReader.isEndOfContainer()) { + add(ModeSelectClusterSemanticTagStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return ModeSelectClusterModeOptionStruct(label, mode, semanticTags) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ModeSelectClusterSemanticTagStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ModeSelectClusterSemanticTagStruct.kt index 2b501b089a5d8e..ca14c2ebd4d8dc 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ModeSelectClusterSemanticTagStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ModeSelectClusterSemanticTagStruct.kt @@ -17,19 +17,13 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ModeSelectClusterSemanticTagStruct ( - val mfgCode: UInt, - val value: UInt) { - override fun toString(): String = buildString { +class ModeSelectClusterSemanticTagStruct(val mfgCode: UInt, val value: UInt) { + override fun toString(): String = buildString { append("ModeSelectClusterSemanticTagStruct {\n") append("\tmfgCode : $mfgCode\n") append("\tvalue : $value\n") @@ -49,11 +43,11 @@ class ModeSelectClusterSemanticTagStruct ( private const val TAG_MFG_CODE = 0 private const val TAG_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ModeSelectClusterSemanticTagStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ModeSelectClusterSemanticTagStruct { tlvReader.enterStructure(tlvTag) val mfgCode = tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE)) val value = tlvReader.getUInt(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return ModeSelectClusterSemanticTagStruct(mfgCode, value) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/NetworkCommissioningClusterNetworkInfoStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/NetworkCommissioningClusterNetworkInfoStruct.kt index 8639fa855b6d62..e4eee464d0b20d 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/NetworkCommissioningClusterNetworkInfoStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/NetworkCommissioningClusterNetworkInfoStruct.kt @@ -17,19 +17,16 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class NetworkCommissioningClusterNetworkInfoStruct ( - val networkID: ByteArray, - val connected: Boolean) { - override fun toString(): String = buildString { +class NetworkCommissioningClusterNetworkInfoStruct( + val networkID: ByteArray, + val connected: Boolean +) { + override fun toString(): String = buildString { append("NetworkCommissioningClusterNetworkInfoStruct {\n") append("\tnetworkID : $networkID\n") append("\tconnected : $connected\n") @@ -49,11 +46,11 @@ class NetworkCommissioningClusterNetworkInfoStruct ( private const val TAG_NETWORK_I_D = 0 private const val TAG_CONNECTED = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : NetworkCommissioningClusterNetworkInfoStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): NetworkCommissioningClusterNetworkInfoStruct { tlvReader.enterStructure(tlvTag) val networkID = tlvReader.getByteArray(ContextSpecificTag(TAG_NETWORK_I_D)) val connected = tlvReader.getBoolean(ContextSpecificTag(TAG_CONNECTED)) - + tlvReader.exitContainer() return NetworkCommissioningClusterNetworkInfoStruct(networkID, connected) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/NetworkCommissioningClusterThreadInterfaceScanResultStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/NetworkCommissioningClusterThreadInterfaceScanResultStruct.kt index 01d987d0125f0f..c72319998ba002 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/NetworkCommissioningClusterThreadInterfaceScanResultStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/NetworkCommissioningClusterThreadInterfaceScanResultStruct.kt @@ -17,25 +17,22 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class NetworkCommissioningClusterThreadInterfaceScanResultStruct ( - val panId: UInt, - val extendedPanId: ULong, - val networkName: String, - val channel: UInt, - val version: UInt, - val extendedAddress: ByteArray, - val rssi: Int, - val lqi: UInt) { - override fun toString(): String = buildString { +class NetworkCommissioningClusterThreadInterfaceScanResultStruct( + val panId: UInt, + val extendedPanId: ULong, + val networkName: String, + val channel: UInt, + val version: UInt, + val extendedAddress: ByteArray, + val rssi: Int, + val lqi: UInt +) { + override fun toString(): String = buildString { append("NetworkCommissioningClusterThreadInterfaceScanResultStruct {\n") append("\tpanId : $panId\n") append("\textendedPanId : $extendedPanId\n") @@ -73,7 +70,10 @@ class NetworkCommissioningClusterThreadInterfaceScanResultStruct ( private const val TAG_RSSI = 6 private const val TAG_LQI = 7 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : NetworkCommissioningClusterThreadInterfaceScanResultStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): NetworkCommissioningClusterThreadInterfaceScanResultStruct { tlvReader.enterStructure(tlvTag) val panId = tlvReader.getUInt(ContextSpecificTag(TAG_PAN_ID)) val extendedPanId = tlvReader.getULong(ContextSpecificTag(TAG_EXTENDED_PAN_ID)) @@ -83,10 +83,19 @@ class NetworkCommissioningClusterThreadInterfaceScanResultStruct ( val extendedAddress = tlvReader.getByteArray(ContextSpecificTag(TAG_EXTENDED_ADDRESS)) val rssi = tlvReader.getInt(ContextSpecificTag(TAG_RSSI)) val lqi = tlvReader.getUInt(ContextSpecificTag(TAG_LQI)) - + tlvReader.exitContainer() - return NetworkCommissioningClusterThreadInterfaceScanResultStruct(panId, extendedPanId, networkName, channel, version, extendedAddress, rssi, lqi) + return NetworkCommissioningClusterThreadInterfaceScanResultStruct( + panId, + extendedPanId, + networkName, + channel, + version, + extendedAddress, + rssi, + lqi + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/NetworkCommissioningClusterWiFiInterfaceScanResultStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/NetworkCommissioningClusterWiFiInterfaceScanResultStruct.kt index 8bdbd11bbc322c..e3e4ef10cbce76 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/NetworkCommissioningClusterWiFiInterfaceScanResultStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/NetworkCommissioningClusterWiFiInterfaceScanResultStruct.kt @@ -17,23 +17,20 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class NetworkCommissioningClusterWiFiInterfaceScanResultStruct ( - val security: UInt, - val ssid: ByteArray, - val bssid: ByteArray, - val channel: UInt, - val wiFiBand: UInt, - val rssi: Int) { - override fun toString(): String = buildString { +class NetworkCommissioningClusterWiFiInterfaceScanResultStruct( + val security: UInt, + val ssid: ByteArray, + val bssid: ByteArray, + val channel: UInt, + val wiFiBand: UInt, + val rssi: Int +) { + override fun toString(): String = buildString { append("NetworkCommissioningClusterWiFiInterfaceScanResultStruct {\n") append("\tsecurity : $security\n") append("\tssid : $ssid\n") @@ -65,7 +62,10 @@ class NetworkCommissioningClusterWiFiInterfaceScanResultStruct ( private const val TAG_WI_FI_BAND = 4 private const val TAG_RSSI = 5 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : NetworkCommissioningClusterWiFiInterfaceScanResultStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): NetworkCommissioningClusterWiFiInterfaceScanResultStruct { tlvReader.enterStructure(tlvTag) val security = tlvReader.getUInt(ContextSpecificTag(TAG_SECURITY)) val ssid = tlvReader.getByteArray(ContextSpecificTag(TAG_SSID)) @@ -73,10 +73,17 @@ class NetworkCommissioningClusterWiFiInterfaceScanResultStruct ( val channel = tlvReader.getUInt(ContextSpecificTag(TAG_CHANNEL)) val wiFiBand = tlvReader.getUInt(ContextSpecificTag(TAG_WI_FI_BAND)) val rssi = tlvReader.getInt(ContextSpecificTag(TAG_RSSI)) - + tlvReader.exitContainer() - return NetworkCommissioningClusterWiFiInterfaceScanResultStruct(security, ssid, bssid, channel, wiFiBand, rssi) + return NetworkCommissioningClusterWiFiInterfaceScanResultStruct( + security, + ssid, + bssid, + channel, + wiFiBand, + rssi + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalCredentialsClusterFabricDescriptorStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalCredentialsClusterFabricDescriptorStruct.kt index de9d80b7482140..a1e736d1b0407c 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalCredentialsClusterFabricDescriptorStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalCredentialsClusterFabricDescriptorStruct.kt @@ -17,23 +17,20 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class OperationalCredentialsClusterFabricDescriptorStruct ( - val rootPublicKey: ByteArray, - val vendorID: UInt, - val fabricID: ULong, - val nodeID: ULong, - val label: String, - val fabricIndex: UInt) { - override fun toString(): String = buildString { +class OperationalCredentialsClusterFabricDescriptorStruct( + val rootPublicKey: ByteArray, + val vendorID: UInt, + val fabricID: ULong, + val nodeID: ULong, + val label: String, + val fabricIndex: UInt +) { + override fun toString(): String = buildString { append("OperationalCredentialsClusterFabricDescriptorStruct {\n") append("\trootPublicKey : $rootPublicKey\n") append("\tvendorID : $vendorID\n") @@ -65,7 +62,10 @@ class OperationalCredentialsClusterFabricDescriptorStruct ( private const val TAG_LABEL = 5 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OperationalCredentialsClusterFabricDescriptorStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): OperationalCredentialsClusterFabricDescriptorStruct { tlvReader.enterStructure(tlvTag) val rootPublicKey = tlvReader.getByteArray(ContextSpecificTag(TAG_ROOT_PUBLIC_KEY)) val vendorID = tlvReader.getUInt(ContextSpecificTag(TAG_VENDOR_I_D)) @@ -73,10 +73,17 @@ class OperationalCredentialsClusterFabricDescriptorStruct ( val nodeID = tlvReader.getULong(ContextSpecificTag(TAG_NODE_I_D)) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() - return OperationalCredentialsClusterFabricDescriptorStruct(rootPublicKey, vendorID, fabricID, nodeID, label, fabricIndex) + return OperationalCredentialsClusterFabricDescriptorStruct( + rootPublicKey, + vendorID, + fabricID, + nodeID, + label, + fabricIndex + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalCredentialsClusterNOCStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalCredentialsClusterNOCStruct.kt index 2013bec14e74b5..a45a68e28cf2f8 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalCredentialsClusterNOCStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalCredentialsClusterNOCStruct.kt @@ -17,20 +17,17 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class OperationalCredentialsClusterNOCStruct ( - val noc: ByteArray, - val icac: ByteArray?, - val fabricIndex: UInt) { - override fun toString(): String = buildString { +class OperationalCredentialsClusterNOCStruct( + val noc: ByteArray, + val icac: ByteArray?, + val fabricIndex: UInt +) { + override fun toString(): String = buildString { append("OperationalCredentialsClusterNOCStruct {\n") append("\tnoc : $noc\n") append("\ticac : $icac\n") @@ -43,10 +40,10 @@ class OperationalCredentialsClusterNOCStruct ( startStructure(tlvTag) put(ContextSpecificTag(TAG_NOC), noc) if (icac != null) { - put(ContextSpecificTag(TAG_ICAC), icac) - } else { - putNull(ContextSpecificTag(TAG_ICAC)) - } + put(ContextSpecificTag(TAG_ICAC), icac) + } else { + putNull(ContextSpecificTag(TAG_ICAC)) + } put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) endStructure() } @@ -57,17 +54,18 @@ class OperationalCredentialsClusterNOCStruct ( private const val TAG_ICAC = 2 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OperationalCredentialsClusterNOCStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): OperationalCredentialsClusterNOCStruct { tlvReader.enterStructure(tlvTag) val noc = tlvReader.getByteArray(ContextSpecificTag(TAG_NOC)) - val icac = if (!tlvReader.isNull()) { - tlvReader.getByteArray(ContextSpecificTag(TAG_ICAC)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_ICAC)) - null - } + val icac = + if (!tlvReader.isNull()) { + tlvReader.getByteArray(ContextSpecificTag(TAG_ICAC)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_ICAC)) + null + } val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() return OperationalCredentialsClusterNOCStruct(noc, icac, fabricIndex) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalStateClusterErrorStateStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalStateClusterErrorStateStruct.kt index 6078c84c862ae8..c41c0205d88d84 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalStateClusterErrorStateStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalStateClusterErrorStateStruct.kt @@ -17,20 +17,18 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class OperationalStateClusterErrorStateStruct ( - val errorStateID: UInt, - val errorStateLabel: Optional, - val errorStateDetails: Optional) { - override fun toString(): String = buildString { +class OperationalStateClusterErrorStateStruct( + val errorStateID: UInt, + val errorStateLabel: Optional, + val errorStateDetails: Optional +) { + override fun toString(): String = buildString { append("OperationalStateClusterErrorStateStruct {\n") append("\terrorStateID : $errorStateID\n") append("\terrorStateLabel : $errorStateLabel\n") @@ -43,13 +41,13 @@ class OperationalStateClusterErrorStateStruct ( startStructure(tlvTag) put(ContextSpecificTag(TAG_ERROR_STATE_I_D), errorStateID) if (errorStateLabel.isPresent) { - val opterrorStateLabel = errorStateLabel.get() - put(ContextSpecificTag(TAG_ERROR_STATE_LABEL), opterrorStateLabel) - } + val opterrorStateLabel = errorStateLabel.get() + put(ContextSpecificTag(TAG_ERROR_STATE_LABEL), opterrorStateLabel) + } if (errorStateDetails.isPresent) { - val opterrorStateDetails = errorStateDetails.get() - put(ContextSpecificTag(TAG_ERROR_STATE_DETAILS), opterrorStateDetails) - } + val opterrorStateDetails = errorStateDetails.get() + put(ContextSpecificTag(TAG_ERROR_STATE_DETAILS), opterrorStateDetails) + } endStructure() } } @@ -59,23 +57,29 @@ class OperationalStateClusterErrorStateStruct ( private const val TAG_ERROR_STATE_LABEL = 1 private const val TAG_ERROR_STATE_DETAILS = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OperationalStateClusterErrorStateStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): OperationalStateClusterErrorStateStruct { tlvReader.enterStructure(tlvTag) val errorStateID = tlvReader.getUInt(ContextSpecificTag(TAG_ERROR_STATE_I_D)) - val errorStateLabel = if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) - } else { - Optional.empty() - } - val errorStateDetails = if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) - } else { - Optional.empty() - } - + val errorStateLabel = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) + } else { + Optional.empty() + } + val errorStateDetails = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return OperationalStateClusterErrorStateStruct(errorStateID, errorStateLabel, errorStateDetails) + return OperationalStateClusterErrorStateStruct( + errorStateID, + errorStateLabel, + errorStateDetails + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalStateClusterOperationalStateStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalStateClusterOperationalStateStruct.kt index e464504d71b4f1..3157b9c4b7dec2 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalStateClusterOperationalStateStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalStateClusterOperationalStateStruct.kt @@ -17,19 +17,17 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class OperationalStateClusterOperationalStateStruct ( - val operationalStateID: UInt, - val operationalStateLabel: Optional) { - override fun toString(): String = buildString { +class OperationalStateClusterOperationalStateStruct( + val operationalStateID: UInt, + val operationalStateLabel: Optional +) { + override fun toString(): String = buildString { append("OperationalStateClusterOperationalStateStruct {\n") append("\toperationalStateID : $operationalStateID\n") append("\toperationalStateLabel : $operationalStateLabel\n") @@ -41,9 +39,9 @@ class OperationalStateClusterOperationalStateStruct ( startStructure(tlvTag) put(ContextSpecificTag(TAG_OPERATIONAL_STATE_I_D), operationalStateID) if (operationalStateLabel.isPresent) { - val optoperationalStateLabel = operationalStateLabel.get() - put(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL), optoperationalStateLabel) - } + val optoperationalStateLabel = operationalStateLabel.get() + put(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL), optoperationalStateLabel) + } endStructure() } } @@ -52,18 +50,22 @@ class OperationalStateClusterOperationalStateStruct ( private const val TAG_OPERATIONAL_STATE_I_D = 0 private const val TAG_OPERATIONAL_STATE_LABEL = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OperationalStateClusterOperationalStateStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): OperationalStateClusterOperationalStateStruct { tlvReader.enterStructure(tlvTag) val operationalStateID = tlvReader.getUInt(ContextSpecificTag(TAG_OPERATIONAL_STATE_I_D)) - val operationalStateLabel = if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) - } else { - Optional.empty() - } - + val operationalStateLabel = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return OperationalStateClusterOperationalStateStruct(operationalStateID, operationalStateLabel) + return OperationalStateClusterOperationalStateStruct( + operationalStateID, + operationalStateLabel + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OtaSoftwareUpdateRequestorClusterProviderLocation.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OtaSoftwareUpdateRequestorClusterProviderLocation.kt index 7f80ca90ed8c9f..abb8f952cfce50 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OtaSoftwareUpdateRequestorClusterProviderLocation.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OtaSoftwareUpdateRequestorClusterProviderLocation.kt @@ -17,20 +17,17 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class OtaSoftwareUpdateRequestorClusterProviderLocation ( - val providerNodeID: ULong, - val endpoint: UInt, - val fabricIndex: UInt) { - override fun toString(): String = buildString { +class OtaSoftwareUpdateRequestorClusterProviderLocation( + val providerNodeID: ULong, + val endpoint: UInt, + val fabricIndex: UInt +) { + override fun toString(): String = buildString { append("OtaSoftwareUpdateRequestorClusterProviderLocation {\n") append("\tproviderNodeID : $providerNodeID\n") append("\tendpoint : $endpoint\n") @@ -53,15 +50,22 @@ class OtaSoftwareUpdateRequestorClusterProviderLocation ( private const val TAG_ENDPOINT = 2 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OtaSoftwareUpdateRequestorClusterProviderLocation { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): OtaSoftwareUpdateRequestorClusterProviderLocation { tlvReader.enterStructure(tlvTag) val providerNodeID = tlvReader.getULong(ContextSpecificTag(TAG_PROVIDER_NODE_I_D)) val endpoint = tlvReader.getUInt(ContextSpecificTag(TAG_ENDPOINT)) val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() - return OtaSoftwareUpdateRequestorClusterProviderLocation(providerNodeID, endpoint, fabricIndex) + return OtaSoftwareUpdateRequestorClusterProviderLocation( + providerNodeID, + endpoint, + fabricIndex + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PowerSourceClusterBatChargeFaultChangeType.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PowerSourceClusterBatChargeFaultChangeType.kt index c24d47fe4b23ee..1d260017a0b722 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PowerSourceClusterBatChargeFaultChangeType.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PowerSourceClusterBatChargeFaultChangeType.kt @@ -20,16 +20,14 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class PowerSourceClusterBatChargeFaultChangeType ( - val current: List, - val previous: List) { - override fun toString(): String = buildString { +class PowerSourceClusterBatChargeFaultChangeType( + val current: List, + val previous: List +) { + override fun toString(): String = buildString { append("PowerSourceClusterBatChargeFaultChangeType {\n") append("\tcurrent : $current\n") append("\tprevious : $previous\n") @@ -57,23 +55,25 @@ class PowerSourceClusterBatChargeFaultChangeType ( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : PowerSourceClusterBatChargeFaultChangeType { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): PowerSourceClusterBatChargeFaultChangeType { tlvReader.enterStructure(tlvTag) - val current = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val previous = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val current = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val previous = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return PowerSourceClusterBatChargeFaultChangeType(current, previous) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PowerSourceClusterBatFaultChangeType.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PowerSourceClusterBatFaultChangeType.kt index 789a1f0a36c47c..07ed4351bcd3a1 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PowerSourceClusterBatFaultChangeType.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PowerSourceClusterBatFaultChangeType.kt @@ -20,16 +20,11 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class PowerSourceClusterBatFaultChangeType ( - val current: List, - val previous: List) { - override fun toString(): String = buildString { +class PowerSourceClusterBatFaultChangeType(val current: List, val previous: List) { + override fun toString(): String = buildString { append("PowerSourceClusterBatFaultChangeType {\n") append("\tcurrent : $current\n") append("\tprevious : $previous\n") @@ -57,23 +52,25 @@ class PowerSourceClusterBatFaultChangeType ( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : PowerSourceClusterBatFaultChangeType { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): PowerSourceClusterBatFaultChangeType { tlvReader.enterStructure(tlvTag) - val current = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val previous = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val current = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val previous = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return PowerSourceClusterBatFaultChangeType(current, previous) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PowerSourceClusterWiredFaultChangeType.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PowerSourceClusterWiredFaultChangeType.kt index 849c0b2edfc454..f0c80ef26ff5ad 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PowerSourceClusterWiredFaultChangeType.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PowerSourceClusterWiredFaultChangeType.kt @@ -20,16 +20,11 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class PowerSourceClusterWiredFaultChangeType ( - val current: List, - val previous: List) { - override fun toString(): String = buildString { +class PowerSourceClusterWiredFaultChangeType(val current: List, val previous: List) { + override fun toString(): String = buildString { append("PowerSourceClusterWiredFaultChangeType {\n") append("\tcurrent : $current\n") append("\tprevious : $previous\n") @@ -57,23 +52,25 @@ class PowerSourceClusterWiredFaultChangeType ( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : PowerSourceClusterWiredFaultChangeType { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): PowerSourceClusterWiredFaultChangeType { tlvReader.enterStructure(tlvTag) - val current = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val previous = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val current = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val previous = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return PowerSourceClusterWiredFaultChangeType(current, previous) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct.kt index 74809e3ae5215c..85b1d995d2fd76 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct.kt @@ -20,17 +20,15 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct ( - val label: String, - val mode: UInt, - val modeTags: List) { - override fun toString(): String = buildString { +class RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct( + val label: String, + val mode: UInt, + val modeTags: List +) { + override fun toString(): String = buildString { append("RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct {\n") append("\tlabel : $label\n") append("\tmode : $mode\n") @@ -57,21 +55,34 @@ class RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct ( private const val TAG_MODE = 1 private const val TAG_MODE_TAGS = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct { tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val mode = tlvReader.getUInt(ContextSpecificTag(TAG_MODE)) - val modeTags = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) - while(!tlvReader.isEndOfContainer()) { - add(RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val modeTags = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) + while (!tlvReader.isEndOfContainer()) { + add( + RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct.fromTlv( + AnonymousTag, + tlvReader + ) + ) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() - return RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct(label, mode, modeTags) + return RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct( + label, + mode, + modeTags + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct.kt index 0831587768d6a3..db10b1db8bab30 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct.kt @@ -17,19 +17,17 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct ( - val mfgCode: Optional, - val value: UInt) { - override fun toString(): String = buildString { +class RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct( + val mfgCode: Optional, + val value: UInt +) { + override fun toString(): String = buildString { append("RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct {\n") append("\tmfgCode : $mfgCode\n") append("\tvalue : $value\n") @@ -40,9 +38,9 @@ class RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct ( tlvWriter.apply { startStructure(tlvTag) if (mfgCode.isPresent) { - val optmfgCode = mfgCode.get() - put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) - } + val optmfgCode = mfgCode.get() + put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) + } put(ContextSpecificTag(TAG_VALUE), value) endStructure() } @@ -52,15 +50,19 @@ class RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct ( private const val TAG_MFG_CODE = 0 private const val TAG_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct { tlvReader.enterStructure(tlvTag) - val mfgCode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE))) - } else { - Optional.empty() - } + val mfgCode = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE))) + } else { + Optional.empty() + } val value = tlvReader.getUInt(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct(mfgCode, value) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcCleanModeClusterModeOptionStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcCleanModeClusterModeOptionStruct.kt index d4cf5dd09a6214..31f7b8adb6ac63 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcCleanModeClusterModeOptionStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcCleanModeClusterModeOptionStruct.kt @@ -20,17 +20,15 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class RvcCleanModeClusterModeOptionStruct ( - val label: String, - val mode: UInt, - val modeTags: List) { - override fun toString(): String = buildString { +class RvcCleanModeClusterModeOptionStruct( + val label: String, + val mode: UInt, + val modeTags: List +) { + override fun toString(): String = buildString { append("RvcCleanModeClusterModeOptionStruct {\n") append("\tlabel : $label\n") append("\tmode : $mode\n") @@ -57,18 +55,19 @@ class RvcCleanModeClusterModeOptionStruct ( private const val TAG_MODE = 1 private const val TAG_MODE_TAGS = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RvcCleanModeClusterModeOptionStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): RvcCleanModeClusterModeOptionStruct { tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val mode = tlvReader.getUInt(ContextSpecificTag(TAG_MODE)) - val modeTags = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) - while(!tlvReader.isEndOfContainer()) { - add(RvcCleanModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val modeTags = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) + while (!tlvReader.isEndOfContainer()) { + add(RvcCleanModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return RvcCleanModeClusterModeOptionStruct(label, mode, modeTags) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcCleanModeClusterModeTagStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcCleanModeClusterModeTagStruct.kt index 7c293c839acb4f..a06d26774dacc6 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcCleanModeClusterModeTagStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcCleanModeClusterModeTagStruct.kt @@ -17,19 +17,14 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class RvcCleanModeClusterModeTagStruct ( - val mfgCode: Optional, - val value: UInt) { - override fun toString(): String = buildString { +class RvcCleanModeClusterModeTagStruct(val mfgCode: Optional, val value: UInt) { + override fun toString(): String = buildString { append("RvcCleanModeClusterModeTagStruct {\n") append("\tmfgCode : $mfgCode\n") append("\tvalue : $value\n") @@ -40,9 +35,9 @@ class RvcCleanModeClusterModeTagStruct ( tlvWriter.apply { startStructure(tlvTag) if (mfgCode.isPresent) { - val optmfgCode = mfgCode.get() - put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) - } + val optmfgCode = mfgCode.get() + put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) + } put(ContextSpecificTag(TAG_VALUE), value) endStructure() } @@ -52,15 +47,16 @@ class RvcCleanModeClusterModeTagStruct ( private const val TAG_MFG_CODE = 0 private const val TAG_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RvcCleanModeClusterModeTagStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): RvcCleanModeClusterModeTagStruct { tlvReader.enterStructure(tlvTag) - val mfgCode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE))) - } else { - Optional.empty() - } + val mfgCode = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE))) + } else { + Optional.empty() + } val value = tlvReader.getUInt(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return RvcCleanModeClusterModeTagStruct(mfgCode, value) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcOperationalStateClusterErrorStateStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcOperationalStateClusterErrorStateStruct.kt index 15f9250edbe478..0f8daddb5212c3 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcOperationalStateClusterErrorStateStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcOperationalStateClusterErrorStateStruct.kt @@ -17,20 +17,18 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class RvcOperationalStateClusterErrorStateStruct ( - val errorStateID: UInt, - val errorStateLabel: Optional, - val errorStateDetails: Optional) { - override fun toString(): String = buildString { +class RvcOperationalStateClusterErrorStateStruct( + val errorStateID: UInt, + val errorStateLabel: Optional, + val errorStateDetails: Optional +) { + override fun toString(): String = buildString { append("RvcOperationalStateClusterErrorStateStruct {\n") append("\terrorStateID : $errorStateID\n") append("\terrorStateLabel : $errorStateLabel\n") @@ -43,13 +41,13 @@ class RvcOperationalStateClusterErrorStateStruct ( startStructure(tlvTag) put(ContextSpecificTag(TAG_ERROR_STATE_I_D), errorStateID) if (errorStateLabel.isPresent) { - val opterrorStateLabel = errorStateLabel.get() - put(ContextSpecificTag(TAG_ERROR_STATE_LABEL), opterrorStateLabel) - } + val opterrorStateLabel = errorStateLabel.get() + put(ContextSpecificTag(TAG_ERROR_STATE_LABEL), opterrorStateLabel) + } if (errorStateDetails.isPresent) { - val opterrorStateDetails = errorStateDetails.get() - put(ContextSpecificTag(TAG_ERROR_STATE_DETAILS), opterrorStateDetails) - } + val opterrorStateDetails = errorStateDetails.get() + put(ContextSpecificTag(TAG_ERROR_STATE_DETAILS), opterrorStateDetails) + } endStructure() } } @@ -59,23 +57,29 @@ class RvcOperationalStateClusterErrorStateStruct ( private const val TAG_ERROR_STATE_LABEL = 1 private const val TAG_ERROR_STATE_DETAILS = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RvcOperationalStateClusterErrorStateStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): RvcOperationalStateClusterErrorStateStruct { tlvReader.enterStructure(tlvTag) val errorStateID = tlvReader.getUInt(ContextSpecificTag(TAG_ERROR_STATE_I_D)) - val errorStateLabel = if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) - } else { - Optional.empty() - } - val errorStateDetails = if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) - } else { - Optional.empty() - } - + val errorStateLabel = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) + } else { + Optional.empty() + } + val errorStateDetails = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return RvcOperationalStateClusterErrorStateStruct(errorStateID, errorStateLabel, errorStateDetails) + return RvcOperationalStateClusterErrorStateStruct( + errorStateID, + errorStateLabel, + errorStateDetails + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcOperationalStateClusterOperationalStateStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcOperationalStateClusterOperationalStateStruct.kt index 930daff7a6d833..cc01c472f7f71b 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcOperationalStateClusterOperationalStateStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcOperationalStateClusterOperationalStateStruct.kt @@ -17,19 +17,17 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class RvcOperationalStateClusterOperationalStateStruct ( - val operationalStateID: UInt, - val operationalStateLabel: Optional) { - override fun toString(): String = buildString { +class RvcOperationalStateClusterOperationalStateStruct( + val operationalStateID: UInt, + val operationalStateLabel: Optional +) { + override fun toString(): String = buildString { append("RvcOperationalStateClusterOperationalStateStruct {\n") append("\toperationalStateID : $operationalStateID\n") append("\toperationalStateLabel : $operationalStateLabel\n") @@ -41,9 +39,9 @@ class RvcOperationalStateClusterOperationalStateStruct ( startStructure(tlvTag) put(ContextSpecificTag(TAG_OPERATIONAL_STATE_I_D), operationalStateID) if (operationalStateLabel.isPresent) { - val optoperationalStateLabel = operationalStateLabel.get() - put(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL), optoperationalStateLabel) - } + val optoperationalStateLabel = operationalStateLabel.get() + put(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL), optoperationalStateLabel) + } endStructure() } } @@ -52,18 +50,25 @@ class RvcOperationalStateClusterOperationalStateStruct ( private const val TAG_OPERATIONAL_STATE_I_D = 0 private const val TAG_OPERATIONAL_STATE_LABEL = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RvcOperationalStateClusterOperationalStateStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): RvcOperationalStateClusterOperationalStateStruct { tlvReader.enterStructure(tlvTag) val operationalStateID = tlvReader.getUInt(ContextSpecificTag(TAG_OPERATIONAL_STATE_I_D)) - val operationalStateLabel = if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) - } else { - Optional.empty() - } - + val operationalStateLabel = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return RvcOperationalStateClusterOperationalStateStruct(operationalStateID, operationalStateLabel) + return RvcOperationalStateClusterOperationalStateStruct( + operationalStateID, + operationalStateLabel + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcRunModeClusterModeOptionStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcRunModeClusterModeOptionStruct.kt index 519546666e3b33..c20f7b3f626474 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcRunModeClusterModeOptionStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcRunModeClusterModeOptionStruct.kt @@ -20,17 +20,15 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class RvcRunModeClusterModeOptionStruct ( - val label: String, - val mode: UInt, - val modeTags: List) { - override fun toString(): String = buildString { +class RvcRunModeClusterModeOptionStruct( + val label: String, + val mode: UInt, + val modeTags: List +) { + override fun toString(): String = buildString { append("RvcRunModeClusterModeOptionStruct {\n") append("\tlabel : $label\n") append("\tmode : $mode\n") @@ -57,18 +55,19 @@ class RvcRunModeClusterModeOptionStruct ( private const val TAG_MODE = 1 private const val TAG_MODE_TAGS = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RvcRunModeClusterModeOptionStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): RvcRunModeClusterModeOptionStruct { tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val mode = tlvReader.getUInt(ContextSpecificTag(TAG_MODE)) - val modeTags = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) - while(!tlvReader.isEndOfContainer()) { - add(RvcRunModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val modeTags = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) + while (!tlvReader.isEndOfContainer()) { + add(RvcRunModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return RvcRunModeClusterModeOptionStruct(label, mode, modeTags) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcRunModeClusterModeTagStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcRunModeClusterModeTagStruct.kt index c6183c3e89c585..4c32d28ee6ad67 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcRunModeClusterModeTagStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcRunModeClusterModeTagStruct.kt @@ -17,19 +17,14 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class RvcRunModeClusterModeTagStruct ( - val mfgCode: Optional, - val value: UInt) { - override fun toString(): String = buildString { +class RvcRunModeClusterModeTagStruct(val mfgCode: Optional, val value: UInt) { + override fun toString(): String = buildString { append("RvcRunModeClusterModeTagStruct {\n") append("\tmfgCode : $mfgCode\n") append("\tvalue : $value\n") @@ -40,9 +35,9 @@ class RvcRunModeClusterModeTagStruct ( tlvWriter.apply { startStructure(tlvTag) if (mfgCode.isPresent) { - val optmfgCode = mfgCode.get() - put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) - } + val optmfgCode = mfgCode.get() + put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) + } put(ContextSpecificTag(TAG_VALUE), value) endStructure() } @@ -52,15 +47,16 @@ class RvcRunModeClusterModeTagStruct ( private const val TAG_MFG_CODE = 0 private const val TAG_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RvcRunModeClusterModeTagStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): RvcRunModeClusterModeTagStruct { tlvReader.enterStructure(tlvTag) - val mfgCode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE))) - } else { - Optional.empty() - } + val mfgCode = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE))) + } else { + Optional.empty() + } val value = tlvReader.getUInt(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return RvcRunModeClusterModeTagStruct(mfgCode, value) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ScenesClusterAttributeValuePair.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ScenesClusterAttributeValuePair.kt index 61bf2d3c5b9321..f26ab20211dd8d 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ScenesClusterAttributeValuePair.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ScenesClusterAttributeValuePair.kt @@ -17,19 +17,13 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ScenesClusterAttributeValuePair ( - val attributeID: ULong, - val attributeValue: ULong) { - override fun toString(): String = buildString { +class ScenesClusterAttributeValuePair(val attributeID: ULong, val attributeValue: ULong) { + override fun toString(): String = buildString { append("ScenesClusterAttributeValuePair {\n") append("\tattributeID : $attributeID\n") append("\tattributeValue : $attributeValue\n") @@ -49,11 +43,11 @@ class ScenesClusterAttributeValuePair ( private const val TAG_ATTRIBUTE_I_D = 0 private const val TAG_ATTRIBUTE_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ScenesClusterAttributeValuePair { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ScenesClusterAttributeValuePair { tlvReader.enterStructure(tlvTag) val attributeID = tlvReader.getULong(ContextSpecificTag(TAG_ATTRIBUTE_I_D)) val attributeValue = tlvReader.getULong(ContextSpecificTag(TAG_ATTRIBUTE_VALUE)) - + tlvReader.exitContainer() return ScenesClusterAttributeValuePair(attributeID, attributeValue) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ScenesClusterExtensionFieldSet.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ScenesClusterExtensionFieldSet.kt index d6b615b148c3dd..7999a24e2d78de 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ScenesClusterExtensionFieldSet.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ScenesClusterExtensionFieldSet.kt @@ -20,16 +20,14 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ScenesClusterExtensionFieldSet ( - val clusterID: ULong, - val attributeValueList: List) { - override fun toString(): String = buildString { +class ScenesClusterExtensionFieldSet( + val clusterID: ULong, + val attributeValueList: List +) { + override fun toString(): String = buildString { append("ScenesClusterExtensionFieldSet {\n") append("\tclusterID : $clusterID\n") append("\tattributeValueList : $attributeValueList\n") @@ -53,17 +51,18 @@ class ScenesClusterExtensionFieldSet ( private const val TAG_CLUSTER_I_D = 0 private const val TAG_ATTRIBUTE_VALUE_LIST = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ScenesClusterExtensionFieldSet { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ScenesClusterExtensionFieldSet { tlvReader.enterStructure(tlvTag) val clusterID = tlvReader.getULong(ContextSpecificTag(TAG_CLUSTER_I_D)) - val attributeValueList = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_ATTRIBUTE_VALUE_LIST)) - while(!tlvReader.isEndOfContainer()) { - add(ScenesClusterAttributeValuePair.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val attributeValueList = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_ATTRIBUTE_VALUE_LIST)) + while (!tlvReader.isEndOfContainer()) { + add(ScenesClusterAttributeValuePair.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return ScenesClusterExtensionFieldSet(clusterID, attributeValueList) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/SoftwareDiagnosticsClusterThreadMetricsStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/SoftwareDiagnosticsClusterThreadMetricsStruct.kt index 3ef4fc6b3bbfa6..f606a46f9fd057 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/SoftwareDiagnosticsClusterThreadMetricsStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/SoftwareDiagnosticsClusterThreadMetricsStruct.kt @@ -17,22 +17,20 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class SoftwareDiagnosticsClusterThreadMetricsStruct ( - val id: ULong, - val name: Optional, - val stackFreeCurrent: Optional, - val stackFreeMinimum: Optional, - val stackSize: Optional) { - override fun toString(): String = buildString { +class SoftwareDiagnosticsClusterThreadMetricsStruct( + val id: ULong, + val name: Optional, + val stackFreeCurrent: Optional, + val stackFreeMinimum: Optional, + val stackSize: Optional +) { + override fun toString(): String = buildString { append("SoftwareDiagnosticsClusterThreadMetricsStruct {\n") append("\tid : $id\n") append("\tname : $name\n") @@ -47,21 +45,21 @@ class SoftwareDiagnosticsClusterThreadMetricsStruct ( startStructure(tlvTag) put(ContextSpecificTag(TAG_ID), id) if (name.isPresent) { - val optname = name.get() - put(ContextSpecificTag(TAG_NAME), optname) - } + val optname = name.get() + put(ContextSpecificTag(TAG_NAME), optname) + } if (stackFreeCurrent.isPresent) { - val optstackFreeCurrent = stackFreeCurrent.get() - put(ContextSpecificTag(TAG_STACK_FREE_CURRENT), optstackFreeCurrent) - } + val optstackFreeCurrent = stackFreeCurrent.get() + put(ContextSpecificTag(TAG_STACK_FREE_CURRENT), optstackFreeCurrent) + } if (stackFreeMinimum.isPresent) { - val optstackFreeMinimum = stackFreeMinimum.get() - put(ContextSpecificTag(TAG_STACK_FREE_MINIMUM), optstackFreeMinimum) - } + val optstackFreeMinimum = stackFreeMinimum.get() + put(ContextSpecificTag(TAG_STACK_FREE_MINIMUM), optstackFreeMinimum) + } if (stackSize.isPresent) { - val optstackSize = stackSize.get() - put(ContextSpecificTag(TAG_STACK_SIZE), optstackSize) - } + val optstackSize = stackSize.get() + put(ContextSpecificTag(TAG_STACK_SIZE), optstackSize) + } endStructure() } } @@ -73,33 +71,43 @@ class SoftwareDiagnosticsClusterThreadMetricsStruct ( private const val TAG_STACK_FREE_MINIMUM = 3 private const val TAG_STACK_SIZE = 4 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SoftwareDiagnosticsClusterThreadMetricsStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SoftwareDiagnosticsClusterThreadMetricsStruct { tlvReader.enterStructure(tlvTag) val id = tlvReader.getULong(ContextSpecificTag(TAG_ID)) - val name = if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) - } else { - Optional.empty() - } - val stackFreeCurrent = if (tlvReader.isNextTag(ContextSpecificTag(TAG_STACK_FREE_CURRENT))) { - Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_STACK_FREE_CURRENT))) - } else { - Optional.empty() - } - val stackFreeMinimum = if (tlvReader.isNextTag(ContextSpecificTag(TAG_STACK_FREE_MINIMUM))) { - Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_STACK_FREE_MINIMUM))) - } else { - Optional.empty() - } - val stackSize = if (tlvReader.isNextTag(ContextSpecificTag(TAG_STACK_SIZE))) { - Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_STACK_SIZE))) - } else { - Optional.empty() - } - + val name = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) + } else { + Optional.empty() + } + val stackFreeCurrent = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_STACK_FREE_CURRENT))) { + Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_STACK_FREE_CURRENT))) + } else { + Optional.empty() + } + val stackFreeMinimum = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_STACK_FREE_MINIMUM))) { + Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_STACK_FREE_MINIMUM))) + } else { + Optional.empty() + } + val stackSize = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_STACK_SIZE))) { + Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_STACK_SIZE))) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return SoftwareDiagnosticsClusterThreadMetricsStruct(id, name, stackFreeCurrent, stackFreeMinimum, stackSize) + return SoftwareDiagnosticsClusterThreadMetricsStruct( + id, + name, + stackFreeCurrent, + stackFreeMinimum, + stackSize + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TargetNavigatorClusterTargetInfoStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TargetNavigatorClusterTargetInfoStruct.kt index 49ebd8e74713c8..8d667ba0f94cfa 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TargetNavigatorClusterTargetInfoStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TargetNavigatorClusterTargetInfoStruct.kt @@ -17,19 +17,13 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class TargetNavigatorClusterTargetInfoStruct ( - val identifier: UInt, - val name: String) { - override fun toString(): String = buildString { +class TargetNavigatorClusterTargetInfoStruct(val identifier: UInt, val name: String) { + override fun toString(): String = buildString { append("TargetNavigatorClusterTargetInfoStruct {\n") append("\tidentifier : $identifier\n") append("\tname : $name\n") @@ -49,11 +43,11 @@ class TargetNavigatorClusterTargetInfoStruct ( private const val TAG_IDENTIFIER = 0 private const val TAG_NAME = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : TargetNavigatorClusterTargetInfoStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): TargetNavigatorClusterTargetInfoStruct { tlvReader.enterStructure(tlvTag) val identifier = tlvReader.getUInt(ContextSpecificTag(TAG_IDENTIFIER)) val name = tlvReader.getString(ContextSpecificTag(TAG_NAME)) - + tlvReader.exitContainer() return TargetNavigatorClusterTargetInfoStruct(identifier, name) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterThermostatScheduleTransition.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterThermostatScheduleTransition.kt index 7e40784e11af55..385f331a718700 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterThermostatScheduleTransition.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterThermostatScheduleTransition.kt @@ -17,20 +17,17 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ThermostatClusterThermostatScheduleTransition ( - val transitionTime: UInt, - val heatSetpoint: Int?, - val coolSetpoint: Int?) { - override fun toString(): String = buildString { +class ThermostatClusterThermostatScheduleTransition( + val transitionTime: UInt, + val heatSetpoint: Int?, + val coolSetpoint: Int? +) { + override fun toString(): String = buildString { append("ThermostatClusterThermostatScheduleTransition {\n") append("\ttransitionTime : $transitionTime\n") append("\theatSetpoint : $heatSetpoint\n") @@ -43,15 +40,15 @@ class ThermostatClusterThermostatScheduleTransition ( startStructure(tlvTag) put(ContextSpecificTag(TAG_TRANSITION_TIME), transitionTime) if (heatSetpoint != null) { - put(ContextSpecificTag(TAG_HEAT_SETPOINT), heatSetpoint) - } else { - putNull(ContextSpecificTag(TAG_HEAT_SETPOINT)) - } + put(ContextSpecificTag(TAG_HEAT_SETPOINT), heatSetpoint) + } else { + putNull(ContextSpecificTag(TAG_HEAT_SETPOINT)) + } if (coolSetpoint != null) { - put(ContextSpecificTag(TAG_COOL_SETPOINT), coolSetpoint) - } else { - putNull(ContextSpecificTag(TAG_COOL_SETPOINT)) - } + put(ContextSpecificTag(TAG_COOL_SETPOINT), coolSetpoint) + } else { + putNull(ContextSpecificTag(TAG_COOL_SETPOINT)) + } endStructure() } } @@ -61,25 +58,31 @@ class ThermostatClusterThermostatScheduleTransition ( private const val TAG_HEAT_SETPOINT = 1 private const val TAG_COOL_SETPOINT = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ThermostatClusterThermostatScheduleTransition { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ThermostatClusterThermostatScheduleTransition { tlvReader.enterStructure(tlvTag) val transitionTime = tlvReader.getUInt(ContextSpecificTag(TAG_TRANSITION_TIME)) - val heatSetpoint = if (!tlvReader.isNull()) { - tlvReader.getInt(ContextSpecificTag(TAG_HEAT_SETPOINT)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_HEAT_SETPOINT)) - null - } - val coolSetpoint = if (!tlvReader.isNull()) { - tlvReader.getInt(ContextSpecificTag(TAG_COOL_SETPOINT)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_COOL_SETPOINT)) - null - } - + val heatSetpoint = + if (!tlvReader.isNull()) { + tlvReader.getInt(ContextSpecificTag(TAG_HEAT_SETPOINT)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_HEAT_SETPOINT)) + null + } + val coolSetpoint = + if (!tlvReader.isNull()) { + tlvReader.getInt(ContextSpecificTag(TAG_COOL_SETPOINT)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_COOL_SETPOINT)) + null + } + tlvReader.exitContainer() - return ThermostatClusterThermostatScheduleTransition(transitionTime, heatSetpoint, coolSetpoint) + return ThermostatClusterThermostatScheduleTransition( + transitionTime, + heatSetpoint, + coolSetpoint + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterNeighborTableStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterNeighborTableStruct.kt index 40156c06651284..84733d5bd9d5fc 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterNeighborTableStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterNeighborTableStruct.kt @@ -17,31 +17,28 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ThreadNetworkDiagnosticsClusterNeighborTableStruct ( - val extAddress: ULong, - val age: ULong, - val rloc16: UInt, - val linkFrameCounter: ULong, - val mleFrameCounter: ULong, - val lqi: UInt, - val averageRssi: Int?, - val lastRssi: Int?, - val frameErrorRate: UInt, - val messageErrorRate: UInt, - val rxOnWhenIdle: Boolean, - val fullThreadDevice: Boolean, - val fullNetworkData: Boolean, - val isChild: Boolean) { - override fun toString(): String = buildString { +class ThreadNetworkDiagnosticsClusterNeighborTableStruct( + val extAddress: ULong, + val age: ULong, + val rloc16: UInt, + val linkFrameCounter: ULong, + val mleFrameCounter: ULong, + val lqi: UInt, + val averageRssi: Int?, + val lastRssi: Int?, + val frameErrorRate: UInt, + val messageErrorRate: UInt, + val rxOnWhenIdle: Boolean, + val fullThreadDevice: Boolean, + val fullNetworkData: Boolean, + val isChild: Boolean +) { + override fun toString(): String = buildString { append("ThreadNetworkDiagnosticsClusterNeighborTableStruct {\n") append("\textAddress : $extAddress\n") append("\tage : $age\n") @@ -70,15 +67,15 @@ class ThreadNetworkDiagnosticsClusterNeighborTableStruct ( put(ContextSpecificTag(TAG_MLE_FRAME_COUNTER), mleFrameCounter) put(ContextSpecificTag(TAG_LQI), lqi) if (averageRssi != null) { - put(ContextSpecificTag(TAG_AVERAGE_RSSI), averageRssi) - } else { - putNull(ContextSpecificTag(TAG_AVERAGE_RSSI)) - } + put(ContextSpecificTag(TAG_AVERAGE_RSSI), averageRssi) + } else { + putNull(ContextSpecificTag(TAG_AVERAGE_RSSI)) + } if (lastRssi != null) { - put(ContextSpecificTag(TAG_LAST_RSSI), lastRssi) - } else { - putNull(ContextSpecificTag(TAG_LAST_RSSI)) - } + put(ContextSpecificTag(TAG_LAST_RSSI), lastRssi) + } else { + putNull(ContextSpecificTag(TAG_LAST_RSSI)) + } put(ContextSpecificTag(TAG_FRAME_ERROR_RATE), frameErrorRate) put(ContextSpecificTag(TAG_MESSAGE_ERROR_RATE), messageErrorRate) put(ContextSpecificTag(TAG_RX_ON_WHEN_IDLE), rxOnWhenIdle) @@ -105,7 +102,10 @@ class ThreadNetworkDiagnosticsClusterNeighborTableStruct ( private const val TAG_FULL_NETWORK_DATA = 12 private const val TAG_IS_CHILD = 13 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ThreadNetworkDiagnosticsClusterNeighborTableStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): ThreadNetworkDiagnosticsClusterNeighborTableStruct { tlvReader.enterStructure(tlvTag) val extAddress = tlvReader.getULong(ContextSpecificTag(TAG_EXT_ADDRESS)) val age = tlvReader.getULong(ContextSpecificTag(TAG_AGE)) @@ -113,28 +113,45 @@ class ThreadNetworkDiagnosticsClusterNeighborTableStruct ( val linkFrameCounter = tlvReader.getULong(ContextSpecificTag(TAG_LINK_FRAME_COUNTER)) val mleFrameCounter = tlvReader.getULong(ContextSpecificTag(TAG_MLE_FRAME_COUNTER)) val lqi = tlvReader.getUInt(ContextSpecificTag(TAG_LQI)) - val averageRssi = if (!tlvReader.isNull()) { - tlvReader.getInt(ContextSpecificTag(TAG_AVERAGE_RSSI)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_AVERAGE_RSSI)) - null - } - val lastRssi = if (!tlvReader.isNull()) { - tlvReader.getInt(ContextSpecificTag(TAG_LAST_RSSI)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_LAST_RSSI)) - null - } + val averageRssi = + if (!tlvReader.isNull()) { + tlvReader.getInt(ContextSpecificTag(TAG_AVERAGE_RSSI)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_AVERAGE_RSSI)) + null + } + val lastRssi = + if (!tlvReader.isNull()) { + tlvReader.getInt(ContextSpecificTag(TAG_LAST_RSSI)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_LAST_RSSI)) + null + } val frameErrorRate = tlvReader.getUInt(ContextSpecificTag(TAG_FRAME_ERROR_RATE)) val messageErrorRate = tlvReader.getUInt(ContextSpecificTag(TAG_MESSAGE_ERROR_RATE)) val rxOnWhenIdle = tlvReader.getBoolean(ContextSpecificTag(TAG_RX_ON_WHEN_IDLE)) val fullThreadDevice = tlvReader.getBoolean(ContextSpecificTag(TAG_FULL_THREAD_DEVICE)) val fullNetworkData = tlvReader.getBoolean(ContextSpecificTag(TAG_FULL_NETWORK_DATA)) val isChild = tlvReader.getBoolean(ContextSpecificTag(TAG_IS_CHILD)) - + tlvReader.exitContainer() - return ThreadNetworkDiagnosticsClusterNeighborTableStruct(extAddress, age, rloc16, linkFrameCounter, mleFrameCounter, lqi, averageRssi, lastRssi, frameErrorRate, messageErrorRate, rxOnWhenIdle, fullThreadDevice, fullNetworkData, isChild) + return ThreadNetworkDiagnosticsClusterNeighborTableStruct( + extAddress, + age, + rloc16, + linkFrameCounter, + mleFrameCounter, + lqi, + averageRssi, + lastRssi, + frameErrorRate, + messageErrorRate, + rxOnWhenIdle, + fullThreadDevice, + fullNetworkData, + isChild + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterOperationalDatasetComponents.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterOperationalDatasetComponents.kt index b236dab6cb1906..39938fd1ee6403 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterOperationalDatasetComponents.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterOperationalDatasetComponents.kt @@ -17,29 +17,26 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ThreadNetworkDiagnosticsClusterOperationalDatasetComponents ( - val activeTimestampPresent: Boolean, - val pendingTimestampPresent: Boolean, - val masterKeyPresent: Boolean, - val networkNamePresent: Boolean, - val extendedPanIdPresent: Boolean, - val meshLocalPrefixPresent: Boolean, - val delayPresent: Boolean, - val panIdPresent: Boolean, - val channelPresent: Boolean, - val pskcPresent: Boolean, - val securityPolicyPresent: Boolean, - val channelMaskPresent: Boolean) { - override fun toString(): String = buildString { +class ThreadNetworkDiagnosticsClusterOperationalDatasetComponents( + val activeTimestampPresent: Boolean, + val pendingTimestampPresent: Boolean, + val masterKeyPresent: Boolean, + val networkNamePresent: Boolean, + val extendedPanIdPresent: Boolean, + val meshLocalPrefixPresent: Boolean, + val delayPresent: Boolean, + val panIdPresent: Boolean, + val channelPresent: Boolean, + val pskcPresent: Boolean, + val securityPolicyPresent: Boolean, + val channelMaskPresent: Boolean +) { + override fun toString(): String = buildString { append("ThreadNetworkDiagnosticsClusterOperationalDatasetComponents {\n") append("\tactiveTimestampPresent : $activeTimestampPresent\n") append("\tpendingTimestampPresent : $pendingTimestampPresent\n") @@ -89,24 +86,45 @@ class ThreadNetworkDiagnosticsClusterOperationalDatasetComponents ( private const val TAG_SECURITY_POLICY_PRESENT = 10 private const val TAG_CHANNEL_MASK_PRESENT = 11 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ThreadNetworkDiagnosticsClusterOperationalDatasetComponents { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): ThreadNetworkDiagnosticsClusterOperationalDatasetComponents { tlvReader.enterStructure(tlvTag) - val activeTimestampPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_ACTIVE_TIMESTAMP_PRESENT)) - val pendingTimestampPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_PENDING_TIMESTAMP_PRESENT)) + val activeTimestampPresent = + tlvReader.getBoolean(ContextSpecificTag(TAG_ACTIVE_TIMESTAMP_PRESENT)) + val pendingTimestampPresent = + tlvReader.getBoolean(ContextSpecificTag(TAG_PENDING_TIMESTAMP_PRESENT)) val masterKeyPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_MASTER_KEY_PRESENT)) val networkNamePresent = tlvReader.getBoolean(ContextSpecificTag(TAG_NETWORK_NAME_PRESENT)) - val extendedPanIdPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_EXTENDED_PAN_ID_PRESENT)) - val meshLocalPrefixPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_MESH_LOCAL_PREFIX_PRESENT)) + val extendedPanIdPresent = + tlvReader.getBoolean(ContextSpecificTag(TAG_EXTENDED_PAN_ID_PRESENT)) + val meshLocalPrefixPresent = + tlvReader.getBoolean(ContextSpecificTag(TAG_MESH_LOCAL_PREFIX_PRESENT)) val delayPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_DELAY_PRESENT)) val panIdPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_PAN_ID_PRESENT)) val channelPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_CHANNEL_PRESENT)) val pskcPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_PSKC_PRESENT)) - val securityPolicyPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_SECURITY_POLICY_PRESENT)) + val securityPolicyPresent = + tlvReader.getBoolean(ContextSpecificTag(TAG_SECURITY_POLICY_PRESENT)) val channelMaskPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_CHANNEL_MASK_PRESENT)) - + tlvReader.exitContainer() - return ThreadNetworkDiagnosticsClusterOperationalDatasetComponents(activeTimestampPresent, pendingTimestampPresent, masterKeyPresent, networkNamePresent, extendedPanIdPresent, meshLocalPrefixPresent, delayPresent, panIdPresent, channelPresent, pskcPresent, securityPolicyPresent, channelMaskPresent) + return ThreadNetworkDiagnosticsClusterOperationalDatasetComponents( + activeTimestampPresent, + pendingTimestampPresent, + masterKeyPresent, + networkNamePresent, + extendedPanIdPresent, + meshLocalPrefixPresent, + delayPresent, + panIdPresent, + channelPresent, + pskcPresent, + securityPolicyPresent, + channelMaskPresent + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterRouteTableStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterRouteTableStruct.kt index 3d5edad134669d..d1bbbec7592462 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterRouteTableStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterRouteTableStruct.kt @@ -17,27 +17,24 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ThreadNetworkDiagnosticsClusterRouteTableStruct ( - val extAddress: ULong, - val rloc16: UInt, - val routerId: UInt, - val nextHop: UInt, - val pathCost: UInt, - val LQIIn: UInt, - val LQIOut: UInt, - val age: UInt, - val allocated: Boolean, - val linkEstablished: Boolean) { - override fun toString(): String = buildString { +class ThreadNetworkDiagnosticsClusterRouteTableStruct( + val extAddress: ULong, + val rloc16: UInt, + val routerId: UInt, + val nextHop: UInt, + val pathCost: UInt, + val LQIIn: UInt, + val LQIOut: UInt, + val age: UInt, + val allocated: Boolean, + val linkEstablished: Boolean +) { + override fun toString(): String = buildString { append("ThreadNetworkDiagnosticsClusterRouteTableStruct {\n") append("\textAddress : $extAddress\n") append("\trloc16 : $rloc16\n") @@ -81,7 +78,10 @@ class ThreadNetworkDiagnosticsClusterRouteTableStruct ( private const val TAG_ALLOCATED = 8 private const val TAG_LINK_ESTABLISHED = 9 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ThreadNetworkDiagnosticsClusterRouteTableStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): ThreadNetworkDiagnosticsClusterRouteTableStruct { tlvReader.enterStructure(tlvTag) val extAddress = tlvReader.getULong(ContextSpecificTag(TAG_EXT_ADDRESS)) val rloc16 = tlvReader.getUInt(ContextSpecificTag(TAG_RLOC16)) @@ -93,10 +93,21 @@ class ThreadNetworkDiagnosticsClusterRouteTableStruct ( val age = tlvReader.getUInt(ContextSpecificTag(TAG_AGE)) val allocated = tlvReader.getBoolean(ContextSpecificTag(TAG_ALLOCATED)) val linkEstablished = tlvReader.getBoolean(ContextSpecificTag(TAG_LINK_ESTABLISHED)) - + tlvReader.exitContainer() - return ThreadNetworkDiagnosticsClusterRouteTableStruct(extAddress, rloc16, routerId, nextHop, pathCost, LQIIn, LQIOut, age, allocated, linkEstablished) + return ThreadNetworkDiagnosticsClusterRouteTableStruct( + extAddress, + rloc16, + routerId, + nextHop, + pathCost, + LQIIn, + LQIOut, + age, + allocated, + linkEstablished + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterSecurityPolicy.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterSecurityPolicy.kt index 44eec2ff64ab26..c0d8b857424511 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterSecurityPolicy.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterSecurityPolicy.kt @@ -17,19 +17,13 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ThreadNetworkDiagnosticsClusterSecurityPolicy ( - val rotationTime: UInt, - val flags: UInt) { - override fun toString(): String = buildString { +class ThreadNetworkDiagnosticsClusterSecurityPolicy(val rotationTime: UInt, val flags: UInt) { + override fun toString(): String = buildString { append("ThreadNetworkDiagnosticsClusterSecurityPolicy {\n") append("\trotationTime : $rotationTime\n") append("\tflags : $flags\n") @@ -49,11 +43,11 @@ class ThreadNetworkDiagnosticsClusterSecurityPolicy ( private const val TAG_ROTATION_TIME = 0 private const val TAG_FLAGS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ThreadNetworkDiagnosticsClusterSecurityPolicy { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ThreadNetworkDiagnosticsClusterSecurityPolicy { tlvReader.enterStructure(tlvTag) val rotationTime = tlvReader.getUInt(ContextSpecificTag(TAG_ROTATION_TIME)) val flags = tlvReader.getUInt(ContextSpecificTag(TAG_FLAGS)) - + tlvReader.exitContainer() return ThreadNetworkDiagnosticsClusterSecurityPolicy(rotationTime, flags) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterDSTOffsetStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterDSTOffsetStruct.kt index c960f8a3d1e069..6df9767939dcef 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterDSTOffsetStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterDSTOffsetStruct.kt @@ -17,20 +17,17 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class TimeSynchronizationClusterDSTOffsetStruct ( - val offset: Long, - val validStarting: ULong, - val validUntil: ULong?) { - override fun toString(): String = buildString { +class TimeSynchronizationClusterDSTOffsetStruct( + val offset: Long, + val validStarting: ULong, + val validUntil: ULong? +) { + override fun toString(): String = buildString { append("TimeSynchronizationClusterDSTOffsetStruct {\n") append("\toffset : $offset\n") append("\tvalidStarting : $validStarting\n") @@ -44,10 +41,10 @@ class TimeSynchronizationClusterDSTOffsetStruct ( put(ContextSpecificTag(TAG_OFFSET), offset) put(ContextSpecificTag(TAG_VALID_STARTING), validStarting) if (validUntil != null) { - put(ContextSpecificTag(TAG_VALID_UNTIL), validUntil) - } else { - putNull(ContextSpecificTag(TAG_VALID_UNTIL)) - } + put(ContextSpecificTag(TAG_VALID_UNTIL), validUntil) + } else { + putNull(ContextSpecificTag(TAG_VALID_UNTIL)) + } endStructure() } } @@ -57,17 +54,18 @@ class TimeSynchronizationClusterDSTOffsetStruct ( private const val TAG_VALID_STARTING = 1 private const val TAG_VALID_UNTIL = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : TimeSynchronizationClusterDSTOffsetStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): TimeSynchronizationClusterDSTOffsetStruct { tlvReader.enterStructure(tlvTag) val offset = tlvReader.getLong(ContextSpecificTag(TAG_OFFSET)) val validStarting = tlvReader.getULong(ContextSpecificTag(TAG_VALID_STARTING)) - val validUntil = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_VALID_UNTIL)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_VALID_UNTIL)) - null - } - + val validUntil = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_VALID_UNTIL)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_VALID_UNTIL)) + null + } + tlvReader.exitContainer() return TimeSynchronizationClusterDSTOffsetStruct(offset, validStarting, validUntil) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct.kt index 956908c9cd381d..cca59a20972c7b 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct.kt @@ -17,19 +17,16 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct ( - val nodeID: ULong, - val endpoint: UInt) { - override fun toString(): String = buildString { +class TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct( + val nodeID: ULong, + val endpoint: UInt +) { + override fun toString(): String = buildString { append("TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct {\n") append("\tnodeID : $nodeID\n") append("\tendpoint : $endpoint\n") @@ -49,11 +46,14 @@ class TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct ( private const val TAG_NODE_I_D = 0 private const val TAG_ENDPOINT = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct { tlvReader.enterStructure(tlvTag) val nodeID = tlvReader.getULong(ContextSpecificTag(TAG_NODE_I_D)) val endpoint = tlvReader.getUInt(ContextSpecificTag(TAG_ENDPOINT)) - + tlvReader.exitContainer() return TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct(nodeID, endpoint) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterTimeZoneStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterTimeZoneStruct.kt index d972f05dbd528a..0d870bb1aa4b11 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterTimeZoneStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterTimeZoneStruct.kt @@ -17,20 +17,18 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class TimeSynchronizationClusterTimeZoneStruct ( - val offset: Long, - val validAt: ULong, - val name: Optional) { - override fun toString(): String = buildString { +class TimeSynchronizationClusterTimeZoneStruct( + val offset: Long, + val validAt: ULong, + val name: Optional +) { + override fun toString(): String = buildString { append("TimeSynchronizationClusterTimeZoneStruct {\n") append("\toffset : $offset\n") append("\tvalidAt : $validAt\n") @@ -44,9 +42,9 @@ class TimeSynchronizationClusterTimeZoneStruct ( put(ContextSpecificTag(TAG_OFFSET), offset) put(ContextSpecificTag(TAG_VALID_AT), validAt) if (name.isPresent) { - val optname = name.get() - put(ContextSpecificTag(TAG_NAME), optname) - } + val optname = name.get() + put(ContextSpecificTag(TAG_NAME), optname) + } endStructure() } } @@ -56,16 +54,17 @@ class TimeSynchronizationClusterTimeZoneStruct ( private const val TAG_VALID_AT = 1 private const val TAG_NAME = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : TimeSynchronizationClusterTimeZoneStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): TimeSynchronizationClusterTimeZoneStruct { tlvReader.enterStructure(tlvTag) val offset = tlvReader.getLong(ContextSpecificTag(TAG_OFFSET)) val validAt = tlvReader.getULong(ContextSpecificTag(TAG_VALID_AT)) - val name = if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) - } else { - Optional.empty() - } - + val name = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) + } else { + Optional.empty() + } + tlvReader.exitContainer() return TimeSynchronizationClusterTimeZoneStruct(offset, validAt, name) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterTrustedTimeSourceStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterTrustedTimeSourceStruct.kt index 16685608686cb7..db6786d49ee802 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterTrustedTimeSourceStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterTrustedTimeSourceStruct.kt @@ -17,20 +17,17 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class TimeSynchronizationClusterTrustedTimeSourceStruct ( - val fabricIndex: UInt, - val nodeID: ULong, - val endpoint: UInt) { - override fun toString(): String = buildString { +class TimeSynchronizationClusterTrustedTimeSourceStruct( + val fabricIndex: UInt, + val nodeID: ULong, + val endpoint: UInt +) { + override fun toString(): String = buildString { append("TimeSynchronizationClusterTrustedTimeSourceStruct {\n") append("\tfabricIndex : $fabricIndex\n") append("\tnodeID : $nodeID\n") @@ -53,12 +50,15 @@ class TimeSynchronizationClusterTrustedTimeSourceStruct ( private const val TAG_NODE_I_D = 1 private const val TAG_ENDPOINT = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : TimeSynchronizationClusterTrustedTimeSourceStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): TimeSynchronizationClusterTrustedTimeSourceStruct { tlvReader.enterStructure(tlvTag) val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) val nodeID = tlvReader.getULong(ContextSpecificTag(TAG_NODE_I_D)) val endpoint = tlvReader.getUInt(ContextSpecificTag(TAG_ENDPOINT)) - + tlvReader.exitContainer() return TimeSynchronizationClusterTrustedTimeSourceStruct(fabricIndex, nodeID, endpoint) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterDoubleNestedStructList.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterDoubleNestedStructList.kt index 4ae6ee1b7692ff..46ebbe20eb1528 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterDoubleNestedStructList.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterDoubleNestedStructList.kt @@ -20,15 +20,11 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class UnitTestingClusterDoubleNestedStructList ( - val a: List) { - override fun toString(): String = buildString { +class UnitTestingClusterDoubleNestedStructList(val a: List) { + override fun toString(): String = buildString { append("UnitTestingClusterDoubleNestedStructList {\n") append("\ta : $a\n") append("}\n") @@ -49,16 +45,17 @@ class UnitTestingClusterDoubleNestedStructList ( companion object { private const val TAG_A = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : UnitTestingClusterDoubleNestedStructList { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UnitTestingClusterDoubleNestedStructList { tlvReader.enterStructure(tlvTag) - val a = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_A)) - while(!tlvReader.isEndOfContainer()) { - add(UnitTestingClusterNestedStructList.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val a = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_A)) + while (!tlvReader.isEndOfContainer()) { + add(UnitTestingClusterNestedStructList.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return UnitTestingClusterDoubleNestedStructList(a) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterNestedStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterNestedStruct.kt index 0a3799929a49c6..cd2c6a5d251fe9 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterNestedStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterNestedStruct.kt @@ -17,20 +17,17 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class UnitTestingClusterNestedStruct ( - val a: UInt, - val b: Boolean, - val c: UnitTestingClusterSimpleStruct) { - override fun toString(): String = buildString { +class UnitTestingClusterNestedStruct( + val a: UInt, + val b: Boolean, + val c: UnitTestingClusterSimpleStruct +) { + override fun toString(): String = buildString { append("UnitTestingClusterNestedStruct {\n") append("\ta : $a\n") append("\tb : $b\n") @@ -53,12 +50,12 @@ class UnitTestingClusterNestedStruct ( private const val TAG_B = 1 private const val TAG_C = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : UnitTestingClusterNestedStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UnitTestingClusterNestedStruct { tlvReader.enterStructure(tlvTag) val a = tlvReader.getUInt(ContextSpecificTag(TAG_A)) val b = tlvReader.getBoolean(ContextSpecificTag(TAG_B)) val c = UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_C), tlvReader) - + tlvReader.exitContainer() return UnitTestingClusterNestedStruct(a, b, c) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterNestedStructList.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterNestedStructList.kt index 425b1753d17039..9b32b5343204c5 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterNestedStructList.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterNestedStructList.kt @@ -20,21 +20,19 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class UnitTestingClusterNestedStructList ( - val a: UInt, - val b: Boolean, - val c: UnitTestingClusterSimpleStruct, - val d: List, - val e: List, - val f: List, - val g: List) { - override fun toString(): String = buildString { +class UnitTestingClusterNestedStructList( + val a: UInt, + val b: Boolean, + val c: UnitTestingClusterSimpleStruct, + val d: List, + val e: List, + val f: List, + val g: List +) { + override fun toString(): String = buildString { append("UnitTestingClusterNestedStructList {\n") append("\ta : $a\n") append("\tb : $b\n") @@ -85,40 +83,44 @@ class UnitTestingClusterNestedStructList ( private const val TAG_F = 5 private const val TAG_G = 6 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : UnitTestingClusterNestedStructList { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UnitTestingClusterNestedStructList { tlvReader.enterStructure(tlvTag) val a = tlvReader.getUInt(ContextSpecificTag(TAG_A)) val b = tlvReader.getBoolean(ContextSpecificTag(TAG_B)) val c = UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_C), tlvReader) - val d = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_D)) - while(!tlvReader.isEndOfContainer()) { - add(UnitTestingClusterSimpleStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - val e = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_E)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getULong(AnonymousTag)) - } - tlvReader.exitContainer() - } - val f = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_F)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getByteArray(AnonymousTag)) - } - tlvReader.exitContainer() - } - val g = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_G)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val d = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_D)) + while (!tlvReader.isEndOfContainer()) { + add(UnitTestingClusterSimpleStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + val e = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_E)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getULong(AnonymousTag)) + } + tlvReader.exitContainer() + } + val f = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_F)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getByteArray(AnonymousTag)) + } + tlvReader.exitContainer() + } + val g = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_G)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return UnitTestingClusterNestedStructList(a, b, c, d, e, f, g) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterNullablesAndOptionalsStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterNullablesAndOptionalsStruct.kt index 4758e679ca22cb..e8f12057027054 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterNullablesAndOptionalsStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterNullablesAndOptionalsStruct.kt @@ -17,29 +17,28 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import java.util.Optional import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class UnitTestingClusterNullablesAndOptionalsStruct ( - val nullableInt: UInt?, - val optionalInt: Optional, - val nullableOptionalInt: Optional?, - val nullableString: String?, - val optionalString: Optional, - val nullableOptionalString: Optional?, - val nullableStruct: UnitTestingClusterSimpleStruct?, - val optionalStruct: Optional, - val nullableOptionalStruct: Optional?, - val nullableList: List?, - val optionalList: Optional>, - val nullableOptionalList: Optional>?) { - override fun toString(): String = buildString { +class UnitTestingClusterNullablesAndOptionalsStruct( + val nullableInt: UInt?, + val optionalInt: Optional, + val nullableOptionalInt: Optional?, + val nullableString: String?, + val optionalString: Optional, + val nullableOptionalString: Optional?, + val nullableStruct: UnitTestingClusterSimpleStruct?, + val optionalStruct: Optional, + val nullableOptionalStruct: Optional?, + val nullableList: List?, + val optionalList: Optional>, + val nullableOptionalList: Optional>? +) { + override fun toString(): String = buildString { append("UnitTestingClusterNullablesAndOptionalsStruct {\n") append("\tnullableInt : $nullableInt\n") append("\toptionalInt : $optionalInt\n") @@ -60,85 +59,85 @@ class UnitTestingClusterNullablesAndOptionalsStruct ( tlvWriter.apply { startStructure(tlvTag) if (nullableInt != null) { - put(ContextSpecificTag(TAG_NULLABLE_INT), nullableInt) - } else { - putNull(ContextSpecificTag(TAG_NULLABLE_INT)) - } + put(ContextSpecificTag(TAG_NULLABLE_INT), nullableInt) + } else { + putNull(ContextSpecificTag(TAG_NULLABLE_INT)) + } if (optionalInt.isPresent) { - val optoptionalInt = optionalInt.get() - put(ContextSpecificTag(TAG_OPTIONAL_INT), optoptionalInt) - } + val optoptionalInt = optionalInt.get() + put(ContextSpecificTag(TAG_OPTIONAL_INT), optoptionalInt) + } if (nullableOptionalInt != null) { - if (nullableOptionalInt.isPresent) { - val optnullableOptionalInt = nullableOptionalInt.get() - put(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT), optnullableOptionalInt) - } - } else { - putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT)) - } + if (nullableOptionalInt.isPresent) { + val optnullableOptionalInt = nullableOptionalInt.get() + put(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT), optnullableOptionalInt) + } + } else { + putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT)) + } if (nullableString != null) { - put(ContextSpecificTag(TAG_NULLABLE_STRING), nullableString) - } else { - putNull(ContextSpecificTag(TAG_NULLABLE_STRING)) - } + put(ContextSpecificTag(TAG_NULLABLE_STRING), nullableString) + } else { + putNull(ContextSpecificTag(TAG_NULLABLE_STRING)) + } if (optionalString.isPresent) { - val optoptionalString = optionalString.get() - put(ContextSpecificTag(TAG_OPTIONAL_STRING), optoptionalString) - } + val optoptionalString = optionalString.get() + put(ContextSpecificTag(TAG_OPTIONAL_STRING), optoptionalString) + } if (nullableOptionalString != null) { - if (nullableOptionalString.isPresent) { - val optnullableOptionalString = nullableOptionalString.get() - put(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING), optnullableOptionalString) - } - } else { - putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING)) - } + if (nullableOptionalString.isPresent) { + val optnullableOptionalString = nullableOptionalString.get() + put(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING), optnullableOptionalString) + } + } else { + putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING)) + } if (nullableStruct != null) { - nullableStruct.toTlv(ContextSpecificTag(TAG_NULLABLE_STRUCT), this) - } else { - putNull(ContextSpecificTag(TAG_NULLABLE_STRUCT)) - } + nullableStruct.toTlv(ContextSpecificTag(TAG_NULLABLE_STRUCT), this) + } else { + putNull(ContextSpecificTag(TAG_NULLABLE_STRUCT)) + } if (optionalStruct.isPresent) { - val optoptionalStruct = optionalStruct.get() - optoptionalStruct.toTlv(ContextSpecificTag(TAG_OPTIONAL_STRUCT), this) - } + val optoptionalStruct = optionalStruct.get() + optoptionalStruct.toTlv(ContextSpecificTag(TAG_OPTIONAL_STRUCT), this) + } if (nullableOptionalStruct != null) { - if (nullableOptionalStruct.isPresent) { - val optnullableOptionalStruct = nullableOptionalStruct.get() - optnullableOptionalStruct.toTlv(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT), this) - } - } else { - putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT)) - } + if (nullableOptionalStruct.isPresent) { + val optnullableOptionalStruct = nullableOptionalStruct.get() + optnullableOptionalStruct.toTlv(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT), this) + } + } else { + putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT)) + } if (nullableList != null) { - startArray(ContextSpecificTag(TAG_NULLABLE_LIST)) - for (item in nullableList.iterator()) { - put(AnonymousTag, item) + startArray(ContextSpecificTag(TAG_NULLABLE_LIST)) + for (item in nullableList.iterator()) { + put(AnonymousTag, item) + } + endArray() + } else { + putNull(ContextSpecificTag(TAG_NULLABLE_LIST)) } - endArray() - } else { - putNull(ContextSpecificTag(TAG_NULLABLE_LIST)) - } if (optionalList.isPresent) { - val optoptionalList = optionalList.get() - startArray(ContextSpecificTag(TAG_OPTIONAL_LIST)) - for (item in optoptionalList.iterator()) { - put(AnonymousTag, item) + val optoptionalList = optionalList.get() + startArray(ContextSpecificTag(TAG_OPTIONAL_LIST)) + for (item in optoptionalList.iterator()) { + put(AnonymousTag, item) + } + endArray() } - endArray() - } if (nullableOptionalList != null) { - if (nullableOptionalList.isPresent) { - val optnullableOptionalList = nullableOptionalList.get() - startArray(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST)) - for (item in optnullableOptionalList.iterator()) { - put(AnonymousTag, item) + if (nullableOptionalList.isPresent) { + val optnullableOptionalList = nullableOptionalList.get() + startArray(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST)) + for (item in optnullableOptionalList.iterator()) { + put(AnonymousTag, item) + } + endArray() + } + } else { + putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST)) } - endArray() - } - } else { - putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST)) - } endStructure() } } @@ -157,114 +156,153 @@ class UnitTestingClusterNullablesAndOptionalsStruct ( private const val TAG_OPTIONAL_LIST = 10 private const val TAG_NULLABLE_OPTIONAL_LIST = 11 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : UnitTestingClusterNullablesAndOptionalsStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UnitTestingClusterNullablesAndOptionalsStruct { tlvReader.enterStructure(tlvTag) - val nullableInt = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_NULLABLE_INT)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_INT)) - null - } - val optionalInt = if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_INT))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_OPTIONAL_INT))) - } else { - Optional.empty() - } - val nullableOptionalInt = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT)) - null - } - val nullableString = if (!tlvReader.isNull()) { - tlvReader.getString(ContextSpecificTag(TAG_NULLABLE_STRING)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_STRING)) - null - } - val optionalString = if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_STRING))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_OPTIONAL_STRING))) - } else { - Optional.empty() - } - val nullableOptionalString = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING)) - null - } - val nullableStruct = if (!tlvReader.isNull()) { - UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_NULLABLE_STRUCT), tlvReader) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_STRUCT)) - null - } - val optionalStruct = if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_STRUCT))) { - Optional.of(UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_OPTIONAL_STRUCT), tlvReader)) - } else { - Optional.empty() - } - val nullableOptionalStruct = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT))) { - Optional.of(UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT), tlvReader)) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT)) - null - } - val nullableList = if (!tlvReader.isNull()) { - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_NULLABLE_LIST)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_LIST)) - null - } - val optionalList = if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_LIST))) { - Optional.of(buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_OPTIONAL_LIST)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - }) - } else { - Optional.empty() - } - val nullableOptionalList = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST))) { - Optional.of(buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - }) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST)) - null - } - + val nullableInt = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_NULLABLE_INT)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_INT)) + null + } + val optionalInt = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_INT))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_OPTIONAL_INT))) + } else { + Optional.empty() + } + val nullableOptionalInt = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT)) + null + } + val nullableString = + if (!tlvReader.isNull()) { + tlvReader.getString(ContextSpecificTag(TAG_NULLABLE_STRING)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_STRING)) + null + } + val optionalString = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_STRING))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_OPTIONAL_STRING))) + } else { + Optional.empty() + } + val nullableOptionalString = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING)) + null + } + val nullableStruct = + if (!tlvReader.isNull()) { + UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_NULLABLE_STRUCT), tlvReader) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_STRUCT)) + null + } + val optionalStruct = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_STRUCT))) { + Optional.of( + UnitTestingClusterSimpleStruct.fromTlv( + ContextSpecificTag(TAG_OPTIONAL_STRUCT), + tlvReader + ) + ) + } else { + Optional.empty() + } + val nullableOptionalStruct = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT))) { + Optional.of( + UnitTestingClusterSimpleStruct.fromTlv( + ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT), + tlvReader + ) + ) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT)) + null + } + val nullableList = + if (!tlvReader.isNull()) { + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_NULLABLE_LIST)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_LIST)) + null + } + val optionalList = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_LIST))) { + Optional.of( + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_OPTIONAL_LIST)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + ) + } else { + Optional.empty() + } + val nullableOptionalList = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST))) { + Optional.of( + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + ) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST)) + null + } + tlvReader.exitContainer() - return UnitTestingClusterNullablesAndOptionalsStruct(nullableInt, optionalInt, nullableOptionalInt, nullableString, optionalString, nullableOptionalString, nullableStruct, optionalStruct, nullableOptionalStruct, nullableList, optionalList, nullableOptionalList) + return UnitTestingClusterNullablesAndOptionalsStruct( + nullableInt, + optionalInt, + nullableOptionalInt, + nullableString, + optionalString, + nullableOptionalString, + nullableStruct, + optionalStruct, + nullableOptionalStruct, + nullableList, + optionalList, + nullableOptionalList + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterSimpleStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterSimpleStruct.kt index 3026a55dc4380c..217991a38b634a 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterSimpleStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterSimpleStruct.kt @@ -17,25 +17,22 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class UnitTestingClusterSimpleStruct ( - val a: UInt, - val b: Boolean, - val c: UInt, - val d: ByteArray, - val e: String, - val f: UInt, - val g: Float, - val h: Double) { - override fun toString(): String = buildString { +class UnitTestingClusterSimpleStruct( + val a: UInt, + val b: Boolean, + val c: UInt, + val d: ByteArray, + val e: String, + val f: UInt, + val g: Float, + val h: Double +) { + override fun toString(): String = buildString { append("UnitTestingClusterSimpleStruct {\n") append("\ta : $a\n") append("\tb : $b\n") @@ -73,7 +70,7 @@ class UnitTestingClusterSimpleStruct ( private const val TAG_G = 6 private const val TAG_H = 7 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : UnitTestingClusterSimpleStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UnitTestingClusterSimpleStruct { tlvReader.enterStructure(tlvTag) val a = tlvReader.getUInt(ContextSpecificTag(TAG_A)) val b = tlvReader.getBoolean(ContextSpecificTag(TAG_B)) @@ -83,7 +80,7 @@ class UnitTestingClusterSimpleStruct ( val f = tlvReader.getUInt(ContextSpecificTag(TAG_F)) val g = tlvReader.getFloat(ContextSpecificTag(TAG_G)) val h = tlvReader.getDouble(ContextSpecificTag(TAG_H)) - + tlvReader.exitContainer() return UnitTestingClusterSimpleStruct(a, b, c, d, e, f, g, h) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterTestFabricScoped.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterTestFabricScoped.kt index 22970640c5eb3c..36da8ea1549865 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterTestFabricScoped.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterTestFabricScoped.kt @@ -17,25 +17,24 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import java.util.Optional import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class UnitTestingClusterTestFabricScoped ( - val fabricSensitiveInt8u: UInt, - val optionalFabricSensitiveInt8u: Optional, - val nullableFabricSensitiveInt8u: UInt?, - val nullableOptionalFabricSensitiveInt8u: Optional?, - val fabricSensitiveCharString: String, - val fabricSensitiveStruct: UnitTestingClusterSimpleStruct, - val fabricSensitiveInt8uList: List, - val fabricIndex: UInt) { - override fun toString(): String = buildString { +class UnitTestingClusterTestFabricScoped( + val fabricSensitiveInt8u: UInt, + val optionalFabricSensitiveInt8u: Optional, + val nullableFabricSensitiveInt8u: UInt?, + val nullableOptionalFabricSensitiveInt8u: Optional?, + val fabricSensitiveCharString: String, + val fabricSensitiveStruct: UnitTestingClusterSimpleStruct, + val fabricSensitiveInt8uList: List, + val fabricIndex: UInt +) { + override fun toString(): String = buildString { append("UnitTestingClusterTestFabricScoped {\n") append("\tfabricSensitiveInt8u : $fabricSensitiveInt8u\n") append("\toptionalFabricSensitiveInt8u : $optionalFabricSensitiveInt8u\n") @@ -53,22 +52,28 @@ class UnitTestingClusterTestFabricScoped ( startStructure(tlvTag) put(ContextSpecificTag(TAG_FABRIC_SENSITIVE_INT8U), fabricSensitiveInt8u) if (optionalFabricSensitiveInt8u.isPresent) { - val optoptionalFabricSensitiveInt8u = optionalFabricSensitiveInt8u.get() - put(ContextSpecificTag(TAG_OPTIONAL_FABRIC_SENSITIVE_INT8U), optoptionalFabricSensitiveInt8u) - } + val optoptionalFabricSensitiveInt8u = optionalFabricSensitiveInt8u.get() + put( + ContextSpecificTag(TAG_OPTIONAL_FABRIC_SENSITIVE_INT8U), + optoptionalFabricSensitiveInt8u + ) + } if (nullableFabricSensitiveInt8u != null) { - put(ContextSpecificTag(TAG_NULLABLE_FABRIC_SENSITIVE_INT8U), nullableFabricSensitiveInt8u) - } else { - putNull(ContextSpecificTag(TAG_NULLABLE_FABRIC_SENSITIVE_INT8U)) - } + put(ContextSpecificTag(TAG_NULLABLE_FABRIC_SENSITIVE_INT8U), nullableFabricSensitiveInt8u) + } else { + putNull(ContextSpecificTag(TAG_NULLABLE_FABRIC_SENSITIVE_INT8U)) + } if (nullableOptionalFabricSensitiveInt8u != null) { - if (nullableOptionalFabricSensitiveInt8u.isPresent) { - val optnullableOptionalFabricSensitiveInt8u = nullableOptionalFabricSensitiveInt8u.get() - put(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U), optnullableOptionalFabricSensitiveInt8u) - } - } else { - putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U)) - } + if (nullableOptionalFabricSensitiveInt8u.isPresent) { + val optnullableOptionalFabricSensitiveInt8u = nullableOptionalFabricSensitiveInt8u.get() + put( + ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U), + optnullableOptionalFabricSensitiveInt8u + ) + } + } else { + putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U)) + } put(ContextSpecificTag(TAG_FABRIC_SENSITIVE_CHAR_STRING), fabricSensitiveCharString) fabricSensitiveStruct.toTlv(ContextSpecificTag(TAG_FABRIC_SENSITIVE_STRUCT), this) startArray(ContextSpecificTag(TAG_FABRIC_SENSITIVE_INT8U_LIST)) @@ -91,44 +96,66 @@ class UnitTestingClusterTestFabricScoped ( private const val TAG_FABRIC_SENSITIVE_INT8U_LIST = 7 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : UnitTestingClusterTestFabricScoped { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UnitTestingClusterTestFabricScoped { tlvReader.enterStructure(tlvTag) val fabricSensitiveInt8u = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_SENSITIVE_INT8U)) - val optionalFabricSensitiveInt8u = if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_FABRIC_SENSITIVE_INT8U))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_OPTIONAL_FABRIC_SENSITIVE_INT8U))) - } else { - Optional.empty() - } - val nullableFabricSensitiveInt8u = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_NULLABLE_FABRIC_SENSITIVE_INT8U)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_FABRIC_SENSITIVE_INT8U)) - null - } - val nullableOptionalFabricSensitiveInt8u = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U)) - null - } - val fabricSensitiveCharString = tlvReader.getString(ContextSpecificTag(TAG_FABRIC_SENSITIVE_CHAR_STRING)) - val fabricSensitiveStruct = UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_FABRIC_SENSITIVE_STRUCT), tlvReader) - val fabricSensitiveInt8uList = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_FABRIC_SENSITIVE_INT8U_LIST)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } + val optionalFabricSensitiveInt8u = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_FABRIC_SENSITIVE_INT8U))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_OPTIONAL_FABRIC_SENSITIVE_INT8U))) + } else { + Optional.empty() + } + val nullableFabricSensitiveInt8u = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_NULLABLE_FABRIC_SENSITIVE_INT8U)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_FABRIC_SENSITIVE_INT8U)) + null + } + val nullableOptionalFabricSensitiveInt8u = + if (!tlvReader.isNull()) { + if ( + tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U)) + ) { + Optional.of( + tlvReader.getUInt(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U)) + ) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U)) + null + } + val fabricSensitiveCharString = + tlvReader.getString(ContextSpecificTag(TAG_FABRIC_SENSITIVE_CHAR_STRING)) + val fabricSensitiveStruct = + UnitTestingClusterSimpleStruct.fromTlv( + ContextSpecificTag(TAG_FABRIC_SENSITIVE_STRUCT), + tlvReader + ) + val fabricSensitiveInt8uList = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_FABRIC_SENSITIVE_INT8U_LIST)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() - return UnitTestingClusterTestFabricScoped(fabricSensitiveInt8u, optionalFabricSensitiveInt8u, nullableFabricSensitiveInt8u, nullableOptionalFabricSensitiveInt8u, fabricSensitiveCharString, fabricSensitiveStruct, fabricSensitiveInt8uList, fabricIndex) + return UnitTestingClusterTestFabricScoped( + fabricSensitiveInt8u, + optionalFabricSensitiveInt8u, + nullableFabricSensitiveInt8u, + nullableOptionalFabricSensitiveInt8u, + fabricSensitiveCharString, + fabricSensitiveStruct, + fabricSensitiveInt8uList, + fabricIndex + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterTestListStructOctet.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterTestListStructOctet.kt index 1f823ba5cb92f9..91afedb93a404f 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterTestListStructOctet.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterTestListStructOctet.kt @@ -17,19 +17,13 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class UnitTestingClusterTestListStructOctet ( - val member1: ULong, - val member2: ByteArray) { - override fun toString(): String = buildString { +class UnitTestingClusterTestListStructOctet(val member1: ULong, val member2: ByteArray) { + override fun toString(): String = buildString { append("UnitTestingClusterTestListStructOctet {\n") append("\tmember1 : $member1\n") append("\tmember2 : $member2\n") @@ -49,11 +43,11 @@ class UnitTestingClusterTestListStructOctet ( private const val TAG_MEMBER1 = 0 private const val TAG_MEMBER2 = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : UnitTestingClusterTestListStructOctet { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UnitTestingClusterTestListStructOctet { tlvReader.enterStructure(tlvTag) val member1 = tlvReader.getULong(ContextSpecificTag(TAG_MEMBER1)) val member2 = tlvReader.getByteArray(ContextSpecificTag(TAG_MEMBER2)) - + tlvReader.exitContainer() return UnitTestingClusterTestListStructOctet(member1, member2) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UserLabelClusterLabelStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UserLabelClusterLabelStruct.kt index 02509a81a9dbbc..1cfbb532f5abaf 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UserLabelClusterLabelStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UserLabelClusterLabelStruct.kt @@ -17,19 +17,13 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class UserLabelClusterLabelStruct ( - val label: String, - val value: String) { - override fun toString(): String = buildString { +class UserLabelClusterLabelStruct(val label: String, val value: String) { + override fun toString(): String = buildString { append("UserLabelClusterLabelStruct {\n") append("\tlabel : $label\n") append("\tvalue : $value\n") @@ -49,11 +43,11 @@ class UserLabelClusterLabelStruct ( private const val TAG_LABEL = 0 private const val TAG_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : UserLabelClusterLabelStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UserLabelClusterLabelStruct { tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val value = tlvReader.getString(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return UserLabelClusterLabelStruct(label, value) 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 index d1450835183924..8e297aed240548 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AccessControlCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AccessControlCluster.kt @@ -20,44 +20,27 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class AccessControlCluster(private val endpointId: UShort) { - class AclAttribute( - val value: List - ) + class AclAttribute(val value: List) - class ExtensionAttribute( - val value: List? - ) + class ExtensionAttribute(val value: List?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readAclAttribute(): AclAttribute { // Implementation needs to be added here } - suspend fun readAclAttributeWithFabricFilter( - isFabricFiltered: Boolean - ): AclAttribute { + suspend fun readAclAttributeWithFabricFilter(isFabricFiltered: Boolean): AclAttribute { // Implementation needs to be added here } - - suspend fun writeAclAttribute( - value: List - ) { + suspend fun writeAclAttribute(value: List) { // Implementation needs to be added here } @@ -68,10 +51,7 @@ class AccessControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeAclAttribute( - minInterval: Int, - maxInterval: Int - ): AclAttribute { + suspend fun subscribeAclAttribute(minInterval: Int, maxInterval: Int): AclAttribute { // Implementation needs to be added here } @@ -85,7 +65,6 @@ class AccessControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeExtensionAttribute( value: List ) { @@ -99,10 +78,7 @@ class AccessControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeExtensionAttribute( - minInterval: Int, - maxInterval: Int - ): ExtensionAttribute { + suspend fun subscribeExtensionAttribute(minInterval: Int, maxInterval: Int): ExtensionAttribute { // Implementation needs to be added here } @@ -165,10 +141,7 @@ class AccessControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -187,10 +160,7 @@ class AccessControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -198,10 +168,7 @@ class AccessControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 3c7e975c8a5c9c..b9f28491eaad54 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AccountLoginCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AccountLoginCluster.kt @@ -20,27 +20,20 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class AccountLoginCluster(private val endpointId: UShort) { - class GetSetupPINResponse( - val setupPIN: String - ) + class GetSetupPINResponse(val setupPIN: String) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun getSetupPIN(tempAccountIdentifier: String, timedInvokeTimeoutMs: Int? = null): GetSetupPINResponse { + suspend fun getSetupPIN( + tempAccountIdentifier: String, + timedInvokeTimeoutMs: Int? = null + ): GetSetupPINResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -48,7 +41,11 @@ class AccountLoginCluster(private val endpointId: UShort) { } } - suspend fun login(tempAccountIdentifier: String, setupPIN: String, timedInvokeTimeoutMs: Int? = null) { + suspend fun login( + tempAccountIdentifier: String, + setupPIN: String, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -56,7 +53,7 @@ class AccountLoginCluster(private val endpointId: UShort) { } } - suspend fun logout(timedInvokeTimeoutMs: Int? = null) { + suspend fun logout(timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -90,10 +87,7 @@ class AccountLoginCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -112,10 +106,7 @@ class AccountLoginCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -123,10 +114,7 @@ class AccountLoginCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 316b6e6a381e61..8dd73589f6bd1c 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ActionsCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ActionsCluster.kt @@ -20,31 +20,19 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class ActionsCluster(private val endpointId: UShort) { - class ActionListAttribute( - val value: List - ) + class ActionListAttribute(val value: List) - class EndpointListsAttribute( - val value: List - ) + class EndpointListsAttribute(val value: List) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun instantAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int? = null) { + suspend fun instantAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -52,7 +40,12 @@ class ActionsCluster(private val endpointId: UShort) { } } - suspend fun instantActionWithTransition(actionID: UShort, invokeID: UInt?, transitionTime: UShort, timedInvokeTimeoutMs: Int? = null) { + suspend fun instantActionWithTransition( + actionID: UShort, + invokeID: UInt?, + transitionTime: UShort, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -60,7 +53,7 @@ class ActionsCluster(private val endpointId: UShort) { } } - suspend fun startAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int? = null) { + suspend fun startAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -68,7 +61,12 @@ class ActionsCluster(private val endpointId: UShort) { } } - suspend fun startActionWithDuration(actionID: UShort, invokeID: UInt?, duration: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun startActionWithDuration( + actionID: UShort, + invokeID: UInt?, + duration: UInt, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -76,7 +74,7 @@ class ActionsCluster(private val endpointId: UShort) { } } - suspend fun stopAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int? = null) { + suspend fun stopAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -84,7 +82,7 @@ class ActionsCluster(private val endpointId: UShort) { } } - suspend fun pauseAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int? = null) { + suspend fun pauseAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -92,7 +90,12 @@ class ActionsCluster(private val endpointId: UShort) { } } - suspend fun pauseActionWithDuration(actionID: UShort, invokeID: UInt?, duration: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun pauseActionWithDuration( + actionID: UShort, + invokeID: UInt?, + duration: UInt, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -100,7 +103,7 @@ class ActionsCluster(private val endpointId: UShort) { } } - suspend fun resumeAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int? = null) { + suspend fun resumeAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -108,7 +111,7 @@ class ActionsCluster(private val endpointId: UShort) { } } - suspend fun enableAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int? = null) { + suspend fun enableAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -116,7 +119,12 @@ class ActionsCluster(private val endpointId: UShort) { } } - suspend fun enableActionWithDuration(actionID: UShort, invokeID: UInt?, duration: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun enableActionWithDuration( + actionID: UShort, + invokeID: UInt?, + duration: UInt, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -124,7 +132,7 @@ class ActionsCluster(private val endpointId: UShort) { } } - suspend fun disableAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int? = null) { + suspend fun disableAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -132,7 +140,12 @@ class ActionsCluster(private val endpointId: UShort) { } } - suspend fun disableActionWithDuration(actionID: UShort, invokeID: UInt?, duration: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun disableActionWithDuration( + actionID: UShort, + invokeID: UInt?, + duration: UInt, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -166,10 +179,7 @@ class ActionsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeSetupURLAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeSetupURLAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -199,10 +209,7 @@ class ActionsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -221,10 +228,7 @@ class ActionsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -232,10 +236,7 @@ class ActionsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index a136b6eb254873..dde33ff51f4e9c 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ActivatedCarbonFilterMonitoringCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ActivatedCarbonFilterMonitoringCluster.kt @@ -20,31 +20,21 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class ActivatedCarbonFilterMonitoringCluster(private val endpointId: UShort) { - class LastChangedTimeAttribute( - val value: UInt? - ) + class LastChangedTimeAttribute(val value: UInt?) class ReplacementProductListAttribute( val value: List? ) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun resetCondition(timedInvokeTimeoutMs: Int? = null) { + suspend fun resetCondition(timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -56,10 +46,7 @@ class ActivatedCarbonFilterMonitoringCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeConditionAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeConditionAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -67,10 +54,7 @@ class ActivatedCarbonFilterMonitoringCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeDegradationDirectionAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeDegradationDirectionAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -78,10 +62,7 @@ class ActivatedCarbonFilterMonitoringCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeChangeIndicationAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeChangeIndicationAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -89,10 +70,7 @@ class ActivatedCarbonFilterMonitoringCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeInPlaceIndicatorAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeInPlaceIndicatorAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -100,16 +78,11 @@ class ActivatedCarbonFilterMonitoringCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeLastChangedTimeAttribute( - value: UInt - ) { + suspend fun writeLastChangedTimeAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeLastChangedTimeAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeLastChangedTimeAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -157,10 +130,7 @@ class ActivatedCarbonFilterMonitoringCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -179,10 +149,7 @@ class ActivatedCarbonFilterMonitoringCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -190,10 +157,7 @@ class ActivatedCarbonFilterMonitoringCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index a84f5fe5fcb736..37e3560cdd52b6 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AdministratorCommissioningCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AdministratorCommissioningCluster.kt @@ -20,31 +20,26 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class AdministratorCommissioningCluster(private val endpointId: UShort) { - class AdminFabricIndexAttribute( - val value: UByte? - ) + class AdminFabricIndexAttribute(val value: UByte?) - class AdminVendorIdAttribute( - val value: UShort? - ) + class AdminVendorIdAttribute(val value: UShort?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun openCommissioningWindow(commissioningTimeout: UShort, PAKEPasscodeVerifier: ByteArray, discriminator: UShort, iterations: UInt, salt: ByteArray, timedInvokeTimeoutMs: Int? = null) { + suspend fun openCommissioningWindow( + commissioningTimeout: UShort, + PAKEPasscodeVerifier: ByteArray, + discriminator: UShort, + iterations: UInt, + salt: ByteArray, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -52,7 +47,10 @@ class AdministratorCommissioningCluster(private val endpointId: UShort) { } } - suspend fun openBasicCommissioningWindow(commissioningTimeout: UShort, timedInvokeTimeoutMs: Int? = null) { + suspend fun openBasicCommissioningWindow( + commissioningTimeout: UShort, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -60,7 +58,7 @@ class AdministratorCommissioningCluster(private val endpointId: UShort) { } } - suspend fun revokeCommissioning(timedInvokeTimeoutMs: Int? = null) { + suspend fun revokeCommissioning(timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -72,10 +70,7 @@ class AdministratorCommissioningCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeWindowStatusAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeWindowStatusAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -127,10 +122,7 @@ class AdministratorCommissioningCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -149,10 +141,7 @@ class AdministratorCommissioningCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -160,10 +149,7 @@ class AdministratorCommissioningCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 3fc46c62b9ede7..b4a823aa81c39e 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AirQualityCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AirQualityCluster.kt @@ -20,30 +20,19 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class AirQualityCluster(private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readAirQualityAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeAirQualityAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeAirQualityAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -73,10 +62,7 @@ class AirQualityCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -95,10 +81,7 @@ class AirQualityCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -106,10 +89,7 @@ class AirQualityCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 79ea162558fe88..6338a940258320 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ApplicationBasicCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ApplicationBasicCluster.kt @@ -20,38 +20,23 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class ApplicationBasicCluster(private val endpointId: UShort) { - class ApplicationAttribute( - val value: ApplicationBasicClusterApplicationStruct - ) + class ApplicationAttribute(val value: ApplicationBasicClusterApplicationStruct) - class AllowedVendorListAttribute( - val value: List - ) + class AllowedVendorListAttribute(val value: List) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readVendorNameAttribute(): CharString { // Implementation needs to be added here } - suspend fun subscribeVendorNameAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeVendorNameAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -59,10 +44,7 @@ class ApplicationBasicCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeVendorIDAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeVendorIDAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -70,10 +52,7 @@ class ApplicationBasicCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeApplicationNameAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeApplicationNameAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -81,10 +60,7 @@ class ApplicationBasicCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeProductIDAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeProductIDAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -103,10 +79,7 @@ class ApplicationBasicCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeStatusAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeStatusAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -114,10 +87,7 @@ class ApplicationBasicCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeApplicationVersionAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeApplicationVersionAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -158,10 +128,7 @@ class ApplicationBasicCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -180,10 +147,7 @@ class ApplicationBasicCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -191,10 +155,7 @@ class ApplicationBasicCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 4f50690f5aa914..ceec6c2afd73e7 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ApplicationLauncherCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ApplicationLauncherCluster.kt @@ -20,36 +20,25 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class ApplicationLauncherCluster(private val endpointId: UShort) { - class LauncherResponse( - val status: UInt, - val data: ByteArray? - ) + class LauncherResponse(val status: UInt, val data: ByteArray?) - class CatalogListAttribute( - val value: List? - ) + class CatalogListAttribute(val value: List?) - class CurrentAppAttribute( - val value: ApplicationLauncherClusterApplicationEPStruct? - ) + class CurrentAppAttribute(val value: ApplicationLauncherClusterApplicationEPStruct?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun launchApp(application: ApplicationLauncherClusterApplicationStruct?, data: ByteArray?, timedInvokeTimeoutMs: Int? = null): LauncherResponse { + suspend fun launchApp( + application: ApplicationLauncherClusterApplicationStruct?, + data: ByteArray?, + timedInvokeTimeoutMs: Int? = null + ): LauncherResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -57,7 +46,10 @@ class ApplicationLauncherCluster(private val endpointId: UShort) { } } - suspend fun stopApp(application: ApplicationLauncherClusterApplicationStruct?, timedInvokeTimeoutMs: Int? = null): LauncherResponse { + suspend fun stopApp( + application: ApplicationLauncherClusterApplicationStruct?, + timedInvokeTimeoutMs: Int? = null + ): LauncherResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -65,7 +57,10 @@ class ApplicationLauncherCluster(private val endpointId: UShort) { } } - suspend fun hideApp(application: ApplicationLauncherClusterApplicationStruct?, timedInvokeTimeoutMs: Int? = null): LauncherResponse { + suspend fun hideApp( + application: ApplicationLauncherClusterApplicationStruct?, + timedInvokeTimeoutMs: Int? = null + ): LauncherResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -121,10 +116,7 @@ class ApplicationLauncherCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -143,10 +135,7 @@ class ApplicationLauncherCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -154,10 +143,7 @@ class ApplicationLauncherCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 81d49b2e55bf8a..a62a04f93ae2d8 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AudioOutputCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AudioOutputCluster.kt @@ -20,27 +20,17 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class AudioOutputCluster(private val endpointId: UShort) { - class OutputListAttribute( - val value: List - ) + class OutputListAttribute(val value: List) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun selectOutput(index: UByte, timedInvokeTimeoutMs: Int? = null) { + suspend fun selectOutput(index: UByte, timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -48,7 +38,7 @@ class AudioOutputCluster(private val endpointId: UShort) { } } - suspend fun renameOutput(index: UByte, name: String, timedInvokeTimeoutMs: Int? = null) { + suspend fun renameOutput(index: UByte, name: String, timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -71,10 +61,7 @@ class AudioOutputCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeCurrentOutputAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeCurrentOutputAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -104,10 +91,7 @@ class AudioOutputCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -126,10 +110,7 @@ class AudioOutputCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -137,10 +118,7 @@ class AudioOutputCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 3e794537b0f624..de8a8cffb7a56b 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BallastConfigurationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BallastConfigurationCluster.kt @@ -20,50 +20,29 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class BallastConfigurationCluster(private val endpointId: UShort) { - class IntrinsicBallastFactorAttribute( - val value: UByte? - ) + class IntrinsicBallastFactorAttribute(val value: UByte?) - class BallastFactorAdjustmentAttribute( - val value: UByte? - ) + class BallastFactorAdjustmentAttribute(val value: UByte?) - class LampRatedHoursAttribute( - val value: UInt? - ) + class LampRatedHoursAttribute(val value: UInt?) - class LampBurnHoursAttribute( - val value: UInt? - ) + class LampBurnHoursAttribute(val value: UInt?) - class LampBurnHoursTripPointAttribute( - val value: UInt? - ) + class LampBurnHoursTripPointAttribute(val value: UInt?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readPhysicalMinLevelAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribePhysicalMinLevelAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribePhysicalMinLevelAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -71,10 +50,7 @@ class BallastConfigurationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribePhysicalMaxLevelAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribePhysicalMaxLevelAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -82,10 +58,7 @@ class BallastConfigurationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeBallastStatusAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeBallastStatusAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -93,23 +66,15 @@ class BallastConfigurationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeMinLevelAttribute( - value: UByte - ) { + suspend fun writeMinLevelAttribute(value: UByte) { // Implementation needs to be added here } - suspend fun writeMinLevelAttribute( - value: UByte, - timedWriteTimeoutMs: Int - ) { + suspend fun writeMinLevelAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeMinLevelAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMinLevelAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -117,23 +82,15 @@ class BallastConfigurationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeMaxLevelAttribute( - value: UByte - ) { + suspend fun writeMaxLevelAttribute(value: UByte) { // Implementation needs to be added here } - suspend fun writeMaxLevelAttribute( - value: UByte, - timedWriteTimeoutMs: Int - ) { + suspend fun writeMaxLevelAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeMaxLevelAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMaxLevelAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -141,16 +98,11 @@ class BallastConfigurationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeIntrinsicBallastFactorAttribute( - value: UByte - ) { + suspend fun writeIntrinsicBallastFactorAttribute(value: UByte) { // Implementation needs to be added here } - suspend fun writeIntrinsicBallastFactorAttribute( - value: UByte, - timedWriteTimeoutMs: Int - ) { + suspend fun writeIntrinsicBallastFactorAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -165,16 +117,11 @@ class BallastConfigurationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeBallastFactorAdjustmentAttribute( - value: UByte - ) { + suspend fun writeBallastFactorAdjustmentAttribute(value: UByte) { // Implementation needs to be added here } - suspend fun writeBallastFactorAdjustmentAttribute( - value: UByte, - timedWriteTimeoutMs: Int - ) { + suspend fun writeBallastFactorAdjustmentAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -189,10 +136,7 @@ class BallastConfigurationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeLampQuantityAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeLampQuantityAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -200,23 +144,15 @@ class BallastConfigurationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeLampTypeAttribute( - value: String - ) { + suspend fun writeLampTypeAttribute(value: String) { // Implementation needs to be added here } - suspend fun writeLampTypeAttribute( - value: String, - timedWriteTimeoutMs: Int - ) { + suspend fun writeLampTypeAttribute(value: String, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeLampTypeAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeLampTypeAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -224,23 +160,15 @@ class BallastConfigurationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeLampManufacturerAttribute( - value: String - ) { + suspend fun writeLampManufacturerAttribute(value: String) { // Implementation needs to be added here } - suspend fun writeLampManufacturerAttribute( - value: String, - timedWriteTimeoutMs: Int - ) { + suspend fun writeLampManufacturerAttribute(value: String, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeLampManufacturerAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeLampManufacturerAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -248,16 +176,11 @@ class BallastConfigurationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeLampRatedHoursAttribute( - value: UInt - ) { + suspend fun writeLampRatedHoursAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeLampRatedHoursAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeLampRatedHoursAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -272,16 +195,11 @@ class BallastConfigurationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeLampBurnHoursAttribute( - value: UInt - ) { + suspend fun writeLampBurnHoursAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeLampBurnHoursAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeLampBurnHoursAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -296,23 +214,15 @@ class BallastConfigurationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeLampAlarmModeAttribute( - value: UInt - ) { + suspend fun writeLampAlarmModeAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeLampAlarmModeAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeLampAlarmModeAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeLampAlarmModeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeLampAlarmModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -320,16 +230,11 @@ class BallastConfigurationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeLampBurnHoursTripPointAttribute( - value: UInt - ) { + suspend fun writeLampBurnHoursTripPointAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeLampBurnHoursTripPointAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeLampBurnHoursTripPointAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -366,10 +271,7 @@ class BallastConfigurationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -388,10 +290,7 @@ class BallastConfigurationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -399,10 +298,7 @@ class BallastConfigurationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index b2170048fa4d10..d6b21b6dcc2507 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BarrierControlCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BarrierControlCluster.kt @@ -20,23 +20,15 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class BarrierControlCluster(private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun barrierControlGoToPercent(percentOpen: UByte, timedInvokeTimeoutMs: Int? = null) { + suspend fun barrierControlGoToPercent(percentOpen: UByte, timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -44,7 +36,7 @@ class BarrierControlCluster(private val endpointId: UShort) { } } - suspend fun barrierControlStop(timedInvokeTimeoutMs: Int? = null) { + suspend fun barrierControlStop(timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -56,10 +48,7 @@ class BarrierControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeBarrierMovingStateAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeBarrierMovingStateAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -67,10 +56,7 @@ class BarrierControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeBarrierSafetyStatusAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeBarrierSafetyStatusAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -78,10 +64,7 @@ class BarrierControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeBarrierCapabilitiesAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeBarrierCapabilitiesAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -89,23 +72,15 @@ class BarrierControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeBarrierOpenEventsAttribute( - value: UShort - ) { + suspend fun writeBarrierOpenEventsAttribute(value: UShort) { // Implementation needs to be added here } - suspend fun writeBarrierOpenEventsAttribute( - value: UShort, - timedWriteTimeoutMs: Int - ) { + suspend fun writeBarrierOpenEventsAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeBarrierOpenEventsAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeBarrierOpenEventsAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -113,23 +88,15 @@ class BarrierControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeBarrierCloseEventsAttribute( - value: UShort - ) { + suspend fun writeBarrierCloseEventsAttribute(value: UShort) { // Implementation needs to be added here } - suspend fun writeBarrierCloseEventsAttribute( - value: UShort, - timedWriteTimeoutMs: Int - ) { + suspend fun writeBarrierCloseEventsAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeBarrierCloseEventsAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeBarrierCloseEventsAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -137,16 +104,11 @@ class BarrierControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeBarrierCommandOpenEventsAttribute( - value: UShort - ) { + suspend fun writeBarrierCommandOpenEventsAttribute(value: UShort) { // Implementation needs to be added here } - suspend fun writeBarrierCommandOpenEventsAttribute( - value: UShort, - timedWriteTimeoutMs: Int - ) { + suspend fun writeBarrierCommandOpenEventsAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -161,16 +123,11 @@ class BarrierControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeBarrierCommandCloseEventsAttribute( - value: UShort - ) { + suspend fun writeBarrierCommandCloseEventsAttribute(value: UShort) { // Implementation needs to be added here } - suspend fun writeBarrierCommandCloseEventsAttribute( - value: UShort, - timedWriteTimeoutMs: Int - ) { + suspend fun writeBarrierCommandCloseEventsAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -185,23 +142,15 @@ class BarrierControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeBarrierOpenPeriodAttribute( - value: UShort - ) { + suspend fun writeBarrierOpenPeriodAttribute(value: UShort) { // Implementation needs to be added here } - suspend fun writeBarrierOpenPeriodAttribute( - value: UShort, - timedWriteTimeoutMs: Int - ) { + suspend fun writeBarrierOpenPeriodAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeBarrierOpenPeriodAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeBarrierOpenPeriodAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -209,23 +158,15 @@ class BarrierControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeBarrierClosePeriodAttribute( - value: UShort - ) { + suspend fun writeBarrierClosePeriodAttribute(value: UShort) { // Implementation needs to be added here } - suspend fun writeBarrierClosePeriodAttribute( - value: UShort, - timedWriteTimeoutMs: Int - ) { + suspend fun writeBarrierClosePeriodAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeBarrierClosePeriodAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeBarrierClosePeriodAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -233,10 +174,7 @@ class BarrierControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeBarrierPositionAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeBarrierPositionAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -266,10 +204,7 @@ class BarrierControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -288,10 +223,7 @@ class BarrierControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -299,10 +231,7 @@ class BarrierControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index c25a3898e4d729..94c306006f1d76 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BasicInformationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BasicInformationCluster.kt @@ -20,31 +20,19 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class BasicInformationCluster(private val endpointId: UShort) { - class CapabilityMinimaAttribute( - val value: BasicInformationClusterCapabilityMinimaStruct - ) + class CapabilityMinimaAttribute(val value: BasicInformationClusterCapabilityMinimaStruct) - class ProductAppearanceAttribute( - val value: BasicInformationClusterProductAppearanceStruct? - ) + class ProductAppearanceAttribute(val value: BasicInformationClusterProductAppearanceStruct?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun mfgSpecificPing(timedInvokeTimeoutMs: Int? = null) { + suspend fun mfgSpecificPing(timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -56,10 +44,7 @@ class BasicInformationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeDataModelRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeDataModelRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -67,10 +52,7 @@ class BasicInformationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeVendorNameAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeVendorNameAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -78,10 +60,7 @@ class BasicInformationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeVendorIDAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeVendorIDAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -89,10 +68,7 @@ class BasicInformationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeProductNameAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeProductNameAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -100,10 +76,7 @@ class BasicInformationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeProductIDAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeProductIDAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -111,23 +84,15 @@ class BasicInformationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeNodeLabelAttribute( - value: String - ) { + suspend fun writeNodeLabelAttribute(value: String) { // Implementation needs to be added here } - suspend fun writeNodeLabelAttribute( - value: String, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNodeLabelAttribute(value: String, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeNodeLabelAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeNodeLabelAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -135,23 +100,15 @@ class BasicInformationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeLocationAttribute( - value: String - ) { + suspend fun writeLocationAttribute(value: String) { // Implementation needs to be added here } - suspend fun writeLocationAttribute( - value: String, - timedWriteTimeoutMs: Int - ) { + suspend fun writeLocationAttribute(value: String, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeLocationAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeLocationAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -159,10 +116,7 @@ class BasicInformationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeHardwareVersionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeHardwareVersionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -181,10 +135,7 @@ class BasicInformationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeSoftwareVersionAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeSoftwareVersionAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -203,10 +154,7 @@ class BasicInformationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeManufacturingDateAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeManufacturingDateAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -214,10 +162,7 @@ class BasicInformationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribePartNumberAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribePartNumberAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -225,10 +170,7 @@ class BasicInformationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeProductURLAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeProductURLAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -236,10 +178,7 @@ class BasicInformationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeProductLabelAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeProductLabelAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -247,10 +186,7 @@ class BasicInformationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeSerialNumberAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeSerialNumberAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -258,23 +194,15 @@ class BasicInformationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeLocalConfigDisabledAttribute( - value: Boolean - ) { + suspend fun writeLocalConfigDisabledAttribute(value: Boolean) { // Implementation needs to be added here } - suspend fun writeLocalConfigDisabledAttribute( - value: Boolean, - timedWriteTimeoutMs: Int - ) { + suspend fun writeLocalConfigDisabledAttribute(value: Boolean, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeLocalConfigDisabledAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeLocalConfigDisabledAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -282,10 +210,7 @@ class BasicInformationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeReachableAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeReachableAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -293,10 +218,7 @@ class BasicInformationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeUniqueIDAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeUniqueIDAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -348,10 +270,7 @@ class BasicInformationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -370,10 +289,7 @@ class BasicInformationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -381,10 +297,7 @@ class BasicInformationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 3211051404931d..f3e19b08fac61a 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BinaryInputBasicCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BinaryInputBasicCluster.kt @@ -20,43 +20,27 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class BinaryInputBasicCluster(private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readActiveTextAttribute(): CharString { // Implementation needs to be added here } - suspend fun writeActiveTextAttribute( - value: String - ) { + suspend fun writeActiveTextAttribute(value: String) { // Implementation needs to be added here } - suspend fun writeActiveTextAttribute( - value: String, - timedWriteTimeoutMs: Int - ) { + suspend fun writeActiveTextAttribute(value: String, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeActiveTextAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeActiveTextAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -64,23 +48,15 @@ class BinaryInputBasicCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeDescriptionAttribute( - value: String - ) { + suspend fun writeDescriptionAttribute(value: String) { // Implementation needs to be added here } - suspend fun writeDescriptionAttribute( - value: String, - timedWriteTimeoutMs: Int - ) { + suspend fun writeDescriptionAttribute(value: String, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeDescriptionAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeDescriptionAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -88,23 +64,15 @@ class BinaryInputBasicCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeInactiveTextAttribute( - value: String - ) { + suspend fun writeInactiveTextAttribute(value: String) { // Implementation needs to be added here } - suspend fun writeInactiveTextAttribute( - value: String, - timedWriteTimeoutMs: Int - ) { + suspend fun writeInactiveTextAttribute(value: String, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeInactiveTextAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeInactiveTextAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -112,23 +80,15 @@ class BinaryInputBasicCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeOutOfServiceAttribute( - value: Boolean - ) { + suspend fun writeOutOfServiceAttribute(value: Boolean) { // Implementation needs to be added here } - suspend fun writeOutOfServiceAttribute( - value: Boolean, - timedWriteTimeoutMs: Int - ) { + suspend fun writeOutOfServiceAttribute(value: Boolean, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeOutOfServiceAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeOutOfServiceAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -136,10 +96,7 @@ class BinaryInputBasicCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribePolarityAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribePolarityAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -147,23 +104,15 @@ class BinaryInputBasicCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writePresentValueAttribute( - value: Boolean - ) { + suspend fun writePresentValueAttribute(value: Boolean) { // Implementation needs to be added here } - suspend fun writePresentValueAttribute( - value: Boolean, - timedWriteTimeoutMs: Int - ) { + suspend fun writePresentValueAttribute(value: Boolean, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribePresentValueAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribePresentValueAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -171,23 +120,15 @@ class BinaryInputBasicCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeReliabilityAttribute( - value: UInt - ) { + suspend fun writeReliabilityAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeReliabilityAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeReliabilityAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeReliabilityAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeReliabilityAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -195,10 +136,7 @@ class BinaryInputBasicCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeStatusFlagsAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeStatusFlagsAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -206,10 +144,7 @@ class BinaryInputBasicCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeApplicationTypeAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeApplicationTypeAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -239,10 +174,7 @@ class BinaryInputBasicCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -261,10 +193,7 @@ class BinaryInputBasicCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -272,10 +201,7 @@ class BinaryInputBasicCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 700177cc28736b..713ad3f3b7feff 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BindingCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BindingCluster.kt @@ -20,40 +20,25 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class BindingCluster(private val endpointId: UShort) { - class BindingAttribute( - val value: List - ) + class BindingAttribute(val value: List) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readBindingAttribute(): BindingAttribute { // Implementation needs to be added here } - suspend fun readBindingAttributeWithFabricFilter( - isFabricFiltered: Boolean - ): BindingAttribute { + suspend fun readBindingAttributeWithFabricFilter(isFabricFiltered: Boolean): BindingAttribute { // Implementation needs to be added here } - - suspend fun writeBindingAttribute( - value: List - ) { + suspend fun writeBindingAttribute(value: List) { // Implementation needs to be added here } @@ -64,10 +49,7 @@ class BindingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeBindingAttribute( - minInterval: Int, - maxInterval: Int - ): BindingAttribute { + suspend fun subscribeBindingAttribute(minInterval: Int, maxInterval: Int): BindingAttribute { // Implementation needs to be added here } @@ -97,10 +79,7 @@ class BindingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -119,10 +98,7 @@ class BindingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -130,10 +106,7 @@ class BindingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index a6f9e4ab20690e..d1b3980565955e 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BooleanStateCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BooleanStateCluster.kt @@ -20,30 +20,19 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class BooleanStateCluster(private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readStateValueAttribute(): Boolean { // Implementation needs to be added here } - suspend fun subscribeStateValueAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeStateValueAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -73,10 +62,7 @@ class BooleanStateCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -95,10 +81,7 @@ class BooleanStateCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -106,10 +89,7 @@ class BooleanStateCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 38206f46bb7b8b..d557ecff969467 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BridgedDeviceBasicInformationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BridgedDeviceBasicInformationCluster.kt @@ -24,30 +24,19 @@ class BridgedDeviceBasicInformationCluster(private val endpointId: UShort) { val value: BridgedDeviceBasicInformationClusterProductAppearanceStruct? ) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readVendorNameAttribute(): CharString { // Implementation needs to be added here } - suspend fun subscribeVendorNameAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeVendorNameAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -55,10 +44,7 @@ class BridgedDeviceBasicInformationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeVendorIDAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeVendorIDAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -66,10 +52,7 @@ class BridgedDeviceBasicInformationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeProductNameAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeProductNameAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -77,23 +60,15 @@ class BridgedDeviceBasicInformationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeNodeLabelAttribute( - value: String - ) { + suspend fun writeNodeLabelAttribute(value: String) { // Implementation needs to be added here } - suspend fun writeNodeLabelAttribute( - value: String, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNodeLabelAttribute(value: String, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeNodeLabelAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeNodeLabelAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -101,10 +76,7 @@ class BridgedDeviceBasicInformationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeHardwareVersionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeHardwareVersionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -123,10 +95,7 @@ class BridgedDeviceBasicInformationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeSoftwareVersionAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeSoftwareVersionAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -145,10 +114,7 @@ class BridgedDeviceBasicInformationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeManufacturingDateAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeManufacturingDateAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -156,10 +122,7 @@ class BridgedDeviceBasicInformationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribePartNumberAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribePartNumberAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -167,10 +130,7 @@ class BridgedDeviceBasicInformationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeProductURLAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeProductURLAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -178,10 +138,7 @@ class BridgedDeviceBasicInformationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeProductLabelAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeProductLabelAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -189,10 +146,7 @@ class BridgedDeviceBasicInformationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeSerialNumberAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeSerialNumberAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -200,10 +154,7 @@ class BridgedDeviceBasicInformationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeReachableAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeReachableAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -211,10 +162,7 @@ class BridgedDeviceBasicInformationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeUniqueIDAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeUniqueIDAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -255,10 +203,7 @@ class BridgedDeviceBasicInformationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -277,10 +222,7 @@ class BridgedDeviceBasicInformationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -288,10 +230,7 @@ class BridgedDeviceBasicInformationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 3766237563c6b4..8def5ce68f3643 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/CarbonDioxideConcentrationMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/CarbonDioxideConcentrationMeasurementCluster.kt @@ -20,41 +20,23 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class CarbonDioxideConcentrationMeasurementCluster(private val endpointId: UShort) { - class MeasuredValueAttribute( - val value: Float? - ) + class MeasuredValueAttribute(val value: Float?) - class MinMeasuredValueAttribute( - val value: Float? - ) + class MinMeasuredValueAttribute(val value: Float?) - class MaxMeasuredValueAttribute( - val value: Float? - ) + class MaxMeasuredValueAttribute(val value: Float?) - class PeakMeasuredValueAttribute( - val value: Float? - ) + class PeakMeasuredValueAttribute(val value: Float?) - class AverageMeasuredValueAttribute( - val value: Float? - ) + class AverageMeasuredValueAttribute(val value: Float?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute { // Implementation needs to be added here @@ -104,10 +86,7 @@ class CarbonDioxideConcentrationMeasurementCluster(private val endpointId: UShor // Implementation needs to be added here } - suspend fun subscribePeakMeasuredValueWindowAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -137,10 +116,7 @@ class CarbonDioxideConcentrationMeasurementCluster(private val endpointId: UShor // Implementation needs to be added here } - suspend fun subscribeUncertaintyAttribute( - minInterval: Int, - maxInterval: Int - ): Float { + suspend fun subscribeUncertaintyAttribute(minInterval: Int, maxInterval: Int): Float { // Implementation needs to be added here } @@ -148,10 +124,7 @@ class CarbonDioxideConcentrationMeasurementCluster(private val endpointId: UShor // Implementation needs to be added here } - suspend fun subscribeMeasurementUnitAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -159,10 +132,7 @@ class CarbonDioxideConcentrationMeasurementCluster(private val endpointId: UShor // Implementation needs to be added here } - suspend fun subscribeMeasurementMediumAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -170,10 +140,7 @@ class CarbonDioxideConcentrationMeasurementCluster(private val endpointId: UShor // Implementation needs to be added here } - suspend fun subscribeLevelValueAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -203,10 +170,7 @@ class CarbonDioxideConcentrationMeasurementCluster(private val endpointId: UShor // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -225,10 +189,7 @@ class CarbonDioxideConcentrationMeasurementCluster(private val endpointId: UShor // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -236,10 +197,7 @@ class CarbonDioxideConcentrationMeasurementCluster(private val endpointId: UShor // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index a68050a8f7d822..ea9815273490e9 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/CarbonMonoxideConcentrationMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/CarbonMonoxideConcentrationMeasurementCluster.kt @@ -20,41 +20,23 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class CarbonMonoxideConcentrationMeasurementCluster(private val endpointId: UShort) { - class MeasuredValueAttribute( - val value: Float? - ) + class MeasuredValueAttribute(val value: Float?) - class MinMeasuredValueAttribute( - val value: Float? - ) + class MinMeasuredValueAttribute(val value: Float?) - class MaxMeasuredValueAttribute( - val value: Float? - ) + class MaxMeasuredValueAttribute(val value: Float?) - class PeakMeasuredValueAttribute( - val value: Float? - ) + class PeakMeasuredValueAttribute(val value: Float?) - class AverageMeasuredValueAttribute( - val value: Float? - ) + class AverageMeasuredValueAttribute(val value: Float?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute { // Implementation needs to be added here @@ -104,10 +86,7 @@ class CarbonMonoxideConcentrationMeasurementCluster(private val endpointId: USho // Implementation needs to be added here } - suspend fun subscribePeakMeasuredValueWindowAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -137,10 +116,7 @@ class CarbonMonoxideConcentrationMeasurementCluster(private val endpointId: USho // Implementation needs to be added here } - suspend fun subscribeUncertaintyAttribute( - minInterval: Int, - maxInterval: Int - ): Float { + suspend fun subscribeUncertaintyAttribute(minInterval: Int, maxInterval: Int): Float { // Implementation needs to be added here } @@ -148,10 +124,7 @@ class CarbonMonoxideConcentrationMeasurementCluster(private val endpointId: USho // Implementation needs to be added here } - suspend fun subscribeMeasurementUnitAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -159,10 +132,7 @@ class CarbonMonoxideConcentrationMeasurementCluster(private val endpointId: USho // Implementation needs to be added here } - suspend fun subscribeMeasurementMediumAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -170,10 +140,7 @@ class CarbonMonoxideConcentrationMeasurementCluster(private val endpointId: USho // Implementation needs to be added here } - suspend fun subscribeLevelValueAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -203,10 +170,7 @@ class CarbonMonoxideConcentrationMeasurementCluster(private val endpointId: USho // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -225,10 +189,7 @@ class CarbonMonoxideConcentrationMeasurementCluster(private val endpointId: USho // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -236,10 +197,7 @@ class CarbonMonoxideConcentrationMeasurementCluster(private val endpointId: USho // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 2b5cdf95957328..b75f88a1a259b4 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ChannelCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ChannelCluster.kt @@ -20,40 +20,26 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class ChannelCluster(private val endpointId: UShort) { - class ChangeChannelResponse( - val status: UInt, - val data: String? - ) + class ChangeChannelResponse(val status: UInt, val data: String?) - class ChannelListAttribute( - val value: List? - ) + class ChannelListAttribute(val value: List?) - class LineupAttribute( - val value: ChannelClusterLineupInfoStruct? - ) + class LineupAttribute(val value: ChannelClusterLineupInfoStruct?) - class CurrentChannelAttribute( - val value: ChannelClusterChannelInfoStruct? - ) + class CurrentChannelAttribute(val value: ChannelClusterChannelInfoStruct?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun changeChannel(match: String, timedInvokeTimeoutMs: Int? = null): ChangeChannelResponse { + suspend fun changeChannel( + match: String, + timedInvokeTimeoutMs: Int? = null + ): ChangeChannelResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -61,7 +47,11 @@ class ChannelCluster(private val endpointId: UShort) { } } - suspend fun changeChannelByNumber(majorNumber: UShort, minorNumber: UShort, timedInvokeTimeoutMs: Int? = null) { + suspend fun changeChannelByNumber( + majorNumber: UShort, + minorNumber: UShort, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -69,7 +59,7 @@ class ChannelCluster(private val endpointId: UShort) { } } - suspend fun skipChannel(count: Short, timedInvokeTimeoutMs: Int? = null) { + suspend fun skipChannel(count: Short, timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -92,10 +82,7 @@ class ChannelCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeLineupAttribute( - minInterval: Int, - maxInterval: Int - ): LineupAttribute { + suspend fun subscribeLineupAttribute(minInterval: Int, maxInterval: Int): LineupAttribute { // Implementation needs to be added here } @@ -136,10 +123,7 @@ class ChannelCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -158,10 +142,7 @@ class ChannelCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -169,10 +150,7 @@ class ChannelCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 38479b629d5841..28a6015110c32d 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ColorControlCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ColorControlCluster.kt @@ -20,67 +20,44 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class ColorControlCluster(private val endpointId: UShort) { - class NumberOfPrimariesAttribute( - val value: UByte? - ) + class NumberOfPrimariesAttribute(val value: UByte?) - class Primary1IntensityAttribute( - val value: UByte? - ) + class Primary1IntensityAttribute(val value: UByte?) - class Primary2IntensityAttribute( - val value: UByte? - ) + class Primary2IntensityAttribute(val value: UByte?) - class Primary3IntensityAttribute( - val value: UByte? - ) + class Primary3IntensityAttribute(val value: UByte?) - class Primary4IntensityAttribute( - val value: UByte? - ) + class Primary4IntensityAttribute(val value: UByte?) - class Primary5IntensityAttribute( - val value: UByte? - ) + class Primary5IntensityAttribute(val value: UByte?) - class Primary6IntensityAttribute( - val value: UByte? - ) + class Primary6IntensityAttribute(val value: UByte?) - class ColorPointRIntensityAttribute( - val value: UByte? - ) + class ColorPointRIntensityAttribute(val value: UByte?) - class ColorPointGIntensityAttribute( - val value: UByte? - ) + class ColorPointGIntensityAttribute(val value: UByte?) - class ColorPointBIntensityAttribute( - val value: UByte? - ) + class ColorPointBIntensityAttribute(val value: UByte?) - class StartUpColorTemperatureMiredsAttribute( - val value: UShort? - ) + class StartUpColorTemperatureMiredsAttribute(val value: UShort?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun moveToHue(hue: UByte, direction: UInt, transitionTime: UShort, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun moveToHue( + hue: UByte, + direction: UInt, + transitionTime: UShort, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -88,7 +65,13 @@ class ColorControlCluster(private val endpointId: UShort) { } } - suspend fun moveHue(moveMode: UInt, rate: UByte, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun moveHue( + moveMode: UInt, + rate: UByte, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -96,7 +79,14 @@ class ColorControlCluster(private val endpointId: UShort) { } } - suspend fun stepHue(stepMode: UInt, stepSize: UByte, transitionTime: UByte, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun stepHue( + stepMode: UInt, + stepSize: UByte, + transitionTime: UByte, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -104,7 +94,13 @@ class ColorControlCluster(private val endpointId: UShort) { } } - suspend fun moveToSaturation(saturation: UByte, transitionTime: UShort, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun moveToSaturation( + saturation: UByte, + transitionTime: UShort, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -112,7 +108,13 @@ class ColorControlCluster(private val endpointId: UShort) { } } - suspend fun moveSaturation(moveMode: UInt, rate: UByte, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun moveSaturation( + moveMode: UInt, + rate: UByte, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -120,7 +122,14 @@ class ColorControlCluster(private val endpointId: UShort) { } } - suspend fun stepSaturation(stepMode: UInt, stepSize: UByte, transitionTime: UByte, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun stepSaturation( + stepMode: UInt, + stepSize: UByte, + transitionTime: UByte, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -128,7 +137,14 @@ class ColorControlCluster(private val endpointId: UShort) { } } - suspend fun moveToHueAndSaturation(hue: UByte, saturation: UByte, transitionTime: UShort, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun moveToHueAndSaturation( + hue: UByte, + saturation: UByte, + transitionTime: UShort, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -136,7 +152,14 @@ class ColorControlCluster(private val endpointId: UShort) { } } - suspend fun moveToColor(colorX: UShort, colorY: UShort, transitionTime: UShort, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun moveToColor( + colorX: UShort, + colorY: UShort, + transitionTime: UShort, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -144,7 +167,13 @@ class ColorControlCluster(private val endpointId: UShort) { } } - suspend fun moveColor(rateX: Short, rateY: Short, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun moveColor( + rateX: Short, + rateY: Short, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -152,7 +181,14 @@ class ColorControlCluster(private val endpointId: UShort) { } } - suspend fun stepColor(stepX: Short, stepY: Short, transitionTime: UShort, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun stepColor( + stepX: Short, + stepY: Short, + transitionTime: UShort, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -160,7 +196,13 @@ class ColorControlCluster(private val endpointId: UShort) { } } - suspend fun moveToColorTemperature(colorTemperatureMireds: UShort, transitionTime: UShort, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun moveToColorTemperature( + colorTemperatureMireds: UShort, + transitionTime: UShort, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -168,7 +210,14 @@ class ColorControlCluster(private val endpointId: UShort) { } } - suspend fun enhancedMoveToHue(enhancedHue: UShort, direction: UInt, transitionTime: UShort, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun enhancedMoveToHue( + enhancedHue: UShort, + direction: UInt, + transitionTime: UShort, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -176,7 +225,13 @@ class ColorControlCluster(private val endpointId: UShort) { } } - suspend fun enhancedMoveHue(moveMode: UInt, rate: UShort, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun enhancedMoveHue( + moveMode: UInt, + rate: UShort, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -184,7 +239,14 @@ class ColorControlCluster(private val endpointId: UShort) { } } - suspend fun enhancedStepHue(stepMode: UInt, stepSize: UShort, transitionTime: UShort, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun enhancedStepHue( + stepMode: UInt, + stepSize: UShort, + transitionTime: UShort, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -192,7 +254,14 @@ class ColorControlCluster(private val endpointId: UShort) { } } - suspend fun enhancedMoveToHueAndSaturation(enhancedHue: UShort, saturation: UByte, transitionTime: UShort, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun enhancedMoveToHueAndSaturation( + enhancedHue: UShort, + saturation: UByte, + transitionTime: UShort, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -200,7 +269,16 @@ class ColorControlCluster(private val endpointId: UShort) { } } - suspend fun colorLoopSet(updateFlags: UInt, action: UInt, direction: UInt, time: UShort, startHue: UShort, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun colorLoopSet( + updateFlags: UInt, + action: UInt, + direction: UInt, + time: UShort, + startHue: UShort, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -208,7 +286,11 @@ class ColorControlCluster(private val endpointId: UShort) { } } - suspend fun stopMoveStep(optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun stopMoveStep( + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -216,7 +298,15 @@ class ColorControlCluster(private val endpointId: UShort) { } } - suspend fun moveColorTemperature(moveMode: UInt, rate: UShort, colorTemperatureMinimumMireds: UShort, colorTemperatureMaximumMireds: UShort, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun moveColorTemperature( + moveMode: UInt, + rate: UShort, + colorTemperatureMinimumMireds: UShort, + colorTemperatureMaximumMireds: UShort, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -224,7 +314,16 @@ class ColorControlCluster(private val endpointId: UShort) { } } - suspend fun stepColorTemperature(stepMode: UInt, stepSize: UShort, transitionTime: UShort, colorTemperatureMinimumMireds: UShort, colorTemperatureMaximumMireds: UShort, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun stepColorTemperature( + stepMode: UInt, + stepSize: UShort, + transitionTime: UShort, + colorTemperatureMinimumMireds: UShort, + colorTemperatureMaximumMireds: UShort, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -236,10 +335,7 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeCurrentHueAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeCurrentHueAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -247,10 +343,7 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeCurrentSaturationAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeCurrentSaturationAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -258,10 +351,7 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRemainingTimeAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRemainingTimeAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -269,10 +359,7 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeCurrentXAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeCurrentXAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -280,10 +367,7 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeCurrentYAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeCurrentYAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -291,10 +375,7 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeDriftCompensationAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeDriftCompensationAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -302,10 +383,7 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeCompensationTextAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeCompensationTextAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -313,10 +391,7 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeColorTemperatureMiredsAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeColorTemperatureMiredsAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -324,10 +399,7 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeColorModeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeColorModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -335,23 +407,15 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeOptionsAttribute( - value: UInt - ) { + suspend fun writeOptionsAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeOptionsAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeOptionsAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeOptionsAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeOptionsAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -370,10 +434,7 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribePrimary1XAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribePrimary1XAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -381,10 +442,7 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribePrimary1YAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribePrimary1YAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -403,10 +461,7 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribePrimary2XAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribePrimary2XAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -414,10 +469,7 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribePrimary2YAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribePrimary2YAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -436,10 +488,7 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribePrimary3XAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribePrimary3XAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -447,10 +496,7 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribePrimary3YAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribePrimary3YAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -469,10 +515,7 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribePrimary4XAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribePrimary4XAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -480,10 +523,7 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribePrimary4YAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribePrimary4YAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -502,10 +542,7 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribePrimary5XAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribePrimary5XAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -513,10 +550,7 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribePrimary5YAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribePrimary5YAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -535,10 +569,7 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribePrimary6XAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribePrimary6XAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -546,10 +577,7 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribePrimary6YAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribePrimary6YAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -568,23 +596,15 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeWhitePointXAttribute( - value: UShort - ) { + suspend fun writeWhitePointXAttribute(value: UShort) { // Implementation needs to be added here } - suspend fun writeWhitePointXAttribute( - value: UShort, - timedWriteTimeoutMs: Int - ) { + suspend fun writeWhitePointXAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeWhitePointXAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeWhitePointXAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -592,23 +612,15 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeWhitePointYAttribute( - value: UShort - ) { + suspend fun writeWhitePointYAttribute(value: UShort) { // Implementation needs to be added here } - suspend fun writeWhitePointYAttribute( - value: UShort, - timedWriteTimeoutMs: Int - ) { + suspend fun writeWhitePointYAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeWhitePointYAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeWhitePointYAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -616,23 +628,15 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeColorPointRXAttribute( - value: UShort - ) { + suspend fun writeColorPointRXAttribute(value: UShort) { // Implementation needs to be added here } - suspend fun writeColorPointRXAttribute( - value: UShort, - timedWriteTimeoutMs: Int - ) { + suspend fun writeColorPointRXAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeColorPointRXAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeColorPointRXAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -640,23 +644,15 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeColorPointRYAttribute( - value: UShort - ) { + suspend fun writeColorPointRYAttribute(value: UShort) { // Implementation needs to be added here } - suspend fun writeColorPointRYAttribute( - value: UShort, - timedWriteTimeoutMs: Int - ) { + suspend fun writeColorPointRYAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeColorPointRYAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeColorPointRYAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -664,16 +660,11 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeColorPointRIntensityAttribute( - value: UByte - ) { + suspend fun writeColorPointRIntensityAttribute(value: UByte) { // Implementation needs to be added here } - suspend fun writeColorPointRIntensityAttribute( - value: UByte, - timedWriteTimeoutMs: Int - ) { + suspend fun writeColorPointRIntensityAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -688,23 +679,15 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeColorPointGXAttribute( - value: UShort - ) { + suspend fun writeColorPointGXAttribute(value: UShort) { // Implementation needs to be added here } - suspend fun writeColorPointGXAttribute( - value: UShort, - timedWriteTimeoutMs: Int - ) { + suspend fun writeColorPointGXAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeColorPointGXAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeColorPointGXAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -712,23 +695,15 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeColorPointGYAttribute( - value: UShort - ) { + suspend fun writeColorPointGYAttribute(value: UShort) { // Implementation needs to be added here } - suspend fun writeColorPointGYAttribute( - value: UShort, - timedWriteTimeoutMs: Int - ) { + suspend fun writeColorPointGYAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeColorPointGYAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeColorPointGYAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -736,16 +711,11 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeColorPointGIntensityAttribute( - value: UByte - ) { + suspend fun writeColorPointGIntensityAttribute(value: UByte) { // Implementation needs to be added here } - suspend fun writeColorPointGIntensityAttribute( - value: UByte, - timedWriteTimeoutMs: Int - ) { + suspend fun writeColorPointGIntensityAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -760,23 +730,15 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeColorPointBXAttribute( - value: UShort - ) { + suspend fun writeColorPointBXAttribute(value: UShort) { // Implementation needs to be added here } - suspend fun writeColorPointBXAttribute( - value: UShort, - timedWriteTimeoutMs: Int - ) { + suspend fun writeColorPointBXAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeColorPointBXAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeColorPointBXAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -784,23 +746,15 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeColorPointBYAttribute( - value: UShort - ) { + suspend fun writeColorPointBYAttribute(value: UShort) { // Implementation needs to be added here } - suspend fun writeColorPointBYAttribute( - value: UShort, - timedWriteTimeoutMs: Int - ) { + suspend fun writeColorPointBYAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeColorPointBYAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeColorPointBYAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -808,16 +762,11 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeColorPointBIntensityAttribute( - value: UByte - ) { + suspend fun writeColorPointBIntensityAttribute(value: UByte) { // Implementation needs to be added here } - suspend fun writeColorPointBIntensityAttribute( - value: UByte, - timedWriteTimeoutMs: Int - ) { + suspend fun writeColorPointBIntensityAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -832,10 +781,7 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEnhancedCurrentHueAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeEnhancedCurrentHueAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -843,10 +789,7 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEnhancedColorModeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeEnhancedColorModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -854,10 +797,7 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeColorLoopActiveAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeColorLoopActiveAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -865,10 +805,7 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeColorLoopDirectionAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeColorLoopDirectionAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -876,10 +813,7 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeColorLoopTimeAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeColorLoopTimeAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -909,10 +843,7 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeColorCapabilitiesAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeColorCapabilitiesAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -953,16 +884,11 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeStartUpColorTemperatureMiredsAttribute( - value: UShort - ) { + suspend fun writeStartUpColorTemperatureMiredsAttribute(value: UShort) { // Implementation needs to be added here } - suspend fun writeStartUpColorTemperatureMiredsAttribute( - value: UShort, - timedWriteTimeoutMs: Int - ) { + suspend fun writeStartUpColorTemperatureMiredsAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -999,10 +925,7 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -1021,10 +944,7 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -1032,10 +952,7 @@ class ColorControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 85462b3923760d..6a32e63e4b869f 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ContentLauncherCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ContentLauncherCluster.kt @@ -20,32 +20,24 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class ContentLauncherCluster(private val endpointId: UShort) { - class LauncherResponse( - val status: UInt, - val data: String? - ) + class LauncherResponse(val status: UInt, val data: String?) - class AcceptHeaderAttribute( - val value: List? - ) + class AcceptHeaderAttribute(val value: List?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun launchContent(search: ContentLauncherClusterContentSearchStruct, autoPlay: Boolean, data: String?, timedInvokeTimeoutMs: Int? = null): LauncherResponse { + suspend fun launchContent( + search: ContentLauncherClusterContentSearchStruct, + autoPlay: Boolean, + data: String?, + timedInvokeTimeoutMs: Int? = null + ): LauncherResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -53,7 +45,12 @@ class ContentLauncherCluster(private val endpointId: UShort) { } } - suspend fun launchURL(contentURL: String, displayString: String?, brandingInformation: ContentLauncherClusterBrandingInformationStruct?, timedInvokeTimeoutMs: Int? = null): LauncherResponse { + suspend fun launchURL( + contentURL: String, + displayString: String?, + brandingInformation: ContentLauncherClusterBrandingInformationStruct?, + timedInvokeTimeoutMs: Int? = null + ): LauncherResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -76,16 +73,11 @@ class ContentLauncherCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeSupportedStreamingProtocolsAttribute( - value: ULong - ) { + suspend fun writeSupportedStreamingProtocolsAttribute(value: ULong) { // Implementation needs to be added here } - suspend fun writeSupportedStreamingProtocolsAttribute( - value: ULong, - timedWriteTimeoutMs: Int - ) { + suspend fun writeSupportedStreamingProtocolsAttribute(value: ULong, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -122,10 +114,7 @@ class ContentLauncherCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -144,10 +133,7 @@ class ContentLauncherCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -155,10 +141,7 @@ class ContentLauncherCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index ccd7826e297899..da4341bdcb48ec 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DescriptorCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DescriptorCluster.kt @@ -20,41 +20,23 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class DescriptorCluster(private val endpointId: UShort) { - class DeviceTypeListAttribute( - val value: List - ) + class DeviceTypeListAttribute(val value: List) - class ServerListAttribute( - val value: List - ) + class ServerListAttribute(val value: List) - class ClientListAttribute( - val value: List - ) + class ClientListAttribute(val value: List) - class PartsListAttribute( - val value: List - ) + class PartsListAttribute(val value: List) - class TagListAttribute( - val value: List? - ) + class TagListAttribute(val value: List?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readDeviceTypeListAttribute(): DeviceTypeListAttribute { // Implementation needs to be added here @@ -93,10 +75,7 @@ class DescriptorCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribePartsListAttribute( - minInterval: Int, - maxInterval: Int - ): PartsListAttribute { + suspend fun subscribePartsListAttribute(minInterval: Int, maxInterval: Int): PartsListAttribute { // Implementation needs to be added here } @@ -104,10 +83,7 @@ class DescriptorCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeTagListAttribute( - minInterval: Int, - maxInterval: Int - ): TagListAttribute { + suspend fun subscribeTagListAttribute(minInterval: Int, maxInterval: Int): TagListAttribute { // Implementation needs to be added here } @@ -137,10 +113,7 @@ class DescriptorCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -159,10 +132,7 @@ class DescriptorCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -170,10 +140,7 @@ class DescriptorCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 195dc393ee2c4d..e6233e59dd2342 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DiagnosticLogsCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DiagnosticLogsCluster.kt @@ -21,29 +21,26 @@ import matter.devicecontroller.cluster.structs.* class DiagnosticLogsCluster(private val endpointId: UShort) { class RetrieveLogsResponse( - val status: UInt, - val logContent: ByteArray, - val UTCTimeStamp: ULong?, + val status: UInt, + val logContent: ByteArray, + val UTCTimeStamp: ULong?, val timeSinceBoot: ULong? ) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun retrieveLogsRequest(intent: UInt, requestedProtocol: UInt, transferFileDesignator: String?, timedInvokeTimeoutMs: Int? = null): RetrieveLogsResponse { + suspend fun retrieveLogsRequest( + intent: UInt, + requestedProtocol: UInt, + transferFileDesignator: String?, + timedInvokeTimeoutMs: Int? = null + ): RetrieveLogsResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -77,10 +74,7 @@ class DiagnosticLogsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -99,10 +93,7 @@ class DiagnosticLogsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -110,10 +101,7 @@ class DiagnosticLogsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index aa64b54043c8dc..a186f0b736ef25 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DishwasherAlarmCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DishwasherAlarmCluster.kt @@ -20,23 +20,15 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class DishwasherAlarmCluster(private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun reset(alarms: ULong, timedInvokeTimeoutMs: Int? = null) { + suspend fun reset(alarms: ULong, timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -44,7 +36,7 @@ class DishwasherAlarmCluster(private val endpointId: UShort) { } } - suspend fun modifyEnabledAlarms(mask: ULong, timedInvokeTimeoutMs: Int? = null) { + suspend fun modifyEnabledAlarms(mask: ULong, timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -56,10 +48,7 @@ class DishwasherAlarmCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeMaskAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeMaskAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -67,10 +56,7 @@ class DishwasherAlarmCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeLatchAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeLatchAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -78,10 +64,7 @@ class DishwasherAlarmCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeStateAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeStateAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -89,10 +72,7 @@ class DishwasherAlarmCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeSupportedAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeSupportedAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -122,10 +102,7 @@ class DishwasherAlarmCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -144,10 +121,7 @@ class DishwasherAlarmCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -155,10 +129,7 @@ class DishwasherAlarmCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 1933dfcfb9f2f7..af1bae38f5ee74 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DishwasherModeCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DishwasherModeCluster.kt @@ -20,40 +20,26 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class DishwasherModeCluster(private val endpointId: UShort) { - class ChangeToModeResponse( - val status: UInt, - val statusText: String? - ) + class ChangeToModeResponse(val status: UInt, val statusText: String?) - class SupportedModesAttribute( - val value: List - ) + class SupportedModesAttribute(val value: List) - class StartUpModeAttribute( - val value: UByte? - ) + class StartUpModeAttribute(val value: UByte?) - class OnModeAttribute( - val value: UByte? - ) + class OnModeAttribute(val value: UByte?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun changeToMode(newMode: UByte, timedInvokeTimeoutMs: Int? = null): ChangeToModeResponse { + suspend fun changeToMode( + newMode: UByte, + timedInvokeTimeoutMs: Int? = null + ): ChangeToModeResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -76,10 +62,7 @@ class DishwasherModeCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeCurrentModeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeCurrentModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -87,16 +70,11 @@ class DishwasherModeCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeStartUpModeAttribute( - value: UByte - ) { + suspend fun writeStartUpModeAttribute(value: UByte) { // Implementation needs to be added here } - suspend fun writeStartUpModeAttribute( - value: UByte, - timedWriteTimeoutMs: Int - ) { + suspend fun writeStartUpModeAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -111,23 +89,15 @@ class DishwasherModeCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeOnModeAttribute( - value: UByte - ) { + suspend fun writeOnModeAttribute(value: UByte) { // Implementation needs to be added here } - suspend fun writeOnModeAttribute( - value: UByte, - timedWriteTimeoutMs: Int - ) { + suspend fun writeOnModeAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeOnModeAttribute( - minInterval: Int, - maxInterval: Int - ): OnModeAttribute { + suspend fun subscribeOnModeAttribute(minInterval: Int, maxInterval: Int): OnModeAttribute { // Implementation needs to be added here } @@ -157,10 +127,7 @@ class DishwasherModeCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -179,10 +146,7 @@ class DishwasherModeCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -190,10 +154,7 @@ class DishwasherModeCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index d9860b98b86653..e811fd8d00f874 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DoorLockCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DoorLockCluster.kt @@ -21,84 +21,72 @@ import matter.devicecontroller.cluster.structs.* class DoorLockCluster(private val endpointId: UShort) { class GetWeekDayScheduleResponse( - val weekDayIndex: UByte, - val userIndex: UShort, - val status: UInt, - val daysMask: UInt?, - val startHour: UByte?, - val startMinute: UByte?, - val endHour: UByte?, + val weekDayIndex: UByte, + val userIndex: UShort, + val status: UInt, + val daysMask: UInt?, + val startHour: UByte?, + val startMinute: UByte?, + val endHour: UByte?, val endMinute: UByte? ) class GetYearDayScheduleResponse( - val yearDayIndex: UByte, - val userIndex: UShort, - val status: UInt, - val localStartTime: UInt?, + val yearDayIndex: UByte, + val userIndex: UShort, + val status: UInt, + val localStartTime: UInt?, val localEndTime: UInt? ) class GetHolidayScheduleResponse( - val holidayIndex: UByte, - val status: UInt, - val localStartTime: UInt?, - val localEndTime: UInt?, + val holidayIndex: UByte, + val status: UInt, + val localStartTime: UInt?, + val localEndTime: UInt?, val operatingMode: UInt? ) class GetUserResponse( - val userIndex: UShort, - val userName: String?, - val userUniqueID: UInt?, - val userStatus: UInt?, - val userType: UInt?, - val credentialRule: UInt?, - val credentials: List?, - val creatorFabricIndex: UByte?, - val lastModifiedFabricIndex: UByte?, + val userIndex: UShort, + val userName: String?, + val userUniqueID: UInt?, + val userStatus: UInt?, + val userType: UInt?, + val credentialRule: UInt?, + val credentials: List?, + val creatorFabricIndex: UByte?, + val lastModifiedFabricIndex: UByte?, val nextUserIndex: UShort? ) class SetCredentialResponse( - val status: UInt, - val userIndex: UShort?, + val status: UInt, + val userIndex: UShort?, val nextCredentialIndex: UShort? ) class GetCredentialStatusResponse( - val credentialExists: Boolean, - val userIndex: UShort?, - val creatorFabricIndex: UByte?, - val lastModifiedFabricIndex: UByte?, + val credentialExists: Boolean, + val userIndex: UShort?, + val creatorFabricIndex: UByte?, + val lastModifiedFabricIndex: UByte?, val nextCredentialIndex: UShort? ) - class LockStateAttribute( - val value: UInt? - ) + class LockStateAttribute(val value: UInt?) - class DoorStateAttribute( - val value: UInt? - ) + class DoorStateAttribute(val value: UInt?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun lockDoor(PINCode: ByteArray?, timedInvokeTimeoutMs: Int? = null) { + suspend fun lockDoor(PINCode: ByteArray?, timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -106,7 +94,7 @@ class DoorLockCluster(private val endpointId: UShort) { } } - suspend fun unlockDoor(PINCode: ByteArray?, timedInvokeTimeoutMs: Int? = null) { + suspend fun unlockDoor(PINCode: ByteArray?, timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -114,7 +102,11 @@ class DoorLockCluster(private val endpointId: UShort) { } } - suspend fun unlockWithTimeout(timeout: UShort, PINCode: ByteArray?, timedInvokeTimeoutMs: Int? = null) { + suspend fun unlockWithTimeout( + timeout: UShort, + PINCode: ByteArray?, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -122,7 +114,16 @@ class DoorLockCluster(private val endpointId: UShort) { } } - suspend fun setWeekDaySchedule(weekDayIndex: UByte, userIndex: UShort, daysMask: UInt, startHour: UByte, startMinute: UByte, endHour: UByte, endMinute: UByte, timedInvokeTimeoutMs: Int? = null) { + suspend fun setWeekDaySchedule( + weekDayIndex: UByte, + userIndex: UShort, + daysMask: UInt, + startHour: UByte, + startMinute: UByte, + endHour: UByte, + endMinute: UByte, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -130,7 +131,11 @@ class DoorLockCluster(private val endpointId: UShort) { } } - suspend fun getWeekDaySchedule(weekDayIndex: UByte, userIndex: UShort, timedInvokeTimeoutMs: Int? = null): GetWeekDayScheduleResponse { + suspend fun getWeekDaySchedule( + weekDayIndex: UByte, + userIndex: UShort, + timedInvokeTimeoutMs: Int? = null + ): GetWeekDayScheduleResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -138,7 +143,11 @@ class DoorLockCluster(private val endpointId: UShort) { } } - suspend fun clearWeekDaySchedule(weekDayIndex: UByte, userIndex: UShort, timedInvokeTimeoutMs: Int? = null) { + suspend fun clearWeekDaySchedule( + weekDayIndex: UByte, + userIndex: UShort, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -146,7 +155,13 @@ class DoorLockCluster(private val endpointId: UShort) { } } - suspend fun setYearDaySchedule(yearDayIndex: UByte, userIndex: UShort, localStartTime: UInt, localEndTime: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun setYearDaySchedule( + yearDayIndex: UByte, + userIndex: UShort, + localStartTime: UInt, + localEndTime: UInt, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -154,7 +169,11 @@ class DoorLockCluster(private val endpointId: UShort) { } } - suspend fun getYearDaySchedule(yearDayIndex: UByte, userIndex: UShort, timedInvokeTimeoutMs: Int? = null): GetYearDayScheduleResponse { + suspend fun getYearDaySchedule( + yearDayIndex: UByte, + userIndex: UShort, + timedInvokeTimeoutMs: Int? = null + ): GetYearDayScheduleResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -162,7 +181,11 @@ class DoorLockCluster(private val endpointId: UShort) { } } - suspend fun clearYearDaySchedule(yearDayIndex: UByte, userIndex: UShort, timedInvokeTimeoutMs: Int? = null) { + suspend fun clearYearDaySchedule( + yearDayIndex: UByte, + userIndex: UShort, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -170,7 +193,13 @@ class DoorLockCluster(private val endpointId: UShort) { } } - suspend fun setHolidaySchedule(holidayIndex: UByte, localStartTime: UInt, localEndTime: UInt, operatingMode: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun setHolidaySchedule( + holidayIndex: UByte, + localStartTime: UInt, + localEndTime: UInt, + operatingMode: UInt, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -178,7 +207,10 @@ class DoorLockCluster(private val endpointId: UShort) { } } - suspend fun getHolidaySchedule(holidayIndex: UByte, timedInvokeTimeoutMs: Int? = null): GetHolidayScheduleResponse { + suspend fun getHolidaySchedule( + holidayIndex: UByte, + timedInvokeTimeoutMs: Int? = null + ): GetHolidayScheduleResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -186,7 +218,7 @@ class DoorLockCluster(private val endpointId: UShort) { } } - suspend fun clearHolidaySchedule(holidayIndex: UByte, timedInvokeTimeoutMs: Int? = null) { + suspend fun clearHolidaySchedule(holidayIndex: UByte, timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -194,7 +226,16 @@ class DoorLockCluster(private val endpointId: UShort) { } } - suspend fun setUser(operationType: UInt, userIndex: UShort, userName: String?, userUniqueID: UInt?, userStatus: UInt?, userType: UInt?, credentialRule: UInt?, timedInvokeTimeoutMs: Int? = null) { + suspend fun setUser( + operationType: UInt, + userIndex: UShort, + userName: String?, + userUniqueID: UInt?, + userStatus: UInt?, + userType: UInt?, + credentialRule: UInt?, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -202,7 +243,7 @@ class DoorLockCluster(private val endpointId: UShort) { } } - suspend fun getUser(userIndex: UShort, timedInvokeTimeoutMs: Int? = null): GetUserResponse { + suspend fun getUser(userIndex: UShort, timedInvokeTimeoutMs: Int? = null): GetUserResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -210,7 +251,7 @@ class DoorLockCluster(private val endpointId: UShort) { } } - suspend fun clearUser(userIndex: UShort, timedInvokeTimeoutMs: Int? = null) { + suspend fun clearUser(userIndex: UShort, timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -218,7 +259,15 @@ class DoorLockCluster(private val endpointId: UShort) { } } - suspend fun setCredential(operationType: UInt, credential: DoorLockClusterCredentialStruct, credentialData: ByteArray, userIndex: UShort?, userStatus: UInt?, userType: UInt?, timedInvokeTimeoutMs: Int? = null): SetCredentialResponse { + suspend fun setCredential( + operationType: UInt, + credential: DoorLockClusterCredentialStruct, + credentialData: ByteArray, + userIndex: UShort?, + userStatus: UInt?, + userType: UInt?, + timedInvokeTimeoutMs: Int? = null + ): SetCredentialResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -226,7 +275,10 @@ class DoorLockCluster(private val endpointId: UShort) { } } - suspend fun getCredentialStatus(credential: DoorLockClusterCredentialStruct, timedInvokeTimeoutMs: Int? = null): GetCredentialStatusResponse { + suspend fun getCredentialStatus( + credential: DoorLockClusterCredentialStruct, + timedInvokeTimeoutMs: Int? = null + ): GetCredentialStatusResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -234,7 +286,10 @@ class DoorLockCluster(private val endpointId: UShort) { } } - suspend fun clearCredential(credential: DoorLockClusterCredentialStruct?, timedInvokeTimeoutMs: Int? = null) { + suspend fun clearCredential( + credential: DoorLockClusterCredentialStruct?, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -242,7 +297,7 @@ class DoorLockCluster(private val endpointId: UShort) { } } - suspend fun unboltDoor(PINCode: ByteArray?, timedInvokeTimeoutMs: Int? = null) { + suspend fun unboltDoor(PINCode: ByteArray?, timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -254,10 +309,7 @@ class DoorLockCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeLockStateAttribute( - minInterval: Int, - maxInterval: Int - ): LockStateAttribute { + suspend fun subscribeLockStateAttribute(minInterval: Int, maxInterval: Int): LockStateAttribute { // Implementation needs to be added here } @@ -265,10 +317,7 @@ class DoorLockCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeLockTypeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeLockTypeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -276,10 +325,7 @@ class DoorLockCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeActuatorEnabledAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeActuatorEnabledAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -287,10 +333,7 @@ class DoorLockCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeDoorStateAttribute( - minInterval: Int, - maxInterval: Int - ): DoorStateAttribute { + suspend fun subscribeDoorStateAttribute(minInterval: Int, maxInterval: Int): DoorStateAttribute { // Implementation needs to be added here } @@ -298,23 +341,15 @@ class DoorLockCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeDoorOpenEventsAttribute( - value: UInt - ) { + suspend fun writeDoorOpenEventsAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeDoorOpenEventsAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeDoorOpenEventsAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeDoorOpenEventsAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeDoorOpenEventsAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -322,23 +357,15 @@ class DoorLockCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeDoorClosedEventsAttribute( - value: UInt - ) { + suspend fun writeDoorClosedEventsAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeDoorClosedEventsAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeDoorClosedEventsAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeDoorClosedEventsAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeDoorClosedEventsAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -346,23 +373,15 @@ class DoorLockCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeOpenPeriodAttribute( - value: UShort - ) { + suspend fun writeOpenPeriodAttribute(value: UShort) { // Implementation needs to be added here } - suspend fun writeOpenPeriodAttribute( - value: UShort, - timedWriteTimeoutMs: Int - ) { + suspend fun writeOpenPeriodAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeOpenPeriodAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeOpenPeriodAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -436,10 +455,7 @@ class DoorLockCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeMaxPINCodeLengthAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMaxPINCodeLengthAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -447,10 +463,7 @@ class DoorLockCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeMinPINCodeLengthAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMinPINCodeLengthAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -458,10 +471,7 @@ class DoorLockCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeMaxRFIDCodeLengthAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMaxRFIDCodeLengthAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -469,10 +479,7 @@ class DoorLockCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeMinRFIDCodeLengthAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMinRFIDCodeLengthAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -480,10 +487,7 @@ class DoorLockCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeCredentialRulesSupportAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeCredentialRulesSupportAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -502,23 +506,15 @@ class DoorLockCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeLanguageAttribute( - value: String - ) { + suspend fun writeLanguageAttribute(value: String) { // Implementation needs to be added here } - suspend fun writeLanguageAttribute( - value: String, - timedWriteTimeoutMs: Int - ) { + suspend fun writeLanguageAttribute(value: String, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeLanguageAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeLanguageAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -526,23 +522,15 @@ class DoorLockCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeLEDSettingsAttribute( - value: UByte - ) { + suspend fun writeLEDSettingsAttribute(value: UByte) { // Implementation needs to be added here } - suspend fun writeLEDSettingsAttribute( - value: UByte, - timedWriteTimeoutMs: Int - ) { + suspend fun writeLEDSettingsAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeLEDSettingsAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeLEDSettingsAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -550,23 +538,15 @@ class DoorLockCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeAutoRelockTimeAttribute( - value: UInt - ) { + suspend fun writeAutoRelockTimeAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeAutoRelockTimeAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeAutoRelockTimeAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeAutoRelockTimeAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeAutoRelockTimeAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -574,23 +554,15 @@ class DoorLockCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeSoundVolumeAttribute( - value: UByte - ) { + suspend fun writeSoundVolumeAttribute(value: UByte) { // Implementation needs to be added here } - suspend fun writeSoundVolumeAttribute( - value: UByte, - timedWriteTimeoutMs: Int - ) { + suspend fun writeSoundVolumeAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeSoundVolumeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeSoundVolumeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -598,23 +570,15 @@ class DoorLockCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeOperatingModeAttribute( - value: UInt - ) { + suspend fun writeOperatingModeAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeOperatingModeAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeOperatingModeAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeOperatingModeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeOperatingModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -644,16 +608,11 @@ class DoorLockCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeEnableLocalProgrammingAttribute( - value: Boolean - ) { + suspend fun writeEnableLocalProgrammingAttribute(value: Boolean) { // Implementation needs to be added here } - suspend fun writeEnableLocalProgrammingAttribute( - value: Boolean, - timedWriteTimeoutMs: Int - ) { + suspend fun writeEnableLocalProgrammingAttribute(value: Boolean, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -668,23 +627,15 @@ class DoorLockCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeEnableOneTouchLockingAttribute( - value: Boolean - ) { + suspend fun writeEnableOneTouchLockingAttribute(value: Boolean) { // Implementation needs to be added here } - suspend fun writeEnableOneTouchLockingAttribute( - value: Boolean, - timedWriteTimeoutMs: Int - ) { + suspend fun writeEnableOneTouchLockingAttribute(value: Boolean, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeEnableOneTouchLockingAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeEnableOneTouchLockingAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -692,23 +643,15 @@ class DoorLockCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeEnableInsideStatusLEDAttribute( - value: Boolean - ) { + suspend fun writeEnableInsideStatusLEDAttribute(value: Boolean) { // Implementation needs to be added here } - suspend fun writeEnableInsideStatusLEDAttribute( - value: Boolean, - timedWriteTimeoutMs: Int - ) { + suspend fun writeEnableInsideStatusLEDAttribute(value: Boolean, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeEnableInsideStatusLEDAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeEnableInsideStatusLEDAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -716,16 +659,11 @@ class DoorLockCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeEnablePrivacyModeButtonAttribute( - value: Boolean - ) { + suspend fun writeEnablePrivacyModeButtonAttribute(value: Boolean) { // Implementation needs to be added here } - suspend fun writeEnablePrivacyModeButtonAttribute( - value: Boolean, - timedWriteTimeoutMs: Int - ) { + suspend fun writeEnablePrivacyModeButtonAttribute(value: Boolean, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -740,16 +678,11 @@ class DoorLockCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeLocalProgrammingFeaturesAttribute( - value: UInt - ) { + suspend fun writeLocalProgrammingFeaturesAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeLocalProgrammingFeaturesAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeLocalProgrammingFeaturesAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -764,23 +697,15 @@ class DoorLockCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeWrongCodeEntryLimitAttribute( - value: UByte - ) { + suspend fun writeWrongCodeEntryLimitAttribute(value: UByte) { // Implementation needs to be added here } - suspend fun writeWrongCodeEntryLimitAttribute( - value: UByte, - timedWriteTimeoutMs: Int - ) { + suspend fun writeWrongCodeEntryLimitAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeWrongCodeEntryLimitAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeWrongCodeEntryLimitAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -788,16 +713,11 @@ class DoorLockCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeUserCodeTemporaryDisableTimeAttribute( - value: UByte - ) { + suspend fun writeUserCodeTemporaryDisableTimeAttribute(value: UByte) { // Implementation needs to be added here } - suspend fun writeUserCodeTemporaryDisableTimeAttribute( - value: UByte, - timedWriteTimeoutMs: Int - ) { + suspend fun writeUserCodeTemporaryDisableTimeAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -812,23 +732,15 @@ class DoorLockCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeSendPINOverTheAirAttribute( - value: Boolean - ) { + suspend fun writeSendPINOverTheAirAttribute(value: Boolean) { // Implementation needs to be added here } - suspend fun writeSendPINOverTheAirAttribute( - value: Boolean, - timedWriteTimeoutMs: Int - ) { + suspend fun writeSendPINOverTheAirAttribute(value: Boolean, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeSendPINOverTheAirAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeSendPINOverTheAirAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -836,16 +748,11 @@ class DoorLockCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeRequirePINforRemoteOperationAttribute( - value: Boolean - ) { + suspend fun writeRequirePINforRemoteOperationAttribute(value: Boolean) { // Implementation needs to be added here } - suspend fun writeRequirePINforRemoteOperationAttribute( - value: Boolean, - timedWriteTimeoutMs: Int - ) { + suspend fun writeRequirePINforRemoteOperationAttribute(value: Boolean, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -860,23 +767,15 @@ class DoorLockCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeExpiringUserTimeoutAttribute( - value: UShort - ) { + suspend fun writeExpiringUserTimeoutAttribute(value: UShort) { // Implementation needs to be added here } - suspend fun writeExpiringUserTimeoutAttribute( - value: UShort, - timedWriteTimeoutMs: Int - ) { + suspend fun writeExpiringUserTimeoutAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeExpiringUserTimeoutAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeExpiringUserTimeoutAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -906,10 +805,7 @@ class DoorLockCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -928,10 +824,7 @@ class DoorLockCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -939,10 +832,7 @@ class DoorLockCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index c2063e98735502..7a7a7fa1b71cd4 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ElectricalMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ElectricalMeasurementCluster.kt @@ -20,23 +20,15 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class ElectricalMeasurementCluster(private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun getProfileInfoCommand(timedInvokeTimeoutMs: Int? = null) { + suspend fun getProfileInfoCommand(timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -44,7 +36,12 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { } } - suspend fun getMeasurementProfileCommand(attributeId: UShort, startTime: UInt, numberOfIntervals: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun getMeasurementProfileCommand( + attributeId: UShort, + startTime: UInt, + numberOfIntervals: UInt, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -56,10 +53,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeMeasurementTypeAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeMeasurementTypeAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -67,10 +61,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeDcVoltageAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeDcVoltageAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -78,10 +69,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeDcVoltageMinAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeDcVoltageMinAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -89,10 +77,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeDcVoltageMaxAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeDcVoltageMaxAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -100,10 +85,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeDcCurrentAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeDcCurrentAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -111,10 +93,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeDcCurrentMinAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeDcCurrentMinAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -122,10 +101,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeDcCurrentMaxAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeDcCurrentMaxAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -133,10 +109,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeDcPowerAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeDcPowerAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -144,10 +117,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeDcPowerMinAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeDcPowerMinAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -155,10 +125,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeDcPowerMaxAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeDcPowerMaxAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -166,10 +133,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeDcVoltageMultiplierAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeDcVoltageMultiplierAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -177,10 +141,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeDcVoltageDivisorAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeDcVoltageDivisorAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -188,10 +149,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeDcCurrentMultiplierAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeDcCurrentMultiplierAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -199,10 +157,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeDcCurrentDivisorAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeDcCurrentDivisorAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -210,10 +165,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeDcPowerMultiplierAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeDcPowerMultiplierAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -221,10 +173,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeDcPowerDivisorAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeDcPowerDivisorAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -232,10 +181,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeAcFrequencyAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeAcFrequencyAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -243,10 +189,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeAcFrequencyMinAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeAcFrequencyMinAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -254,10 +197,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeAcFrequencyMaxAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeAcFrequencyMaxAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -265,10 +205,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeNeutralCurrentAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeNeutralCurrentAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -276,10 +213,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeTotalActivePowerAttribute( - minInterval: Int, - maxInterval: Int - ): Int { + suspend fun subscribeTotalActivePowerAttribute(minInterval: Int, maxInterval: Int): Int { // Implementation needs to be added here } @@ -287,10 +221,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeTotalReactivePowerAttribute( - minInterval: Int, - maxInterval: Int - ): Int { + suspend fun subscribeTotalReactivePowerAttribute(minInterval: Int, maxInterval: Int): Int { // Implementation needs to be added here } @@ -298,10 +229,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeTotalApparentPowerAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeTotalApparentPowerAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -441,10 +369,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeAcFrequencyMultiplierAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeAcFrequencyMultiplierAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -452,10 +377,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeAcFrequencyDivisorAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeAcFrequencyDivisorAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -463,10 +385,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribePowerMultiplierAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribePowerMultiplierAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -474,10 +393,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribePowerDivisorAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribePowerDivisorAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -507,10 +423,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeInstantaneousVoltageAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeInstantaneousVoltageAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -551,10 +464,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeInstantaneousPowerAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeInstantaneousPowerAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -562,10 +472,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRmsVoltageAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRmsVoltageAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -573,10 +480,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRmsVoltageMinAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRmsVoltageMinAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -584,10 +488,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRmsVoltageMaxAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRmsVoltageMaxAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -595,10 +496,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRmsCurrentAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRmsCurrentAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -606,10 +504,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRmsCurrentMinAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRmsCurrentMinAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -617,10 +512,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRmsCurrentMaxAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRmsCurrentMaxAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -628,10 +520,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeActivePowerAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeActivePowerAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -639,10 +528,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeActivePowerMinAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeActivePowerMinAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -650,10 +536,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeActivePowerMaxAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeActivePowerMaxAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -661,10 +544,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeReactivePowerAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeReactivePowerAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -672,10 +552,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeApparentPowerAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeApparentPowerAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -683,10 +560,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribePowerFactorAttribute( - minInterval: Int, - maxInterval: Int - ): Byte { + suspend fun subscribePowerFactorAttribute(minInterval: Int, maxInterval: Int): Byte { // Implementation needs to be added here } @@ -694,9 +568,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeAverageRmsVoltageMeasurementPeriodAttribute( - value: UShort - ) { + suspend fun writeAverageRmsVoltageMeasurementPeriodAttribute(value: UShort) { // Implementation needs to be added here } @@ -718,16 +590,11 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeAverageRmsUnderVoltageCounterAttribute( - value: UShort - ) { + suspend fun writeAverageRmsUnderVoltageCounterAttribute(value: UShort) { // Implementation needs to be added here } - suspend fun writeAverageRmsUnderVoltageCounterAttribute( - value: UShort, - timedWriteTimeoutMs: Int - ) { + suspend fun writeAverageRmsUnderVoltageCounterAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -742,16 +609,11 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeRmsExtremeOverVoltagePeriodAttribute( - value: UShort - ) { + suspend fun writeRmsExtremeOverVoltagePeriodAttribute(value: UShort) { // Implementation needs to be added here } - suspend fun writeRmsExtremeOverVoltagePeriodAttribute( - value: UShort, - timedWriteTimeoutMs: Int - ) { + suspend fun writeRmsExtremeOverVoltagePeriodAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -766,16 +628,11 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeRmsExtremeUnderVoltagePeriodAttribute( - value: UShort - ) { + suspend fun writeRmsExtremeUnderVoltagePeriodAttribute(value: UShort) { // Implementation needs to be added here } - suspend fun writeRmsExtremeUnderVoltagePeriodAttribute( - value: UShort, - timedWriteTimeoutMs: Int - ) { + suspend fun writeRmsExtremeUnderVoltagePeriodAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -790,23 +647,15 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeRmsVoltageSagPeriodAttribute( - value: UShort - ) { + suspend fun writeRmsVoltageSagPeriodAttribute(value: UShort) { // Implementation needs to be added here } - suspend fun writeRmsVoltageSagPeriodAttribute( - value: UShort, - timedWriteTimeoutMs: Int - ) { + suspend fun writeRmsVoltageSagPeriodAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeRmsVoltageSagPeriodAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRmsVoltageSagPeriodAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -814,23 +663,15 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeRmsVoltageSwellPeriodAttribute( - value: UShort - ) { + suspend fun writeRmsVoltageSwellPeriodAttribute(value: UShort) { // Implementation needs to be added here } - suspend fun writeRmsVoltageSwellPeriodAttribute( - value: UShort, - timedWriteTimeoutMs: Int - ) { + suspend fun writeRmsVoltageSwellPeriodAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeRmsVoltageSwellPeriodAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRmsVoltageSwellPeriodAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -838,10 +679,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeAcVoltageMultiplierAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeAcVoltageMultiplierAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -849,10 +687,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeAcVoltageDivisorAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeAcVoltageDivisorAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -860,10 +695,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeAcCurrentMultiplierAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeAcCurrentMultiplierAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -871,10 +703,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeAcCurrentDivisorAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeAcCurrentDivisorAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -882,10 +711,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeAcPowerMultiplierAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeAcPowerMultiplierAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -893,10 +719,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeAcPowerDivisorAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeAcPowerDivisorAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -904,23 +727,15 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeOverloadAlarmsMaskAttribute( - value: UInt - ) { + suspend fun writeOverloadAlarmsMaskAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeOverloadAlarmsMaskAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeOverloadAlarmsMaskAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeOverloadAlarmsMaskAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeOverloadAlarmsMaskAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -928,10 +743,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeVoltageOverloadAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeVoltageOverloadAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -939,10 +751,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeCurrentOverloadAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeCurrentOverloadAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -950,23 +759,15 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeAcOverloadAlarmsMaskAttribute( - value: UInt - ) { + suspend fun writeAcOverloadAlarmsMaskAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeAcOverloadAlarmsMaskAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeAcOverloadAlarmsMaskAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeAcOverloadAlarmsMaskAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeAcOverloadAlarmsMaskAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -974,10 +775,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeAcVoltageOverloadAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeAcVoltageOverloadAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -985,10 +783,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeAcCurrentOverloadAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeAcCurrentOverloadAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -996,10 +791,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeAcActivePowerOverloadAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeAcActivePowerOverloadAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -1007,10 +799,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeAcReactivePowerOverloadAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeAcReactivePowerOverloadAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -1018,10 +807,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeAverageRmsOverVoltageAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeAverageRmsOverVoltageAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -1029,10 +815,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeAverageRmsUnderVoltageAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeAverageRmsUnderVoltageAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -1040,10 +823,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRmsExtremeOverVoltageAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeRmsExtremeOverVoltageAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -1051,10 +831,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRmsExtremeUnderVoltageAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeRmsExtremeUnderVoltageAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -1062,10 +839,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRmsVoltageSagAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeRmsVoltageSagAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -1073,10 +847,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRmsVoltageSwellAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeRmsVoltageSwellAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -1084,10 +855,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeLineCurrentPhaseBAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeLineCurrentPhaseBAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -1095,10 +863,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeActiveCurrentPhaseBAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeActiveCurrentPhaseBAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -1106,10 +871,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeReactiveCurrentPhaseBAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeReactiveCurrentPhaseBAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -1117,10 +879,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRmsVoltagePhaseBAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRmsVoltagePhaseBAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -1128,10 +887,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRmsVoltageMinPhaseBAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRmsVoltageMinPhaseBAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -1139,10 +895,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRmsVoltageMaxPhaseBAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRmsVoltageMaxPhaseBAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -1150,10 +903,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRmsCurrentPhaseBAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRmsCurrentPhaseBAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -1161,10 +911,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRmsCurrentMinPhaseBAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRmsCurrentMinPhaseBAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -1172,10 +919,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRmsCurrentMaxPhaseBAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRmsCurrentMaxPhaseBAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -1183,10 +927,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeActivePowerPhaseBAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeActivePowerPhaseBAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -1194,10 +935,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeActivePowerMinPhaseBAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeActivePowerMinPhaseBAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -1205,10 +943,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeActivePowerMaxPhaseBAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeActivePowerMaxPhaseBAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -1216,10 +951,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeReactivePowerPhaseBAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeReactivePowerPhaseBAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -1227,10 +959,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeApparentPowerPhaseBAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeApparentPowerPhaseBAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -1238,10 +967,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribePowerFactorPhaseBAttribute( - minInterval: Int, - maxInterval: Int - ): Byte { + suspend fun subscribePowerFactorPhaseBAttribute(minInterval: Int, maxInterval: Int): Byte { // Implementation needs to be added here } @@ -1326,10 +1052,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeLineCurrentPhaseCAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeLineCurrentPhaseCAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -1337,10 +1060,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeActiveCurrentPhaseCAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeActiveCurrentPhaseCAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -1348,10 +1068,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeReactiveCurrentPhaseCAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeReactiveCurrentPhaseCAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -1359,10 +1076,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRmsVoltagePhaseCAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRmsVoltagePhaseCAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -1370,10 +1084,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRmsVoltageMinPhaseCAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRmsVoltageMinPhaseCAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -1381,10 +1092,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRmsVoltageMaxPhaseCAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRmsVoltageMaxPhaseCAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -1392,10 +1100,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRmsCurrentPhaseCAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRmsCurrentPhaseCAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -1403,10 +1108,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRmsCurrentMinPhaseCAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRmsCurrentMinPhaseCAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -1414,10 +1116,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRmsCurrentMaxPhaseCAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRmsCurrentMaxPhaseCAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -1425,10 +1124,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeActivePowerPhaseCAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeActivePowerPhaseCAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -1436,10 +1132,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeActivePowerMinPhaseCAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeActivePowerMinPhaseCAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -1447,10 +1140,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeActivePowerMaxPhaseCAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeActivePowerMaxPhaseCAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -1458,10 +1148,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeReactivePowerPhaseCAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeReactivePowerPhaseCAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -1469,10 +1156,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeApparentPowerPhaseCAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeApparentPowerPhaseCAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -1480,10 +1164,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribePowerFactorPhaseCAttribute( - minInterval: Int, - maxInterval: Int - ): Byte { + suspend fun subscribePowerFactorPhaseCAttribute(minInterval: Int, maxInterval: Int): Byte { // Implementation needs to be added here } @@ -1590,10 +1271,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -1612,10 +1290,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -1623,10 +1298,7 @@ class ElectricalMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index d5a92df8fedaa8..f4e6ccd52ad9f5 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/EthernetNetworkDiagnosticsCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/EthernetNetworkDiagnosticsCluster.kt @@ -20,35 +20,21 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class EthernetNetworkDiagnosticsCluster(private val endpointId: UShort) { - class PHYRateAttribute( - val value: UInt? - ) + class PHYRateAttribute(val value: UInt?) - class FullDuplexAttribute( - val value: Boolean? - ) + class FullDuplexAttribute(val value: Boolean?) - class CarrierDetectAttribute( - val value: Boolean? - ) + class CarrierDetectAttribute(val value: Boolean?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun resetCounts(timedInvokeTimeoutMs: Int? = null) { + suspend fun resetCounts(timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -60,10 +46,7 @@ class EthernetNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribePHYRateAttribute( - minInterval: Int, - maxInterval: Int - ): PHYRateAttribute { + suspend fun subscribePHYRateAttribute(minInterval: Int, maxInterval: Int): PHYRateAttribute { // Implementation needs to be added here } @@ -82,10 +65,7 @@ class EthernetNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribePacketRxCountAttribute( - minInterval: Int, - maxInterval: Int - ): ULong { + suspend fun subscribePacketRxCountAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } @@ -93,10 +73,7 @@ class EthernetNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribePacketTxCountAttribute( - minInterval: Int, - maxInterval: Int - ): ULong { + suspend fun subscribePacketTxCountAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } @@ -104,10 +81,7 @@ class EthernetNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeTxErrCountAttribute( - minInterval: Int, - maxInterval: Int - ): ULong { + suspend fun subscribeTxErrCountAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } @@ -115,10 +89,7 @@ class EthernetNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeCollisionCountAttribute( - minInterval: Int, - maxInterval: Int - ): ULong { + suspend fun subscribeCollisionCountAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } @@ -126,10 +97,7 @@ class EthernetNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeOverrunCountAttribute( - minInterval: Int, - maxInterval: Int - ): ULong { + suspend fun subscribeOverrunCountAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } @@ -148,10 +116,7 @@ class EthernetNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeTimeSinceResetAttribute( - minInterval: Int, - maxInterval: Int - ): ULong { + suspend fun subscribeTimeSinceResetAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } @@ -181,10 +146,7 @@ class EthernetNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -203,10 +165,7 @@ class EthernetNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -214,10 +173,7 @@ class EthernetNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 146e10340b24ea..8b2a215e951bdc 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FanControlCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FanControlCluster.kt @@ -20,31 +20,24 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class FanControlCluster(private val endpointId: UShort) { - class PercentSettingAttribute( - val value: UByte? - ) + class PercentSettingAttribute(val value: UByte?) - class SpeedSettingAttribute( - val value: UByte? - ) + class SpeedSettingAttribute(val value: UByte?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun step(direction: UInt, wrap: Boolean?, lowestOff: Boolean?, timedInvokeTimeoutMs: Int? = null) { + suspend fun step( + direction: UInt, + wrap: Boolean?, + lowestOff: Boolean?, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -56,23 +49,15 @@ class FanControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeFanModeAttribute( - value: UInt - ) { + suspend fun writeFanModeAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeFanModeAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeFanModeAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeFanModeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeFanModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -80,23 +65,15 @@ class FanControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeFanModeSequenceAttribute( - value: UInt - ) { + suspend fun writeFanModeSequenceAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeFanModeSequenceAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeFanModeSequenceAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeFanModeSequenceAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeFanModeSequenceAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -104,16 +81,11 @@ class FanControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writePercentSettingAttribute( - value: UByte - ) { + suspend fun writePercentSettingAttribute(value: UByte) { // Implementation needs to be added here } - suspend fun writePercentSettingAttribute( - value: UByte, - timedWriteTimeoutMs: Int - ) { + suspend fun writePercentSettingAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -128,10 +100,7 @@ class FanControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribePercentCurrentAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribePercentCurrentAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -139,10 +108,7 @@ class FanControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeSpeedMaxAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeSpeedMaxAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -150,16 +116,11 @@ class FanControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeSpeedSettingAttribute( - value: UByte - ) { + suspend fun writeSpeedSettingAttribute(value: UByte) { // Implementation needs to be added here } - suspend fun writeSpeedSettingAttribute( - value: UByte, - timedWriteTimeoutMs: Int - ) { + suspend fun writeSpeedSettingAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -174,10 +135,7 @@ class FanControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeSpeedCurrentAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeSpeedCurrentAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -185,10 +143,7 @@ class FanControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRockSupportAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeRockSupportAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -196,23 +151,15 @@ class FanControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeRockSettingAttribute( - value: UInt - ) { + suspend fun writeRockSettingAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeRockSettingAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeRockSettingAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeRockSettingAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeRockSettingAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -220,10 +167,7 @@ class FanControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeWindSupportAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeWindSupportAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -231,23 +175,15 @@ class FanControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeWindSettingAttribute( - value: UInt - ) { + suspend fun writeWindSettingAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeWindSettingAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeWindSettingAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeWindSettingAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeWindSettingAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -255,23 +191,15 @@ class FanControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeAirflowDirectionAttribute( - value: UInt - ) { + suspend fun writeAirflowDirectionAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeAirflowDirectionAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeAirflowDirectionAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeAirflowDirectionAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeAirflowDirectionAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -301,10 +229,7 @@ class FanControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -323,10 +248,7 @@ class FanControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -334,10 +256,7 @@ class FanControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 051dfd856c0b4e..2cf2566e7e306f 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FaultInjectionCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FaultInjectionCluster.kt @@ -20,23 +20,22 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class FaultInjectionCluster(private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun failAtFault(type: UInt, id: UInt, numCallsToSkip: UInt, numCallsToFail: UInt, takeMutex: Boolean, timedInvokeTimeoutMs: Int? = null) { + suspend fun failAtFault( + type: UInt, + id: UInt, + numCallsToSkip: UInt, + numCallsToFail: UInt, + takeMutex: Boolean, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -44,7 +43,12 @@ class FaultInjectionCluster(private val endpointId: UShort) { } } - suspend fun failRandomlyAtFault(type: UInt, id: UInt, percentage: UByte, timedInvokeTimeoutMs: Int? = null) { + suspend fun failRandomlyAtFault( + type: UInt, + id: UInt, + percentage: UByte, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -78,10 +82,7 @@ class FaultInjectionCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -100,10 +101,7 @@ class FaultInjectionCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -111,10 +109,7 @@ class FaultInjectionCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 3770c190698e0e..f30284e3d163c5 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FixedLabelCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FixedLabelCluster.kt @@ -20,34 +20,21 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class FixedLabelCluster(private val endpointId: UShort) { - class LabelListAttribute( - val value: List - ) + class LabelListAttribute(val value: List) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readLabelListAttribute(): LabelListAttribute { // Implementation needs to be added here } - suspend fun subscribeLabelListAttribute( - minInterval: Int, - maxInterval: Int - ): LabelListAttribute { + suspend fun subscribeLabelListAttribute(minInterval: Int, maxInterval: Int): LabelListAttribute { // Implementation needs to be added here } @@ -77,10 +64,7 @@ class FixedLabelCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -99,10 +83,7 @@ class FixedLabelCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -110,10 +91,7 @@ class FixedLabelCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 4847af99d546d0..9c8cc3dced9b0d 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FlowMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FlowMeasurementCluster.kt @@ -20,33 +20,19 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class FlowMeasurementCluster(private val endpointId: UShort) { - class MeasuredValueAttribute( - val value: UShort? - ) + class MeasuredValueAttribute(val value: UShort?) - class MinMeasuredValueAttribute( - val value: UShort? - ) + class MinMeasuredValueAttribute(val value: UShort?) - class MaxMeasuredValueAttribute( - val value: UShort? - ) + class MaxMeasuredValueAttribute(val value: UShort?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute { // Implementation needs to be added here @@ -85,10 +71,7 @@ class FlowMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeToleranceAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeToleranceAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -118,10 +101,7 @@ class FlowMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -140,10 +120,7 @@ class FlowMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -151,10 +128,7 @@ class FlowMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 547a64d3555c8b..04ec12d3cbaed8 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FormaldehydeConcentrationMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FormaldehydeConcentrationMeasurementCluster.kt @@ -20,41 +20,23 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class FormaldehydeConcentrationMeasurementCluster(private val endpointId: UShort) { - class MeasuredValueAttribute( - val value: Float? - ) + class MeasuredValueAttribute(val value: Float?) - class MinMeasuredValueAttribute( - val value: Float? - ) + class MinMeasuredValueAttribute(val value: Float?) - class MaxMeasuredValueAttribute( - val value: Float? - ) + class MaxMeasuredValueAttribute(val value: Float?) - class PeakMeasuredValueAttribute( - val value: Float? - ) + class PeakMeasuredValueAttribute(val value: Float?) - class AverageMeasuredValueAttribute( - val value: Float? - ) + class AverageMeasuredValueAttribute(val value: Float?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute { // Implementation needs to be added here @@ -104,10 +86,7 @@ class FormaldehydeConcentrationMeasurementCluster(private val endpointId: UShort // Implementation needs to be added here } - suspend fun subscribePeakMeasuredValueWindowAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -137,10 +116,7 @@ class FormaldehydeConcentrationMeasurementCluster(private val endpointId: UShort // Implementation needs to be added here } - suspend fun subscribeUncertaintyAttribute( - minInterval: Int, - maxInterval: Int - ): Float { + suspend fun subscribeUncertaintyAttribute(minInterval: Int, maxInterval: Int): Float { // Implementation needs to be added here } @@ -148,10 +124,7 @@ class FormaldehydeConcentrationMeasurementCluster(private val endpointId: UShort // Implementation needs to be added here } - suspend fun subscribeMeasurementUnitAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -159,10 +132,7 @@ class FormaldehydeConcentrationMeasurementCluster(private val endpointId: UShort // Implementation needs to be added here } - suspend fun subscribeMeasurementMediumAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -170,10 +140,7 @@ class FormaldehydeConcentrationMeasurementCluster(private val endpointId: UShort // Implementation needs to be added here } - suspend fun subscribeLevelValueAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -203,10 +170,7 @@ class FormaldehydeConcentrationMeasurementCluster(private val endpointId: UShort // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -225,10 +189,7 @@ class FormaldehydeConcentrationMeasurementCluster(private val endpointId: UShort // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -236,10 +197,7 @@ class FormaldehydeConcentrationMeasurementCluster(private val endpointId: UShort // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index c978f40bfac7d9..c9687cf738063f 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GeneralCommissioningCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GeneralCommissioningCluster.kt @@ -20,42 +20,29 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class GeneralCommissioningCluster(private val endpointId: UShort) { - class ArmFailSafeResponse( - val errorCode: UInt, - val debugText: String - ) + class ArmFailSafeResponse(val errorCode: UInt, val debugText: String) - class SetRegulatoryConfigResponse( - val errorCode: UInt, - val debugText: String - ) + class SetRegulatoryConfigResponse(val errorCode: UInt, val debugText: String) - class CommissioningCompleteResponse( - val errorCode: UInt, - val debugText: String - ) + class CommissioningCompleteResponse(val errorCode: UInt, val debugText: String) class BasicCommissioningInfoAttribute( val value: GeneralCommissioningClusterBasicCommissioningInfo ) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun armFailSafe(expiryLengthSeconds: UShort, breadcrumb: ULong, timedInvokeTimeoutMs: Int? = null): ArmFailSafeResponse { + suspend fun armFailSafe( + expiryLengthSeconds: UShort, + breadcrumb: ULong, + timedInvokeTimeoutMs: Int? = null + ): ArmFailSafeResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -63,7 +50,12 @@ class GeneralCommissioningCluster(private val endpointId: UShort) { } } - suspend fun setRegulatoryConfig(newRegulatoryConfig: UInt, countryCode: String, breadcrumb: ULong, timedInvokeTimeoutMs: Int? = null): SetRegulatoryConfigResponse { + suspend fun setRegulatoryConfig( + newRegulatoryConfig: UInt, + countryCode: String, + breadcrumb: ULong, + timedInvokeTimeoutMs: Int? = null + ): SetRegulatoryConfigResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -71,7 +63,9 @@ class GeneralCommissioningCluster(private val endpointId: UShort) { } } - suspend fun commissioningComplete(timedInvokeTimeoutMs: Int? = null): CommissioningCompleteResponse { + suspend fun commissioningComplete( + timedInvokeTimeoutMs: Int? = null + ): CommissioningCompleteResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -83,23 +77,15 @@ class GeneralCommissioningCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeBreadcrumbAttribute( - value: ULong - ) { + suspend fun writeBreadcrumbAttribute(value: ULong) { // Implementation needs to be added here } - suspend fun writeBreadcrumbAttribute( - value: ULong, - timedWriteTimeoutMs: Int - ) { + suspend fun writeBreadcrumbAttribute(value: ULong, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeBreadcrumbAttribute( - minInterval: Int, - maxInterval: Int - ): ULong { + suspend fun subscribeBreadcrumbAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } @@ -118,10 +104,7 @@ class GeneralCommissioningCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRegulatoryConfigAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeRegulatoryConfigAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -129,10 +112,7 @@ class GeneralCommissioningCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeLocationCapabilityAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeLocationCapabilityAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -173,10 +153,7 @@ class GeneralCommissioningCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -195,10 +172,7 @@ class GeneralCommissioningCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -206,10 +180,7 @@ class GeneralCommissioningCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 20010a07261768..5d6b2222c717f7 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GeneralDiagnosticsCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GeneralDiagnosticsCluster.kt @@ -20,44 +20,29 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class GeneralDiagnosticsCluster(private val endpointId: UShort) { - class TimeSnapshotResponse( - val systemTimeUs: ULong, - val UTCTimeUs: ULong? - ) + class TimeSnapshotResponse(val systemTimeUs: ULong, val UTCTimeUs: ULong?) - class NetworkInterfacesAttribute( - val value: List - ) + class NetworkInterfacesAttribute(val value: List) - class ActiveHardwareFaultsAttribute( - val value: List? - ) + class ActiveHardwareFaultsAttribute(val value: List?) - class ActiveRadioFaultsAttribute( - val value: List? - ) + class ActiveRadioFaultsAttribute(val value: List?) - class ActiveNetworkFaultsAttribute( - val value: List? - ) + class ActiveNetworkFaultsAttribute(val value: List?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun testEventTrigger(enableKey: ByteArray, eventTrigger: ULong, timedInvokeTimeoutMs: Int? = null) { + suspend fun testEventTrigger( + enableKey: ByteArray, + eventTrigger: ULong, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -65,7 +50,7 @@ class GeneralDiagnosticsCluster(private val endpointId: UShort) { } } - suspend fun timeSnapshot(timedInvokeTimeoutMs: Int? = null): TimeSnapshotResponse { + suspend fun timeSnapshot(timedInvokeTimeoutMs: Int? = null): TimeSnapshotResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -88,10 +73,7 @@ class GeneralDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRebootCountAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRebootCountAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -99,10 +81,7 @@ class GeneralDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeUpTimeAttribute( - minInterval: Int, - maxInterval: Int - ): ULong { + suspend fun subscribeUpTimeAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } @@ -110,10 +89,7 @@ class GeneralDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeTotalOperationalHoursAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeTotalOperationalHoursAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -121,10 +97,7 @@ class GeneralDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeBootReasonAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeBootReasonAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -198,10 +171,7 @@ class GeneralDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -220,10 +190,7 @@ class GeneralDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -231,10 +198,7 @@ class GeneralDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 2eb6b517940fb6..3473cc8ef73ce6 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GroupKeyManagementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GroupKeyManagementCluster.kt @@ -20,39 +20,26 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class GroupKeyManagementCluster(private val endpointId: UShort) { - class KeySetReadResponse( - val groupKeySet: GroupKeyManagementClusterGroupKeySetStruct - ) + class KeySetReadResponse(val groupKeySet: GroupKeyManagementClusterGroupKeySetStruct) - class KeySetReadAllIndicesResponse( - val groupKeySetIDs: List - ) + class KeySetReadAllIndicesResponse(val groupKeySetIDs: List) - class GroupKeyMapAttribute( - val value: List - ) + class GroupKeyMapAttribute(val value: List) - class GroupTableAttribute( - val value: List - ) + class GroupTableAttribute(val value: List) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun keySetWrite(groupKeySet: GroupKeyManagementClusterGroupKeySetStruct, timedInvokeTimeoutMs: Int? = null) { + suspend fun keySetWrite( + groupKeySet: GroupKeyManagementClusterGroupKeySetStruct, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -60,7 +47,10 @@ class GroupKeyManagementCluster(private val endpointId: UShort) { } } - suspend fun keySetRead(groupKeySetID: UShort, timedInvokeTimeoutMs: Int? = null): KeySetReadResponse { + suspend fun keySetRead( + groupKeySetID: UShort, + timedInvokeTimeoutMs: Int? = null + ): KeySetReadResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -68,7 +58,7 @@ class GroupKeyManagementCluster(private val endpointId: UShort) { } } - suspend fun keySetRemove(groupKeySetID: UShort, timedInvokeTimeoutMs: Int? = null) { + suspend fun keySetRemove(groupKeySetID: UShort, timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -76,7 +66,9 @@ class GroupKeyManagementCluster(private val endpointId: UShort) { } } - suspend fun keySetReadAllIndices(timedInvokeTimeoutMs: Int? = null): KeySetReadAllIndicesResponse { + suspend fun keySetReadAllIndices( + timedInvokeTimeoutMs: Int? = null + ): KeySetReadAllIndicesResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -94,10 +86,7 @@ class GroupKeyManagementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - - suspend fun writeGroupKeyMapAttribute( - value: List - ) { + suspend fun writeGroupKeyMapAttribute(value: List) { // Implementation needs to be added here } @@ -125,7 +114,6 @@ class GroupKeyManagementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeGroupTableAttribute( minInterval: Int, maxInterval: Int @@ -137,10 +125,7 @@ class GroupKeyManagementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeMaxGroupsPerFabricAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeMaxGroupsPerFabricAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -148,10 +133,7 @@ class GroupKeyManagementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeMaxGroupKeysPerFabricAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeMaxGroupKeysPerFabricAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -181,10 +163,7 @@ class GroupKeyManagementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -203,10 +182,7 @@ class GroupKeyManagementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -214,10 +190,7 @@ class GroupKeyManagementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index da1d50b058e095..c528fc0c08eb69 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GroupsCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GroupsCluster.kt @@ -20,44 +20,27 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class GroupsCluster(private val endpointId: UShort) { - class AddGroupResponse( - val status: UInt, - val groupID: UShort - ) - - class ViewGroupResponse( - val status: UInt, - val groupID: UShort, - val groupName: String - ) - - class GetGroupMembershipResponse( - val capacity: UByte?, - val groupList: List - ) - - class RemoveGroupResponse( - val status: UInt, - val groupID: UShort - ) - - class GeneratedCommandListAttribute( - val value: List - ) - - class AcceptedCommandListAttribute( - val value: List - ) - - class EventListAttribute( - val value: List - ) - - class AttributeListAttribute( - val value: List - ) - - suspend fun addGroup(groupID: UShort, groupName: String, timedInvokeTimeoutMs: Int? = null): AddGroupResponse { + class AddGroupResponse(val status: UInt, val groupID: UShort) + + class ViewGroupResponse(val status: UInt, val groupID: UShort, val groupName: String) + + class GetGroupMembershipResponse(val capacity: UByte?, val groupList: List) + + class RemoveGroupResponse(val status: UInt, val groupID: UShort) + + class GeneratedCommandListAttribute(val value: List) + + class AcceptedCommandListAttribute(val value: List) + + class EventListAttribute(val value: List) + + class AttributeListAttribute(val value: List) + + suspend fun addGroup( + groupID: UShort, + groupName: String, + timedInvokeTimeoutMs: Int? = null + ): AddGroupResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -65,7 +48,7 @@ class GroupsCluster(private val endpointId: UShort) { } } - suspend fun viewGroup(groupID: UShort, timedInvokeTimeoutMs: Int? = null): ViewGroupResponse { + suspend fun viewGroup(groupID: UShort, timedInvokeTimeoutMs: Int? = null): ViewGroupResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -73,7 +56,10 @@ class GroupsCluster(private val endpointId: UShort) { } } - suspend fun getGroupMembership(groupList: List, timedInvokeTimeoutMs: Int? = null): GetGroupMembershipResponse { + suspend fun getGroupMembership( + groupList: List, + timedInvokeTimeoutMs: Int? = null + ): GetGroupMembershipResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -81,7 +67,7 @@ class GroupsCluster(private val endpointId: UShort) { } } - suspend fun removeGroup(groupID: UShort, timedInvokeTimeoutMs: Int? = null): RemoveGroupResponse { + suspend fun removeGroup(groupID: UShort, timedInvokeTimeoutMs: Int? = null): RemoveGroupResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -89,7 +75,7 @@ class GroupsCluster(private val endpointId: UShort) { } } - suspend fun removeAllGroups(timedInvokeTimeoutMs: Int? = null) { + suspend fun removeAllGroups(timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -97,7 +83,11 @@ class GroupsCluster(private val endpointId: UShort) { } } - suspend fun addGroupIfIdentifying(groupID: UShort, groupName: String, timedInvokeTimeoutMs: Int? = null) { + suspend fun addGroupIfIdentifying( + groupID: UShort, + groupName: String, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -109,10 +99,7 @@ class GroupsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeNameSupportAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeNameSupportAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -142,10 +129,7 @@ class GroupsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -164,10 +148,7 @@ class GroupsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -175,10 +156,7 @@ class GroupsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 332656b30a7d0d..1dfee41a2c6b9e 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/HepaFilterMonitoringCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/HepaFilterMonitoringCluster.kt @@ -20,31 +20,21 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class HepaFilterMonitoringCluster(private val endpointId: UShort) { - class LastChangedTimeAttribute( - val value: UInt? - ) + class LastChangedTimeAttribute(val value: UInt?) class ReplacementProductListAttribute( val value: List? ) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun resetCondition(timedInvokeTimeoutMs: Int? = null) { + suspend fun resetCondition(timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -56,10 +46,7 @@ class HepaFilterMonitoringCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeConditionAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeConditionAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -67,10 +54,7 @@ class HepaFilterMonitoringCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeDegradationDirectionAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeDegradationDirectionAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -78,10 +62,7 @@ class HepaFilterMonitoringCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeChangeIndicationAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeChangeIndicationAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -89,10 +70,7 @@ class HepaFilterMonitoringCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeInPlaceIndicatorAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeInPlaceIndicatorAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -100,16 +78,11 @@ class HepaFilterMonitoringCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeLastChangedTimeAttribute( - value: UInt - ) { + suspend fun writeLastChangedTimeAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeLastChangedTimeAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeLastChangedTimeAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -157,10 +130,7 @@ class HepaFilterMonitoringCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -179,10 +149,7 @@ class HepaFilterMonitoringCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -190,10 +157,7 @@ class HepaFilterMonitoringCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index bb0408f13c1503..8c64f584032d98 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IcdManagementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IcdManagementCluster.kt @@ -20,31 +20,27 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class IcdManagementCluster(private val endpointId: UShort) { - class RegisterClientResponse( - val ICDCounter: UInt - ) + class RegisterClientResponse(val ICDCounter: UInt) class RegisteredClientsAttribute( val value: List? ) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun registerClient(checkInNodeID: ULong, monitoredSubject: ULong, key: ByteArray, verificationKey: ByteArray?, timedInvokeTimeoutMs: Int? = null): RegisterClientResponse { + suspend fun registerClient( + checkInNodeID: ULong, + monitoredSubject: ULong, + key: ByteArray, + verificationKey: ByteArray?, + timedInvokeTimeoutMs: Int? = null + ): RegisterClientResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -52,7 +48,11 @@ class IcdManagementCluster(private val endpointId: UShort) { } } - suspend fun unregisterClient(checkInNodeID: ULong, verificationKey: ByteArray?, timedInvokeTimeoutMs: Int? = null) { + suspend fun unregisterClient( + checkInNodeID: ULong, + verificationKey: ByteArray?, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -60,7 +60,7 @@ class IcdManagementCluster(private val endpointId: UShort) { } } - suspend fun stayActiveRequest(timedInvokeTimeoutMs: Int? = null) { + suspend fun stayActiveRequest(timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -72,10 +72,7 @@ class IcdManagementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeIdleModeDurationAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeIdleModeDurationAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -83,10 +80,7 @@ class IcdManagementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeActiveModeDurationAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeActiveModeDurationAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -94,10 +88,7 @@ class IcdManagementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeActiveModeThresholdAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeActiveModeThresholdAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -111,7 +102,6 @@ class IcdManagementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRegisteredClientsAttribute( minInterval: Int, maxInterval: Int @@ -123,10 +113,7 @@ class IcdManagementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeICDCounterAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeICDCounterAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -189,10 +176,7 @@ class IcdManagementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -211,10 +195,7 @@ class IcdManagementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -222,10 +203,7 @@ class IcdManagementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index fad8bf4a249ac0..61a686849e5fc1 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IdentifyCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IdentifyCluster.kt @@ -20,23 +20,15 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class IdentifyCluster(private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun identify(identifyTime: UShort, timedInvokeTimeoutMs: Int? = null) { + suspend fun identify(identifyTime: UShort, timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -44,7 +36,11 @@ class IdentifyCluster(private val endpointId: UShort) { } } - suspend fun triggerEffect(effectIdentifier: UInt, effectVariant: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun triggerEffect( + effectIdentifier: UInt, + effectVariant: UInt, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -56,23 +52,15 @@ class IdentifyCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeIdentifyTimeAttribute( - value: UShort - ) { + suspend fun writeIdentifyTimeAttribute(value: UShort) { // Implementation needs to be added here } - suspend fun writeIdentifyTimeAttribute( - value: UShort, - timedWriteTimeoutMs: Int - ) { + suspend fun writeIdentifyTimeAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeIdentifyTimeAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeIdentifyTimeAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -80,10 +68,7 @@ class IdentifyCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeIdentifyTypeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeIdentifyTypeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -113,10 +98,7 @@ class IdentifyCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -135,10 +117,7 @@ class IdentifyCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -146,10 +125,7 @@ class IdentifyCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 1922fc215cf20a..da5973e5a0a2f1 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IlluminanceMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IlluminanceMeasurementCluster.kt @@ -20,37 +20,21 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class IlluminanceMeasurementCluster(private val endpointId: UShort) { - class MeasuredValueAttribute( - val value: UShort? - ) + class MeasuredValueAttribute(val value: UShort?) - class MinMeasuredValueAttribute( - val value: UShort? - ) + class MinMeasuredValueAttribute(val value: UShort?) - class MaxMeasuredValueAttribute( - val value: UShort? - ) + class MaxMeasuredValueAttribute(val value: UShort?) - class LightSensorTypeAttribute( - val value: UInt? - ) + class LightSensorTypeAttribute(val value: UInt?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute { // Implementation needs to be added here @@ -89,10 +73,7 @@ class IlluminanceMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeToleranceAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeToleranceAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -133,10 +114,7 @@ class IlluminanceMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -155,10 +133,7 @@ class IlluminanceMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -166,10 +141,7 @@ class IlluminanceMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 880f8fe72739dd..adcdbc1da8c654 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/KeypadInputCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/KeypadInputCluster.kt @@ -20,27 +20,17 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class KeypadInputCluster(private val endpointId: UShort) { - class SendKeyResponse( - val status: UInt - ) + class SendKeyResponse(val status: UInt) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun sendKey(keyCode: UInt, timedInvokeTimeoutMs: Int? = null): SendKeyResponse { + suspend fun sendKey(keyCode: UInt, timedInvokeTimeoutMs: Int? = null): SendKeyResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -74,10 +64,7 @@ class KeypadInputCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -96,10 +83,7 @@ class KeypadInputCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -107,10 +91,7 @@ class KeypadInputCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index d89db36d10d429..f9c4ef50a5caf4 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryWasherControlsCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryWasherControlsCluster.kt @@ -20,33 +20,19 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class LaundryWasherControlsCluster(private val endpointId: UShort) { - class SpinSpeedsAttribute( - val value: List? - ) + class SpinSpeedsAttribute(val value: List?) - class SpinSpeedCurrentAttribute( - val value: UByte? - ) + class SpinSpeedCurrentAttribute(val value: UByte?) - class SupportedRinsesAttribute( - val value: List? - ) + class SupportedRinsesAttribute(val value: List?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readSpinSpeedsAttribute(): SpinSpeedsAttribute { // Implementation needs to be added here @@ -63,16 +49,11 @@ class LaundryWasherControlsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeSpinSpeedCurrentAttribute( - value: UByte - ) { + suspend fun writeSpinSpeedCurrentAttribute(value: UByte) { // Implementation needs to be added here } - suspend fun writeSpinSpeedCurrentAttribute( - value: UByte, - timedWriteTimeoutMs: Int - ) { + suspend fun writeSpinSpeedCurrentAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -87,23 +68,15 @@ class LaundryWasherControlsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeNumberOfRinsesAttribute( - value: UInt - ) { + suspend fun writeNumberOfRinsesAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeNumberOfRinsesAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNumberOfRinsesAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeNumberOfRinsesAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeNumberOfRinsesAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -144,10 +117,7 @@ class LaundryWasherControlsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -166,10 +136,7 @@ class LaundryWasherControlsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -177,10 +144,7 @@ class LaundryWasherControlsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index dd83ca28d1f3e5..a16b8e87a3ec37 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryWasherModeCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryWasherModeCluster.kt @@ -20,40 +20,26 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class LaundryWasherModeCluster(private val endpointId: UShort) { - class ChangeToModeResponse( - val status: UInt, - val statusText: String? - ) + class ChangeToModeResponse(val status: UInt, val statusText: String?) - class SupportedModesAttribute( - val value: List - ) + class SupportedModesAttribute(val value: List) - class StartUpModeAttribute( - val value: UByte? - ) + class StartUpModeAttribute(val value: UByte?) - class OnModeAttribute( - val value: UByte? - ) + class OnModeAttribute(val value: UByte?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun changeToMode(newMode: UByte, timedInvokeTimeoutMs: Int? = null): ChangeToModeResponse { + suspend fun changeToMode( + newMode: UByte, + timedInvokeTimeoutMs: Int? = null + ): ChangeToModeResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -76,10 +62,7 @@ class LaundryWasherModeCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeCurrentModeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeCurrentModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -87,16 +70,11 @@ class LaundryWasherModeCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeStartUpModeAttribute( - value: UByte - ) { + suspend fun writeStartUpModeAttribute(value: UByte) { // Implementation needs to be added here } - suspend fun writeStartUpModeAttribute( - value: UByte, - timedWriteTimeoutMs: Int - ) { + suspend fun writeStartUpModeAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -111,23 +89,15 @@ class LaundryWasherModeCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeOnModeAttribute( - value: UByte - ) { + suspend fun writeOnModeAttribute(value: UByte) { // Implementation needs to be added here } - suspend fun writeOnModeAttribute( - value: UByte, - timedWriteTimeoutMs: Int - ) { + suspend fun writeOnModeAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeOnModeAttribute( - minInterval: Int, - maxInterval: Int - ): OnModeAttribute { + suspend fun subscribeOnModeAttribute(minInterval: Int, maxInterval: Int): OnModeAttribute { // Implementation needs to be added here } @@ -157,10 +127,7 @@ class LaundryWasherModeCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -179,10 +146,7 @@ class LaundryWasherModeCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -190,10 +154,7 @@ class LaundryWasherModeCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index c00e420f7e1375..1e5c27e024c7c0 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LevelControlCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LevelControlCluster.kt @@ -20,47 +20,33 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class LevelControlCluster(private val endpointId: UShort) { - class CurrentLevelAttribute( - val value: UByte? - ) + class CurrentLevelAttribute(val value: UByte?) - class OnLevelAttribute( - val value: UByte? - ) + class OnLevelAttribute(val value: UByte?) - class OnTransitionTimeAttribute( - val value: UShort? - ) + class OnTransitionTimeAttribute(val value: UShort?) - class OffTransitionTimeAttribute( - val value: UShort? - ) + class OffTransitionTimeAttribute(val value: UShort?) - class DefaultMoveRateAttribute( - val value: UByte? - ) + class DefaultMoveRateAttribute(val value: UByte?) - class StartUpCurrentLevelAttribute( - val value: UByte? - ) + class StartUpCurrentLevelAttribute(val value: UByte?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun moveToLevel(level: UByte, transitionTime: UShort?, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun moveToLevel( + level: UByte, + transitionTime: UShort?, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -68,7 +54,13 @@ class LevelControlCluster(private val endpointId: UShort) { } } - suspend fun move(moveMode: UInt, rate: UByte?, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun move( + moveMode: UInt, + rate: UByte?, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -76,7 +68,14 @@ class LevelControlCluster(private val endpointId: UShort) { } } - suspend fun step(stepMode: UInt, stepSize: UByte, transitionTime: UShort?, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun step( + stepMode: UInt, + stepSize: UByte, + transitionTime: UShort?, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -84,7 +83,7 @@ class LevelControlCluster(private val endpointId: UShort) { } } - suspend fun stop(optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun stop(optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -92,7 +91,13 @@ class LevelControlCluster(private val endpointId: UShort) { } } - suspend fun moveToLevelWithOnOff(level: UByte, transitionTime: UShort?, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun moveToLevelWithOnOff( + level: UByte, + transitionTime: UShort?, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -100,7 +105,13 @@ class LevelControlCluster(private val endpointId: UShort) { } } - suspend fun moveWithOnOff(moveMode: UInt, rate: UByte?, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun moveWithOnOff( + moveMode: UInt, + rate: UByte?, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -108,7 +119,14 @@ class LevelControlCluster(private val endpointId: UShort) { } } - suspend fun stepWithOnOff(stepMode: UInt, stepSize: UByte, transitionTime: UShort?, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun stepWithOnOff( + stepMode: UInt, + stepSize: UByte, + transitionTime: UShort?, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -116,7 +134,11 @@ class LevelControlCluster(private val endpointId: UShort) { } } - suspend fun stopWithOnOff(optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun stopWithOnOff( + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -124,7 +146,7 @@ class LevelControlCluster(private val endpointId: UShort) { } } - suspend fun moveToClosestFrequency(frequency: UShort, timedInvokeTimeoutMs: Int? = null) { + suspend fun moveToClosestFrequency(frequency: UShort, timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -147,10 +169,7 @@ class LevelControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRemainingTimeAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRemainingTimeAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -158,10 +177,7 @@ class LevelControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeMinLevelAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMinLevelAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -169,10 +185,7 @@ class LevelControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeMaxLevelAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMaxLevelAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -180,10 +193,7 @@ class LevelControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeCurrentFrequencyAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeCurrentFrequencyAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -191,10 +201,7 @@ class LevelControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeMinFrequencyAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeMinFrequencyAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -202,10 +209,7 @@ class LevelControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeMaxFrequencyAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeMaxFrequencyAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -213,23 +217,15 @@ class LevelControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeOptionsAttribute( - value: UInt - ) { + suspend fun writeOptionsAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeOptionsAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeOptionsAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeOptionsAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeOptionsAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -237,23 +233,15 @@ class LevelControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeOnOffTransitionTimeAttribute( - value: UShort - ) { + suspend fun writeOnOffTransitionTimeAttribute(value: UShort) { // Implementation needs to be added here } - suspend fun writeOnOffTransitionTimeAttribute( - value: UShort, - timedWriteTimeoutMs: Int - ) { + suspend fun writeOnOffTransitionTimeAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeOnOffTransitionTimeAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeOnOffTransitionTimeAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -261,23 +249,15 @@ class LevelControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeOnLevelAttribute( - value: UByte - ) { + suspend fun writeOnLevelAttribute(value: UByte) { // Implementation needs to be added here } - suspend fun writeOnLevelAttribute( - value: UByte, - timedWriteTimeoutMs: Int - ) { + suspend fun writeOnLevelAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeOnLevelAttribute( - minInterval: Int, - maxInterval: Int - ): OnLevelAttribute { + suspend fun subscribeOnLevelAttribute(minInterval: Int, maxInterval: Int): OnLevelAttribute { // Implementation needs to be added here } @@ -285,16 +265,11 @@ class LevelControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeOnTransitionTimeAttribute( - value: UShort - ) { + suspend fun writeOnTransitionTimeAttribute(value: UShort) { // Implementation needs to be added here } - suspend fun writeOnTransitionTimeAttribute( - value: UShort, - timedWriteTimeoutMs: Int - ) { + suspend fun writeOnTransitionTimeAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -309,16 +284,11 @@ class LevelControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeOffTransitionTimeAttribute( - value: UShort - ) { + suspend fun writeOffTransitionTimeAttribute(value: UShort) { // Implementation needs to be added here } - suspend fun writeOffTransitionTimeAttribute( - value: UShort, - timedWriteTimeoutMs: Int - ) { + suspend fun writeOffTransitionTimeAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -333,16 +303,11 @@ class LevelControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeDefaultMoveRateAttribute( - value: UByte - ) { + suspend fun writeDefaultMoveRateAttribute(value: UByte) { // Implementation needs to be added here } - suspend fun writeDefaultMoveRateAttribute( - value: UByte, - timedWriteTimeoutMs: Int - ) { + suspend fun writeDefaultMoveRateAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -357,16 +322,11 @@ class LevelControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeStartUpCurrentLevelAttribute( - value: UByte - ) { + suspend fun writeStartUpCurrentLevelAttribute(value: UByte) { // Implementation needs to be added here } - suspend fun writeStartUpCurrentLevelAttribute( - value: UByte, - timedWriteTimeoutMs: Int - ) { + suspend fun writeStartUpCurrentLevelAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -403,10 +363,7 @@ class LevelControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -425,10 +382,7 @@ class LevelControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -436,10 +390,7 @@ class LevelControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 5e3f635606f61a..ac06a298de1736 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LocalizationConfigurationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LocalizationConfigurationCluster.kt @@ -20,47 +20,29 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class LocalizationConfigurationCluster(private val endpointId: UShort) { - class SupportedLocalesAttribute( - val value: List - ) + class SupportedLocalesAttribute(val value: List) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readActiveLocaleAttribute(): CharString { // Implementation needs to be added here } - suspend fun writeActiveLocaleAttribute( - value: String - ) { + suspend fun writeActiveLocaleAttribute(value: String) { // Implementation needs to be added here } - suspend fun writeActiveLocaleAttribute( - value: String, - timedWriteTimeoutMs: Int - ) { + suspend fun writeActiveLocaleAttribute(value: String, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeActiveLocaleAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeActiveLocaleAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -101,10 +83,7 @@ class LocalizationConfigurationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -123,10 +102,7 @@ class LocalizationConfigurationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -134,10 +110,7 @@ class LocalizationConfigurationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index b65763a1c463b4..6881db9d08dffb 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LowPowerCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LowPowerCluster.kt @@ -20,23 +20,15 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class LowPowerCluster(private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun sleep(timedInvokeTimeoutMs: Int? = null) { + suspend fun sleep(timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -70,10 +62,7 @@ class LowPowerCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -92,10 +81,7 @@ class LowPowerCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -103,10 +89,7 @@ class LowPowerCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index a4b730d7299278..b89cd9bf964404 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MediaInputCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MediaInputCluster.kt @@ -20,27 +20,17 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class MediaInputCluster(private val endpointId: UShort) { - class InputListAttribute( - val value: List - ) + class InputListAttribute(val value: List) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun selectInput(index: UByte, timedInvokeTimeoutMs: Int? = null) { + suspend fun selectInput(index: UByte, timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -48,7 +38,7 @@ class MediaInputCluster(private val endpointId: UShort) { } } - suspend fun showInputStatus(timedInvokeTimeoutMs: Int? = null) { + suspend fun showInputStatus(timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -56,7 +46,7 @@ class MediaInputCluster(private val endpointId: UShort) { } } - suspend fun hideInputStatus(timedInvokeTimeoutMs: Int? = null) { + suspend fun hideInputStatus(timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -64,7 +54,7 @@ class MediaInputCluster(private val endpointId: UShort) { } } - suspend fun renameInput(index: UByte, name: String, timedInvokeTimeoutMs: Int? = null) { + suspend fun renameInput(index: UByte, name: String, timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -76,10 +66,7 @@ class MediaInputCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeInputListAttribute( - minInterval: Int, - maxInterval: Int - ): InputListAttribute { + suspend fun subscribeInputListAttribute(minInterval: Int, maxInterval: Int): InputListAttribute { // Implementation needs to be added here } @@ -87,10 +74,7 @@ class MediaInputCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeCurrentInputAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeCurrentInputAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -120,10 +104,7 @@ class MediaInputCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -142,10 +123,7 @@ class MediaInputCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -153,10 +131,7 @@ class MediaInputCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index b7a4e8ddb689a6..9d58fd84c46189 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MediaPlaybackCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MediaPlaybackCluster.kt @@ -20,48 +20,27 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class MediaPlaybackCluster(private val endpointId: UShort) { - class PlaybackResponse( - val status: UInt, - val data: String? - ) + class PlaybackResponse(val status: UInt, val data: String?) - class StartTimeAttribute( - val value: ULong? - ) + class StartTimeAttribute(val value: ULong?) - class DurationAttribute( - val value: ULong? - ) + class DurationAttribute(val value: ULong?) - class SampledPositionAttribute( - val value: MediaPlaybackClusterPlaybackPositionStruct? - ) + class SampledPositionAttribute(val value: MediaPlaybackClusterPlaybackPositionStruct?) - class SeekRangeEndAttribute( - val value: ULong? - ) + class SeekRangeEndAttribute(val value: ULong?) - class SeekRangeStartAttribute( - val value: ULong? - ) + class SeekRangeStartAttribute(val value: ULong?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun play(timedInvokeTimeoutMs: Int? = null): PlaybackResponse { + suspend fun play(timedInvokeTimeoutMs: Int? = null): PlaybackResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -69,7 +48,7 @@ class MediaPlaybackCluster(private val endpointId: UShort) { } } - suspend fun pause(timedInvokeTimeoutMs: Int? = null): PlaybackResponse { + suspend fun pause(timedInvokeTimeoutMs: Int? = null): PlaybackResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -77,7 +56,7 @@ class MediaPlaybackCluster(private val endpointId: UShort) { } } - suspend fun stop(timedInvokeTimeoutMs: Int? = null): PlaybackResponse { + suspend fun stop(timedInvokeTimeoutMs: Int? = null): PlaybackResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -85,7 +64,7 @@ class MediaPlaybackCluster(private val endpointId: UShort) { } } - suspend fun startOver(timedInvokeTimeoutMs: Int? = null): PlaybackResponse { + suspend fun startOver(timedInvokeTimeoutMs: Int? = null): PlaybackResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -93,7 +72,7 @@ class MediaPlaybackCluster(private val endpointId: UShort) { } } - suspend fun previous(timedInvokeTimeoutMs: Int? = null): PlaybackResponse { + suspend fun previous(timedInvokeTimeoutMs: Int? = null): PlaybackResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -101,7 +80,7 @@ class MediaPlaybackCluster(private val endpointId: UShort) { } } - suspend fun next(timedInvokeTimeoutMs: Int? = null): PlaybackResponse { + suspend fun next(timedInvokeTimeoutMs: Int? = null): PlaybackResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -109,7 +88,7 @@ class MediaPlaybackCluster(private val endpointId: UShort) { } } - suspend fun rewind(timedInvokeTimeoutMs: Int? = null): PlaybackResponse { + suspend fun rewind(timedInvokeTimeoutMs: Int? = null): PlaybackResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -117,7 +96,7 @@ class MediaPlaybackCluster(private val endpointId: UShort) { } } - suspend fun fastForward(timedInvokeTimeoutMs: Int? = null): PlaybackResponse { + suspend fun fastForward(timedInvokeTimeoutMs: Int? = null): PlaybackResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -125,7 +104,10 @@ class MediaPlaybackCluster(private val endpointId: UShort) { } } - suspend fun skipForward(deltaPositionMilliseconds: ULong, timedInvokeTimeoutMs: Int? = null): PlaybackResponse { + suspend fun skipForward( + deltaPositionMilliseconds: ULong, + timedInvokeTimeoutMs: Int? = null + ): PlaybackResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -133,7 +115,10 @@ class MediaPlaybackCluster(private val endpointId: UShort) { } } - suspend fun skipBackward(deltaPositionMilliseconds: ULong, timedInvokeTimeoutMs: Int? = null): PlaybackResponse { + suspend fun skipBackward( + deltaPositionMilliseconds: ULong, + timedInvokeTimeoutMs: Int? = null + ): PlaybackResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -141,7 +126,7 @@ class MediaPlaybackCluster(private val endpointId: UShort) { } } - suspend fun seek(position: ULong, timedInvokeTimeoutMs: Int? = null): PlaybackResponse { + suspend fun seek(position: ULong, timedInvokeTimeoutMs: Int? = null): PlaybackResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -153,10 +138,7 @@ class MediaPlaybackCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeCurrentStateAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeCurrentStateAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -164,10 +146,7 @@ class MediaPlaybackCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeStartTimeAttribute( - minInterval: Int, - maxInterval: Int - ): StartTimeAttribute { + suspend fun subscribeStartTimeAttribute(minInterval: Int, maxInterval: Int): StartTimeAttribute { // Implementation needs to be added here } @@ -175,10 +154,7 @@ class MediaPlaybackCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeDurationAttribute( - minInterval: Int, - maxInterval: Int - ): DurationAttribute { + suspend fun subscribeDurationAttribute(minInterval: Int, maxInterval: Int): DurationAttribute { // Implementation needs to be added here } @@ -197,10 +173,7 @@ class MediaPlaybackCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribePlaybackSpeedAttribute( - minInterval: Int, - maxInterval: Int - ): Float { + suspend fun subscribePlaybackSpeedAttribute(minInterval: Int, maxInterval: Int): Float { // Implementation needs to be added here } @@ -252,10 +225,7 @@ class MediaPlaybackCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -274,10 +244,7 @@ class MediaPlaybackCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -285,10 +252,7 @@ class MediaPlaybackCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MicrowaveOvenControlCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MicrowaveOvenControlCluster.kt index c6b6e3f68e6dc0..79da0170d7bf88 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MicrowaveOvenControlCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MicrowaveOvenControlCluster.kt @@ -20,23 +20,20 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class MicrowaveOvenControlCluster(private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun setCookingParameters(cookMode: UByte?, cookTime: UInt?, powerSetting: UByte?, timedInvokeTimeoutMs: Int? = null) { + suspend fun setCookingParameters( + cookMode: UByte?, + cookTime: UInt?, + powerSetting: UByte?, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -44,7 +41,7 @@ class MicrowaveOvenControlCluster(private val endpointId: UShort) { } } - suspend fun addMoreTime(timeToAdd: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun addMoreTime(timeToAdd: UInt, timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -56,10 +53,7 @@ class MicrowaveOvenControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeCookTimeAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeCookTimeAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -67,10 +61,7 @@ class MicrowaveOvenControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribePowerSettingAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribePowerSettingAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -78,10 +69,7 @@ class MicrowaveOvenControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeMinPowerAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMinPowerAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -89,10 +77,7 @@ class MicrowaveOvenControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeMaxPowerAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMaxPowerAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -100,10 +85,7 @@ class MicrowaveOvenControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribePowerStepAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribePowerStepAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -133,10 +115,7 @@ class MicrowaveOvenControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -155,10 +134,7 @@ class MicrowaveOvenControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -166,10 +142,7 @@ class MicrowaveOvenControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MicrowaveOvenModeCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MicrowaveOvenModeCluster.kt index 9b3f10bab01829..b09b0be629a172 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MicrowaveOvenModeCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MicrowaveOvenModeCluster.kt @@ -20,25 +20,15 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class MicrowaveOvenModeCluster(private val endpointId: UShort) { - class SupportedModesAttribute( - val value: List - ) + class SupportedModesAttribute(val value: List) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readSupportedModesAttribute(): SupportedModesAttribute { // Implementation needs to be added here @@ -55,10 +45,7 @@ class MicrowaveOvenModeCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeCurrentModeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeCurrentModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -88,10 +75,7 @@ class MicrowaveOvenModeCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -110,10 +94,7 @@ class MicrowaveOvenModeCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -121,10 +102,7 @@ class MicrowaveOvenModeCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 2bf866445dddea..acae26fd634da2 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ModeSelectCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ModeSelectCluster.kt @@ -20,39 +20,23 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class ModeSelectCluster(private val endpointId: UShort) { - class StandardNamespaceAttribute( - val value: UInt? - ) + class StandardNamespaceAttribute(val value: UInt?) - class SupportedModesAttribute( - val value: List - ) + class SupportedModesAttribute(val value: List) - class StartUpModeAttribute( - val value: UByte? - ) + class StartUpModeAttribute(val value: UByte?) - class OnModeAttribute( - val value: UByte? - ) + class OnModeAttribute(val value: UByte?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun changeToMode(newMode: UByte, timedInvokeTimeoutMs: Int? = null) { + suspend fun changeToMode(newMode: UByte, timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -64,10 +48,7 @@ class ModeSelectCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeDescriptionAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeDescriptionAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -97,10 +78,7 @@ class ModeSelectCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeCurrentModeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeCurrentModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -108,16 +86,11 @@ class ModeSelectCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeStartUpModeAttribute( - value: UByte - ) { + suspend fun writeStartUpModeAttribute(value: UByte) { // Implementation needs to be added here } - suspend fun writeStartUpModeAttribute( - value: UByte, - timedWriteTimeoutMs: Int - ) { + suspend fun writeStartUpModeAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -132,23 +105,15 @@ class ModeSelectCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeOnModeAttribute( - value: UByte - ) { + suspend fun writeOnModeAttribute(value: UByte) { // Implementation needs to be added here } - suspend fun writeOnModeAttribute( - value: UByte, - timedWriteTimeoutMs: Int - ) { + suspend fun writeOnModeAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeOnModeAttribute( - minInterval: Int, - maxInterval: Int - ): OnModeAttribute { + suspend fun subscribeOnModeAttribute(minInterval: Int, maxInterval: Int): OnModeAttribute { // Implementation needs to be added here } @@ -178,10 +143,7 @@ class ModeSelectCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -200,10 +162,7 @@ class ModeSelectCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -211,10 +170,7 @@ class ModeSelectCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index f1af2fda7cb89f..c4e3477cfb17e4 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/NetworkCommissioningCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/NetworkCommissioningCluster.kt @@ -21,61 +21,47 @@ import matter.devicecontroller.cluster.structs.* class NetworkCommissioningCluster(private val endpointId: UShort) { class ScanNetworksResponse( - val networkingStatus: UInt, - val debugText: String?, - val wiFiScanResults: List?, + val networkingStatus: UInt, + val debugText: String?, + val wiFiScanResults: List?, val threadScanResults: List? ) class NetworkConfigResponse( - val networkingStatus: UInt, - val debugText: String?, + val networkingStatus: UInt, + val debugText: String?, val networkIndex: UByte? ) class ConnectNetworkResponse( - val networkingStatus: UInt, - val debugText: String?, + val networkingStatus: UInt, + val debugText: String?, val errorValue: Int? ) - class NetworksAttribute( - val value: List - ) + class NetworksAttribute(val value: List) - class LastNetworkingStatusAttribute( - val value: UInt? - ) + class LastNetworkingStatusAttribute(val value: UInt?) - class LastNetworkIDAttribute( - val value: ByteArray? - ) + class LastNetworkIDAttribute(val value: ByteArray?) - class LastConnectErrorValueAttribute( - val value: Int? - ) + class LastConnectErrorValueAttribute(val value: Int?) - class SupportedWiFiBandsAttribute( - val value: List? - ) + class SupportedWiFiBandsAttribute(val value: List?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun scanNetworks(ssid: ByteArray?, breadcrumb: ULong?, timedInvokeTimeoutMs: Int? = null): ScanNetworksResponse { + suspend fun scanNetworks( + ssid: ByteArray?, + breadcrumb: ULong?, + timedInvokeTimeoutMs: Int? = null + ): ScanNetworksResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -83,7 +69,12 @@ class NetworkCommissioningCluster(private val endpointId: UShort) { } } - suspend fun addOrUpdateWiFiNetwork(ssid: ByteArray, credentials: ByteArray, breadcrumb: ULong?, timedInvokeTimeoutMs: Int? = null): NetworkConfigResponse { + suspend fun addOrUpdateWiFiNetwork( + ssid: ByteArray, + credentials: ByteArray, + breadcrumb: ULong?, + timedInvokeTimeoutMs: Int? = null + ): NetworkConfigResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -91,7 +82,11 @@ class NetworkCommissioningCluster(private val endpointId: UShort) { } } - suspend fun addOrUpdateThreadNetwork(operationalDataset: ByteArray, breadcrumb: ULong?, timedInvokeTimeoutMs: Int? = null): NetworkConfigResponse { + suspend fun addOrUpdateThreadNetwork( + operationalDataset: ByteArray, + breadcrumb: ULong?, + timedInvokeTimeoutMs: Int? = null + ): NetworkConfigResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -99,7 +94,11 @@ class NetworkCommissioningCluster(private val endpointId: UShort) { } } - suspend fun removeNetwork(networkID: ByteArray, breadcrumb: ULong?, timedInvokeTimeoutMs: Int? = null): NetworkConfigResponse { + suspend fun removeNetwork( + networkID: ByteArray, + breadcrumb: ULong?, + timedInvokeTimeoutMs: Int? = null + ): NetworkConfigResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -107,7 +106,11 @@ class NetworkCommissioningCluster(private val endpointId: UShort) { } } - suspend fun connectNetwork(networkID: ByteArray, breadcrumb: ULong?, timedInvokeTimeoutMs: Int? = null): ConnectNetworkResponse { + suspend fun connectNetwork( + networkID: ByteArray, + breadcrumb: ULong?, + timedInvokeTimeoutMs: Int? = null + ): ConnectNetworkResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -115,7 +118,12 @@ class NetworkCommissioningCluster(private val endpointId: UShort) { } } - suspend fun reorderNetwork(networkID: ByteArray, networkIndex: UByte, breadcrumb: ULong?, timedInvokeTimeoutMs: Int? = null): NetworkConfigResponse { + suspend fun reorderNetwork( + networkID: ByteArray, + networkIndex: UByte, + breadcrumb: ULong?, + timedInvokeTimeoutMs: Int? = null + ): NetworkConfigResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -127,10 +135,7 @@ class NetworkCommissioningCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeMaxNetworksAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMaxNetworksAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -138,10 +143,7 @@ class NetworkCommissioningCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeNetworksAttribute( - minInterval: Int, - maxInterval: Int - ): NetworksAttribute { + suspend fun subscribeNetworksAttribute(minInterval: Int, maxInterval: Int): NetworksAttribute { // Implementation needs to be added here } @@ -149,10 +151,7 @@ class NetworkCommissioningCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeScanMaxTimeSecondsAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeScanMaxTimeSecondsAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -160,10 +159,7 @@ class NetworkCommissioningCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeConnectMaxTimeSecondsAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeConnectMaxTimeSecondsAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -171,23 +167,15 @@ class NetworkCommissioningCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeInterfaceEnabledAttribute( - value: Boolean - ) { + suspend fun writeInterfaceEnabledAttribute(value: Boolean) { // Implementation needs to be added here } - suspend fun writeInterfaceEnabledAttribute( - value: Boolean, - timedWriteTimeoutMs: Int - ) { + suspend fun writeInterfaceEnabledAttribute(value: Boolean, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeInterfaceEnabledAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeInterfaceEnabledAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -250,10 +238,7 @@ class NetworkCommissioningCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeThreadVersionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeThreadVersionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -283,10 +268,7 @@ class NetworkCommissioningCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -305,10 +287,7 @@ class NetworkCommissioningCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -316,10 +295,7 @@ class NetworkCommissioningCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 9c60ad5ef7ca16..a9b1d6e828fc9f 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/NitrogenDioxideConcentrationMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/NitrogenDioxideConcentrationMeasurementCluster.kt @@ -20,41 +20,23 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class NitrogenDioxideConcentrationMeasurementCluster(private val endpointId: UShort) { - class MeasuredValueAttribute( - val value: Float? - ) + class MeasuredValueAttribute(val value: Float?) - class MinMeasuredValueAttribute( - val value: Float? - ) + class MinMeasuredValueAttribute(val value: Float?) - class MaxMeasuredValueAttribute( - val value: Float? - ) + class MaxMeasuredValueAttribute(val value: Float?) - class PeakMeasuredValueAttribute( - val value: Float? - ) + class PeakMeasuredValueAttribute(val value: Float?) - class AverageMeasuredValueAttribute( - val value: Float? - ) + class AverageMeasuredValueAttribute(val value: Float?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute { // Implementation needs to be added here @@ -104,10 +86,7 @@ class NitrogenDioxideConcentrationMeasurementCluster(private val endpointId: USh // Implementation needs to be added here } - suspend fun subscribePeakMeasuredValueWindowAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -137,10 +116,7 @@ class NitrogenDioxideConcentrationMeasurementCluster(private val endpointId: USh // Implementation needs to be added here } - suspend fun subscribeUncertaintyAttribute( - minInterval: Int, - maxInterval: Int - ): Float { + suspend fun subscribeUncertaintyAttribute(minInterval: Int, maxInterval: Int): Float { // Implementation needs to be added here } @@ -148,10 +124,7 @@ class NitrogenDioxideConcentrationMeasurementCluster(private val endpointId: USh // Implementation needs to be added here } - suspend fun subscribeMeasurementUnitAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -159,10 +132,7 @@ class NitrogenDioxideConcentrationMeasurementCluster(private val endpointId: USh // Implementation needs to be added here } - suspend fun subscribeMeasurementMediumAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -170,10 +140,7 @@ class NitrogenDioxideConcentrationMeasurementCluster(private val endpointId: USh // Implementation needs to be added here } - suspend fun subscribeLevelValueAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -203,10 +170,7 @@ class NitrogenDioxideConcentrationMeasurementCluster(private val endpointId: USh // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -225,10 +189,7 @@ class NitrogenDioxideConcentrationMeasurementCluster(private val endpointId: USh // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -236,10 +197,7 @@ class NitrogenDioxideConcentrationMeasurementCluster(private val endpointId: USh // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 0505b2dc7a2090..d13dbd20f35a27 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OccupancySensingCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OccupancySensingCluster.kt @@ -20,30 +20,19 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class OccupancySensingCluster(private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readOccupancyAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeOccupancyAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeOccupancyAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -51,10 +40,7 @@ class OccupancySensingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeOccupancySensorTypeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeOccupancySensorTypeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -73,16 +59,11 @@ class OccupancySensingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writePIROccupiedToUnoccupiedDelayAttribute( - value: UShort - ) { + suspend fun writePIROccupiedToUnoccupiedDelayAttribute(value: UShort) { // Implementation needs to be added here } - suspend fun writePIROccupiedToUnoccupiedDelayAttribute( - value: UShort, - timedWriteTimeoutMs: Int - ) { + suspend fun writePIROccupiedToUnoccupiedDelayAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -97,16 +78,11 @@ class OccupancySensingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writePIRUnoccupiedToOccupiedDelayAttribute( - value: UShort - ) { + suspend fun writePIRUnoccupiedToOccupiedDelayAttribute(value: UShort) { // Implementation needs to be added here } - suspend fun writePIRUnoccupiedToOccupiedDelayAttribute( - value: UShort, - timedWriteTimeoutMs: Int - ) { + suspend fun writePIRUnoccupiedToOccupiedDelayAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -121,9 +97,7 @@ class OccupancySensingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writePIRUnoccupiedToOccupiedThresholdAttribute( - value: UByte - ) { + suspend fun writePIRUnoccupiedToOccupiedThresholdAttribute(value: UByte) { // Implementation needs to be added here } @@ -145,9 +119,7 @@ class OccupancySensingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeUltrasonicOccupiedToUnoccupiedDelayAttribute( - value: UShort - ) { + suspend fun writeUltrasonicOccupiedToUnoccupiedDelayAttribute(value: UShort) { // Implementation needs to be added here } @@ -169,9 +141,7 @@ class OccupancySensingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeUltrasonicUnoccupiedToOccupiedDelayAttribute( - value: UShort - ) { + suspend fun writeUltrasonicUnoccupiedToOccupiedDelayAttribute(value: UShort) { // Implementation needs to be added here } @@ -193,9 +163,7 @@ class OccupancySensingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeUltrasonicUnoccupiedToOccupiedThresholdAttribute( - value: UByte - ) { + suspend fun writeUltrasonicUnoccupiedToOccupiedThresholdAttribute(value: UByte) { // Implementation needs to be added here } @@ -217,9 +185,7 @@ class OccupancySensingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writePhysicalContactOccupiedToUnoccupiedDelayAttribute( - value: UShort - ) { + suspend fun writePhysicalContactOccupiedToUnoccupiedDelayAttribute(value: UShort) { // Implementation needs to be added here } @@ -241,9 +207,7 @@ class OccupancySensingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writePhysicalContactUnoccupiedToOccupiedDelayAttribute( - value: UShort - ) { + suspend fun writePhysicalContactUnoccupiedToOccupiedDelayAttribute(value: UShort) { // Implementation needs to be added here } @@ -265,9 +229,7 @@ class OccupancySensingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writePhysicalContactUnoccupiedToOccupiedThresholdAttribute( - value: UByte - ) { + suspend fun writePhysicalContactUnoccupiedToOccupiedThresholdAttribute(value: UByte) { // Implementation needs to be added here } @@ -311,10 +273,7 @@ class OccupancySensingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -333,10 +292,7 @@ class OccupancySensingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -344,10 +300,7 @@ class OccupancySensingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 45ac1eaee8735c..0a71a64888a866 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OnOffCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OnOffCluster.kt @@ -20,27 +20,17 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class OnOffCluster(private val endpointId: UShort) { - class StartUpOnOffAttribute( - val value: UInt? - ) + class StartUpOnOffAttribute(val value: UInt?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun off(timedInvokeTimeoutMs: Int? = null) { + suspend fun off(timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -48,7 +38,7 @@ class OnOffCluster(private val endpointId: UShort) { } } - suspend fun on(timedInvokeTimeoutMs: Int? = null) { + suspend fun on(timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -56,7 +46,7 @@ class OnOffCluster(private val endpointId: UShort) { } } - suspend fun toggle(timedInvokeTimeoutMs: Int? = null) { + suspend fun toggle(timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -64,7 +54,11 @@ class OnOffCluster(private val endpointId: UShort) { } } - suspend fun offWithEffect(effectIdentifier: UInt, effectVariant: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun offWithEffect( + effectIdentifier: UInt, + effectVariant: UInt, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -72,7 +66,7 @@ class OnOffCluster(private val endpointId: UShort) { } } - suspend fun onWithRecallGlobalScene(timedInvokeTimeoutMs: Int? = null) { + suspend fun onWithRecallGlobalScene(timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -80,7 +74,12 @@ class OnOffCluster(private val endpointId: UShort) { } } - suspend fun onWithTimedOff(onOffControl: UInt, onTime: UShort, offWaitTime: UShort, timedInvokeTimeoutMs: Int? = null) { + suspend fun onWithTimedOff( + onOffControl: UInt, + onTime: UShort, + offWaitTime: UShort, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -92,10 +91,7 @@ class OnOffCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeOnOffAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeOnOffAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -103,10 +99,7 @@ class OnOffCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeGlobalSceneControlAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeGlobalSceneControlAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -114,23 +107,15 @@ class OnOffCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeOnTimeAttribute( - value: UShort - ) { + suspend fun writeOnTimeAttribute(value: UShort) { // Implementation needs to be added here } - suspend fun writeOnTimeAttribute( - value: UShort, - timedWriteTimeoutMs: Int - ) { + suspend fun writeOnTimeAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeOnTimeAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeOnTimeAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -138,23 +123,15 @@ class OnOffCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeOffWaitTimeAttribute( - value: UShort - ) { + suspend fun writeOffWaitTimeAttribute(value: UShort) { // Implementation needs to be added here } - suspend fun writeOffWaitTimeAttribute( - value: UShort, - timedWriteTimeoutMs: Int - ) { + suspend fun writeOffWaitTimeAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeOffWaitTimeAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeOffWaitTimeAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -162,16 +139,11 @@ class OnOffCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeStartUpOnOffAttribute( - value: UInt - ) { + suspend fun writeStartUpOnOffAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeStartUpOnOffAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeStartUpOnOffAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -208,10 +180,7 @@ class OnOffCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -230,10 +199,7 @@ class OnOffCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -241,10 +207,7 @@ class OnOffCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 53aaec4df195f7..2a04bd383851bf 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OnOffSwitchConfigurationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OnOffSwitchConfigurationCluster.kt @@ -20,30 +20,19 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class OnOffSwitchConfigurationCluster(private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readSwitchTypeAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeSwitchTypeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeSwitchTypeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -51,23 +40,15 @@ class OnOffSwitchConfigurationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeSwitchActionsAttribute( - value: UInt - ) { + suspend fun writeSwitchActionsAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeSwitchActionsAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeSwitchActionsAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeSwitchActionsAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeSwitchActionsAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -97,10 +78,7 @@ class OnOffSwitchConfigurationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -119,10 +97,7 @@ class OnOffSwitchConfigurationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -130,10 +105,7 @@ class OnOffSwitchConfigurationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 12c77a656864eb..1872207aec663f 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OperationalCredentialsCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OperationalCredentialsCluster.kt @@ -21,54 +21,34 @@ import matter.devicecontroller.cluster.structs.* class OperationalCredentialsCluster(private val endpointId: UShort) { class AttestationResponse( - val attestationElements: ByteArray, + val attestationElements: ByteArray, val attestationSignature: ByteArray ) - class CertificateChainResponse( - val certificate: ByteArray - ) + class CertificateChainResponse(val certificate: ByteArray) - class CSRResponse( - val NOCSRElements: ByteArray, - val attestationSignature: ByteArray - ) + class CSRResponse(val NOCSRElements: ByteArray, val attestationSignature: ByteArray) - class NOCResponse( - val statusCode: UInt, - val fabricIndex: UByte?, - val debugText: String? - ) + class NOCResponse(val statusCode: UInt, val fabricIndex: UByte?, val debugText: String?) - class NOCsAttribute( - val value: List - ) + class NOCsAttribute(val value: List) - class FabricsAttribute( - val value: List - ) + class FabricsAttribute(val value: List) - class TrustedRootCertificatesAttribute( - val value: List - ) + class TrustedRootCertificatesAttribute(val value: List) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun attestationRequest(attestationNonce: ByteArray, timedInvokeTimeoutMs: Int? = null): AttestationResponse { + suspend fun attestationRequest( + attestationNonce: ByteArray, + timedInvokeTimeoutMs: Int? = null + ): AttestationResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -76,7 +56,10 @@ class OperationalCredentialsCluster(private val endpointId: UShort) { } } - suspend fun certificateChainRequest(certificateType: UInt, timedInvokeTimeoutMs: Int? = null): CertificateChainResponse { + suspend fun certificateChainRequest( + certificateType: UInt, + timedInvokeTimeoutMs: Int? = null + ): CertificateChainResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -84,7 +67,11 @@ class OperationalCredentialsCluster(private val endpointId: UShort) { } } - suspend fun CSRRequest(CSRNonce: ByteArray, isForUpdateNOC: Boolean?, timedInvokeTimeoutMs: Int? = null): CSRResponse { + suspend fun CSRRequest( + CSRNonce: ByteArray, + isForUpdateNOC: Boolean?, + timedInvokeTimeoutMs: Int? = null + ): CSRResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -92,7 +79,14 @@ class OperationalCredentialsCluster(private val endpointId: UShort) { } } - suspend fun addNOC(NOCValue: ByteArray, ICACValue: ByteArray?, IPKValue: ByteArray, caseAdminSubject: ULong, adminVendorId: UShort, timedInvokeTimeoutMs: Int? = null): NOCResponse { + suspend fun addNOC( + NOCValue: ByteArray, + ICACValue: ByteArray?, + IPKValue: ByteArray, + caseAdminSubject: ULong, + adminVendorId: UShort, + timedInvokeTimeoutMs: Int? = null + ): NOCResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -100,7 +94,11 @@ class OperationalCredentialsCluster(private val endpointId: UShort) { } } - suspend fun updateNOC(NOCValue: ByteArray, ICACValue: ByteArray?, timedInvokeTimeoutMs: Int? = null): NOCResponse { + suspend fun updateNOC( + NOCValue: ByteArray, + ICACValue: ByteArray?, + timedInvokeTimeoutMs: Int? = null + ): NOCResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -108,7 +106,7 @@ class OperationalCredentialsCluster(private val endpointId: UShort) { } } - suspend fun updateFabricLabel(label: String, timedInvokeTimeoutMs: Int? = null): NOCResponse { + suspend fun updateFabricLabel(label: String, timedInvokeTimeoutMs: Int? = null): NOCResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -116,7 +114,7 @@ class OperationalCredentialsCluster(private val endpointId: UShort) { } } - suspend fun removeFabric(fabricIndex: UByte, timedInvokeTimeoutMs: Int? = null): NOCResponse { + suspend fun removeFabric(fabricIndex: UByte, timedInvokeTimeoutMs: Int? = null): NOCResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -124,7 +122,10 @@ class OperationalCredentialsCluster(private val endpointId: UShort) { } } - suspend fun addTrustedRootCertificate(rootCACertificate: ByteArray, timedInvokeTimeoutMs: Int? = null) { + suspend fun addTrustedRootCertificate( + rootCACertificate: ByteArray, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -136,17 +137,11 @@ class OperationalCredentialsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readNOCsAttributeWithFabricFilter( - isFabricFiltered: Boolean - ): NOCsAttribute { + suspend fun readNOCsAttributeWithFabricFilter(isFabricFiltered: Boolean): NOCsAttribute { // Implementation needs to be added here } - - suspend fun subscribeNOCsAttribute( - minInterval: Int, - maxInterval: Int - ): NOCsAttribute { + suspend fun subscribeNOCsAttribute(minInterval: Int, maxInterval: Int): NOCsAttribute { // Implementation needs to be added here } @@ -154,17 +149,11 @@ class OperationalCredentialsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readFabricsAttributeWithFabricFilter( - isFabricFiltered: Boolean - ): FabricsAttribute { + suspend fun readFabricsAttributeWithFabricFilter(isFabricFiltered: Boolean): FabricsAttribute { // Implementation needs to be added here } - - suspend fun subscribeFabricsAttribute( - minInterval: Int, - maxInterval: Int - ): FabricsAttribute { + suspend fun subscribeFabricsAttribute(minInterval: Int, maxInterval: Int): FabricsAttribute { // Implementation needs to be added here } @@ -172,10 +161,7 @@ class OperationalCredentialsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeSupportedFabricsAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeSupportedFabricsAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -183,10 +169,7 @@ class OperationalCredentialsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeCommissionedFabricsAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeCommissionedFabricsAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -205,10 +188,7 @@ class OperationalCredentialsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeCurrentFabricIndexAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeCurrentFabricIndexAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -238,10 +218,7 @@ class OperationalCredentialsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -260,10 +237,7 @@ class OperationalCredentialsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -271,10 +245,7 @@ class OperationalCredentialsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index dffcf86f3d563e..1064e27d1d9f64 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OperationalStateCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OperationalStateCluster.kt @@ -24,43 +24,27 @@ class OperationalStateCluster(private val endpointId: UShort) { val commandResponseState: OperationalStateClusterErrorStateStruct ) - class PhaseListAttribute( - val value: List? - ) + class PhaseListAttribute(val value: List?) - class CurrentPhaseAttribute( - val value: UByte? - ) + class CurrentPhaseAttribute(val value: UByte?) - class CountdownTimeAttribute( - val value: UInt? - ) + class CountdownTimeAttribute(val value: UInt?) class OperationalStateListAttribute( val value: List ) - class OperationalErrorAttribute( - val value: OperationalStateClusterErrorStateStruct - ) + class OperationalErrorAttribute(val value: OperationalStateClusterErrorStateStruct) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun pause(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { + suspend fun pause(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -68,7 +52,7 @@ class OperationalStateCluster(private val endpointId: UShort) { } } - suspend fun stop(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { + suspend fun stop(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -76,7 +60,7 @@ class OperationalStateCluster(private val endpointId: UShort) { } } - suspend fun start(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { + suspend fun start(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -84,7 +68,7 @@ class OperationalStateCluster(private val endpointId: UShort) { } } - suspend fun resume(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { + suspend fun resume(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -96,10 +80,7 @@ class OperationalStateCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribePhaseListAttribute( - minInterval: Int, - maxInterval: Int - ): PhaseListAttribute { + suspend fun subscribePhaseListAttribute(minInterval: Int, maxInterval: Int): PhaseListAttribute { // Implementation needs to be added here } @@ -140,10 +121,7 @@ class OperationalStateCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeOperationalStateAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeOperationalStateAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -184,10 +162,7 @@ class OperationalStateCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -206,10 +181,7 @@ class OperationalStateCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -217,10 +189,7 @@ class OperationalStateCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index f992f9a404976b..3cf4e93c1d36c4 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OtaSoftwareUpdateProviderCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OtaSoftwareUpdateProviderCluster.kt @@ -21,38 +21,37 @@ import matter.devicecontroller.cluster.structs.* class OtaSoftwareUpdateProviderCluster(private val endpointId: UShort) { class QueryImageResponse( - val status: UInt, - val delayedActionTime: UInt?, - val imageURI: String?, - val softwareVersion: UInt?, - val softwareVersionString: String?, - val updateToken: ByteArray?, - val userConsentNeeded: Boolean?, + val status: UInt, + val delayedActionTime: UInt?, + val imageURI: String?, + val softwareVersion: UInt?, + val softwareVersionString: String?, + val updateToken: ByteArray?, + val userConsentNeeded: Boolean?, val metadataForRequestor: ByteArray? ) - class ApplyUpdateResponse( - val action: UInt, - val delayedActionTime: UInt - ) + class ApplyUpdateResponse(val action: UInt, val delayedActionTime: UInt) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun queryImage(vendorID: UShort, productID: UShort, softwareVersion: UInt, protocolsSupported: List, hardwareVersion: UShort?, location: String?, requestorCanConsent: Boolean?, metadataForProvider: ByteArray?, timedInvokeTimeoutMs: Int? = null): QueryImageResponse { + suspend fun queryImage( + vendorID: UShort, + productID: UShort, + softwareVersion: UInt, + protocolsSupported: List, + hardwareVersion: UShort?, + location: String?, + requestorCanConsent: Boolean?, + metadataForProvider: ByteArray?, + timedInvokeTimeoutMs: Int? = null + ): QueryImageResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -60,7 +59,11 @@ class OtaSoftwareUpdateProviderCluster(private val endpointId: UShort) { } } - suspend fun applyUpdateRequest(updateToken: ByteArray, newVersion: UInt, timedInvokeTimeoutMs: Int? = null): ApplyUpdateResponse { + suspend fun applyUpdateRequest( + updateToken: ByteArray, + newVersion: UInt, + timedInvokeTimeoutMs: Int? = null + ): ApplyUpdateResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -68,7 +71,11 @@ class OtaSoftwareUpdateProviderCluster(private val endpointId: UShort) { } } - suspend fun notifyUpdateApplied(updateToken: ByteArray, softwareVersion: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun notifyUpdateApplied( + updateToken: ByteArray, + softwareVersion: UInt, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -102,10 +109,7 @@ class OtaSoftwareUpdateProviderCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -124,10 +128,7 @@ class OtaSoftwareUpdateProviderCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -135,10 +136,7 @@ class OtaSoftwareUpdateProviderCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 30a1abb483025f..71c319d1d128b1 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OtaSoftwareUpdateRequestorCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OtaSoftwareUpdateRequestorCluster.kt @@ -24,27 +24,24 @@ class OtaSoftwareUpdateRequestorCluster(private val endpointId: UShort) { val value: List ) - class UpdateStateProgressAttribute( - val value: UByte? - ) + class UpdateStateProgressAttribute(val value: UByte?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun announceOTAProvider(providerNodeID: ULong, vendorID: UShort, announcementReason: UInt, metadataForNode: ByteArray?, endpoint: UShort, timedInvokeTimeoutMs: Int? = null) { + suspend fun announceOTAProvider( + providerNodeID: ULong, + vendorID: UShort, + announcementReason: UInt, + metadataForNode: ByteArray?, + endpoint: UShort, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -62,7 +59,6 @@ class OtaSoftwareUpdateRequestorCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeDefaultOTAProvidersAttribute( value: List ) { @@ -87,10 +83,7 @@ class OtaSoftwareUpdateRequestorCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeUpdatePossibleAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeUpdatePossibleAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -98,10 +91,7 @@ class OtaSoftwareUpdateRequestorCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeUpdateStateAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeUpdateStateAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -142,10 +132,7 @@ class OtaSoftwareUpdateRequestorCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -164,10 +151,7 @@ class OtaSoftwareUpdateRequestorCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -175,10 +159,7 @@ class OtaSoftwareUpdateRequestorCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index ba141fc0882afb..7dd6c7cac8bee6 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OzoneConcentrationMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OzoneConcentrationMeasurementCluster.kt @@ -20,41 +20,23 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class OzoneConcentrationMeasurementCluster(private val endpointId: UShort) { - class MeasuredValueAttribute( - val value: Float? - ) + class MeasuredValueAttribute(val value: Float?) - class MinMeasuredValueAttribute( - val value: Float? - ) + class MinMeasuredValueAttribute(val value: Float?) - class MaxMeasuredValueAttribute( - val value: Float? - ) + class MaxMeasuredValueAttribute(val value: Float?) - class PeakMeasuredValueAttribute( - val value: Float? - ) + class PeakMeasuredValueAttribute(val value: Float?) - class AverageMeasuredValueAttribute( - val value: Float? - ) + class AverageMeasuredValueAttribute(val value: Float?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute { // Implementation needs to be added here @@ -104,10 +86,7 @@ class OzoneConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribePeakMeasuredValueWindowAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -137,10 +116,7 @@ class OzoneConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeUncertaintyAttribute( - minInterval: Int, - maxInterval: Int - ): Float { + suspend fun subscribeUncertaintyAttribute(minInterval: Int, maxInterval: Int): Float { // Implementation needs to be added here } @@ -148,10 +124,7 @@ class OzoneConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeMeasurementUnitAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -159,10 +132,7 @@ class OzoneConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeMeasurementMediumAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -170,10 +140,7 @@ class OzoneConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeLevelValueAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -203,10 +170,7 @@ class OzoneConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -225,10 +189,7 @@ class OzoneConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -236,10 +197,7 @@ class OzoneConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index bc27dd96187e7a..f8030010d0da11 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm10ConcentrationMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm10ConcentrationMeasurementCluster.kt @@ -20,41 +20,23 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class Pm10ConcentrationMeasurementCluster(private val endpointId: UShort) { - class MeasuredValueAttribute( - val value: Float? - ) + class MeasuredValueAttribute(val value: Float?) - class MinMeasuredValueAttribute( - val value: Float? - ) + class MinMeasuredValueAttribute(val value: Float?) - class MaxMeasuredValueAttribute( - val value: Float? - ) + class MaxMeasuredValueAttribute(val value: Float?) - class PeakMeasuredValueAttribute( - val value: Float? - ) + class PeakMeasuredValueAttribute(val value: Float?) - class AverageMeasuredValueAttribute( - val value: Float? - ) + class AverageMeasuredValueAttribute(val value: Float?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute { // Implementation needs to be added here @@ -104,10 +86,7 @@ class Pm10ConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribePeakMeasuredValueWindowAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -137,10 +116,7 @@ class Pm10ConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeUncertaintyAttribute( - minInterval: Int, - maxInterval: Int - ): Float { + suspend fun subscribeUncertaintyAttribute(minInterval: Int, maxInterval: Int): Float { // Implementation needs to be added here } @@ -148,10 +124,7 @@ class Pm10ConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeMeasurementUnitAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -159,10 +132,7 @@ class Pm10ConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeMeasurementMediumAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -170,10 +140,7 @@ class Pm10ConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeLevelValueAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -203,10 +170,7 @@ class Pm10ConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -225,10 +189,7 @@ class Pm10ConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -236,10 +197,7 @@ class Pm10ConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 30e8e4df14d9e5..77700b857234d9 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm1ConcentrationMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm1ConcentrationMeasurementCluster.kt @@ -20,41 +20,23 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class Pm1ConcentrationMeasurementCluster(private val endpointId: UShort) { - class MeasuredValueAttribute( - val value: Float? - ) + class MeasuredValueAttribute(val value: Float?) - class MinMeasuredValueAttribute( - val value: Float? - ) + class MinMeasuredValueAttribute(val value: Float?) - class MaxMeasuredValueAttribute( - val value: Float? - ) + class MaxMeasuredValueAttribute(val value: Float?) - class PeakMeasuredValueAttribute( - val value: Float? - ) + class PeakMeasuredValueAttribute(val value: Float?) - class AverageMeasuredValueAttribute( - val value: Float? - ) + class AverageMeasuredValueAttribute(val value: Float?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute { // Implementation needs to be added here @@ -104,10 +86,7 @@ class Pm1ConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribePeakMeasuredValueWindowAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -137,10 +116,7 @@ class Pm1ConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeUncertaintyAttribute( - minInterval: Int, - maxInterval: Int - ): Float { + suspend fun subscribeUncertaintyAttribute(minInterval: Int, maxInterval: Int): Float { // Implementation needs to be added here } @@ -148,10 +124,7 @@ class Pm1ConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeMeasurementUnitAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -159,10 +132,7 @@ class Pm1ConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeMeasurementMediumAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -170,10 +140,7 @@ class Pm1ConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeLevelValueAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -203,10 +170,7 @@ class Pm1ConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -225,10 +189,7 @@ class Pm1ConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -236,10 +197,7 @@ class Pm1ConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index a04c1a71963677..096a8ee16bfaeb 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm25ConcentrationMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm25ConcentrationMeasurementCluster.kt @@ -20,41 +20,23 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class Pm25ConcentrationMeasurementCluster(private val endpointId: UShort) { - class MeasuredValueAttribute( - val value: Float? - ) + class MeasuredValueAttribute(val value: Float?) - class MinMeasuredValueAttribute( - val value: Float? - ) + class MinMeasuredValueAttribute(val value: Float?) - class MaxMeasuredValueAttribute( - val value: Float? - ) + class MaxMeasuredValueAttribute(val value: Float?) - class PeakMeasuredValueAttribute( - val value: Float? - ) + class PeakMeasuredValueAttribute(val value: Float?) - class AverageMeasuredValueAttribute( - val value: Float? - ) + class AverageMeasuredValueAttribute(val value: Float?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute { // Implementation needs to be added here @@ -104,10 +86,7 @@ class Pm25ConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribePeakMeasuredValueWindowAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -137,10 +116,7 @@ class Pm25ConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeUncertaintyAttribute( - minInterval: Int, - maxInterval: Int - ): Float { + suspend fun subscribeUncertaintyAttribute(minInterval: Int, maxInterval: Int): Float { // Implementation needs to be added here } @@ -148,10 +124,7 @@ class Pm25ConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeMeasurementUnitAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -159,10 +132,7 @@ class Pm25ConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeMeasurementMediumAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -170,10 +140,7 @@ class Pm25ConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeLevelValueAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -203,10 +170,7 @@ class Pm25ConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -225,10 +189,7 @@ class Pm25ConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -236,10 +197,7 @@ class Pm25ConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index f68918ee012613..da40049b9cb03b 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PowerSourceCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PowerSourceCluster.kt @@ -20,78 +20,43 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class PowerSourceCluster(private val endpointId: UShort) { - class WiredAssessedInputVoltageAttribute( - val value: UInt? - ) + class WiredAssessedInputVoltageAttribute(val value: UInt?) - class WiredAssessedInputFrequencyAttribute( - val value: UShort? - ) + class WiredAssessedInputFrequencyAttribute(val value: UShort?) - class WiredAssessedCurrentAttribute( - val value: UInt? - ) + class WiredAssessedCurrentAttribute(val value: UInt?) - class ActiveWiredFaultsAttribute( - val value: List? - ) + class ActiveWiredFaultsAttribute(val value: List?) - class BatVoltageAttribute( - val value: UInt? - ) + class BatVoltageAttribute(val value: UInt?) - class BatPercentRemainingAttribute( - val value: UByte? - ) + class BatPercentRemainingAttribute(val value: UByte?) - class BatTimeRemainingAttribute( - val value: UInt? - ) + class BatTimeRemainingAttribute(val value: UInt?) - class ActiveBatFaultsAttribute( - val value: List? - ) + class ActiveBatFaultsAttribute(val value: List?) - class BatTimeToFullChargeAttribute( - val value: UInt? - ) + class BatTimeToFullChargeAttribute(val value: UInt?) - class BatChargingCurrentAttribute( - val value: UInt? - ) + class BatChargingCurrentAttribute(val value: UInt?) - class ActiveBatChargeFaultsAttribute( - val value: List? - ) + class ActiveBatChargeFaultsAttribute(val value: List?) - class EndpointListAttribute( - val value: List - ) + class EndpointListAttribute(val value: List) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readStatusAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeStatusAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeStatusAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -99,10 +64,7 @@ class PowerSourceCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeOrderAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeOrderAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -110,10 +72,7 @@ class PowerSourceCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeDescriptionAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeDescriptionAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -143,10 +102,7 @@ class PowerSourceCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeWiredCurrentTypeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeWiredCurrentTypeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -165,10 +121,7 @@ class PowerSourceCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeWiredNominalVoltageAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeWiredNominalVoltageAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -176,10 +129,7 @@ class PowerSourceCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeWiredMaximumCurrentAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeWiredMaximumCurrentAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -187,10 +137,7 @@ class PowerSourceCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeWiredPresentAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeWiredPresentAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -242,10 +189,7 @@ class PowerSourceCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeBatChargeLevelAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeBatChargeLevelAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -253,10 +197,7 @@ class PowerSourceCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeBatReplacementNeededAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeBatReplacementNeededAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -264,10 +205,7 @@ class PowerSourceCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeBatReplaceabilityAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeBatReplaceabilityAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -275,10 +213,7 @@ class PowerSourceCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeBatPresentAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeBatPresentAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -308,10 +243,7 @@ class PowerSourceCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeBatCommonDesignationAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeBatCommonDesignationAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -319,10 +251,7 @@ class PowerSourceCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeBatANSIDesignationAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeBatANSIDesignationAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -330,10 +259,7 @@ class PowerSourceCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeBatIECDesignationAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeBatIECDesignationAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -341,10 +267,7 @@ class PowerSourceCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeBatApprovedChemistryAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeBatApprovedChemistryAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -352,10 +275,7 @@ class PowerSourceCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeBatCapacityAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeBatCapacityAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -363,10 +283,7 @@ class PowerSourceCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeBatQuantityAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeBatQuantityAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -374,10 +291,7 @@ class PowerSourceCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeBatChargeStateAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeBatChargeStateAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -462,10 +376,7 @@ class PowerSourceCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -484,10 +395,7 @@ class PowerSourceCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -495,10 +403,7 @@ class PowerSourceCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 5dddffbc46a5c6..13bced39ded546 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PowerSourceConfigurationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PowerSourceConfigurationCluster.kt @@ -20,34 +20,21 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class PowerSourceConfigurationCluster(private val endpointId: UShort) { - class SourcesAttribute( - val value: List - ) + class SourcesAttribute(val value: List) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readSourcesAttribute(): SourcesAttribute { // Implementation needs to be added here } - suspend fun subscribeSourcesAttribute( - minInterval: Int, - maxInterval: Int - ): SourcesAttribute { + suspend fun subscribeSourcesAttribute(minInterval: Int, maxInterval: Int): SourcesAttribute { // Implementation needs to be added here } @@ -77,10 +64,7 @@ class PowerSourceConfigurationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -99,10 +83,7 @@ class PowerSourceConfigurationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -110,10 +91,7 @@ class PowerSourceConfigurationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index dd7e2d807f12af..55e60d8ff8ad38 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PressureMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PressureMeasurementCluster.kt @@ -20,45 +20,25 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class PressureMeasurementCluster(private val endpointId: UShort) { - class MeasuredValueAttribute( - val value: Short? - ) + class MeasuredValueAttribute(val value: Short?) - class MinMeasuredValueAttribute( - val value: Short? - ) + class MinMeasuredValueAttribute(val value: Short?) - class MaxMeasuredValueAttribute( - val value: Short? - ) + class MaxMeasuredValueAttribute(val value: Short?) - class ScaledValueAttribute( - val value: Short? - ) + class ScaledValueAttribute(val value: Short?) - class MinScaledValueAttribute( - val value: Short? - ) + class MinScaledValueAttribute(val value: Short?) - class MaxScaledValueAttribute( - val value: Short? - ) + class MaxScaledValueAttribute(val value: Short?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute { // Implementation needs to be added here @@ -97,10 +77,7 @@ class PressureMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeToleranceAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeToleranceAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -141,10 +118,7 @@ class PressureMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeScaledToleranceAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeScaledToleranceAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -152,10 +126,7 @@ class PressureMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeScaleAttribute( - minInterval: Int, - maxInterval: Int - ): Byte { + suspend fun subscribeScaleAttribute(minInterval: Int, maxInterval: Int): Byte { // Implementation needs to be added here } @@ -185,10 +156,7 @@ class PressureMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -207,10 +175,7 @@ class PressureMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -218,10 +183,7 @@ class PressureMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 77c02906d70aab..8dc5508cf98e6f 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyConfigurationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyConfigurationCluster.kt @@ -20,21 +20,13 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class ProxyConfigurationCluster(private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute { // Implementation needs to be added here @@ -62,10 +54,7 @@ class ProxyConfigurationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -84,10 +73,7 @@ class ProxyConfigurationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -95,10 +81,7 @@ class ProxyConfigurationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index cdf62c2ff41479..c9c163e70f15e9 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyDiscoveryCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyDiscoveryCluster.kt @@ -20,21 +20,13 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class ProxyDiscoveryCluster(private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute { // Implementation needs to be added here @@ -62,10 +54,7 @@ class ProxyDiscoveryCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -84,10 +73,7 @@ class ProxyDiscoveryCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -95,10 +81,7 @@ class ProxyDiscoveryCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 19a4ed8cce231e..f88698bbefa063 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyValidCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyValidCluster.kt @@ -20,21 +20,13 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class ProxyValidCluster(private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute { // Implementation needs to be added here @@ -62,10 +54,7 @@ class ProxyValidCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -84,10 +73,7 @@ class ProxyValidCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -95,10 +81,7 @@ class ProxyValidCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 4b2fa06ebd874b..2e3de7f45a33c6 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PulseWidthModulationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PulseWidthModulationCluster.kt @@ -20,21 +20,13 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class PulseWidthModulationCluster(private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute { // Implementation needs to be added here @@ -62,10 +54,7 @@ class PulseWidthModulationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -84,10 +73,7 @@ class PulseWidthModulationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -95,10 +81,7 @@ class PulseWidthModulationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index fd37639356e7f0..2fc7f8370ebe4d 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PumpConfigurationAndControlCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PumpConfigurationAndControlCluster.kt @@ -20,93 +20,49 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class PumpConfigurationAndControlCluster(private val endpointId: UShort) { - class MaxPressureAttribute( - val value: Short? - ) + class MaxPressureAttribute(val value: Short?) - class MaxSpeedAttribute( - val value: UShort? - ) + class MaxSpeedAttribute(val value: UShort?) - class MaxFlowAttribute( - val value: UShort? - ) + class MaxFlowAttribute(val value: UShort?) - class MinConstPressureAttribute( - val value: Short? - ) + class MinConstPressureAttribute(val value: Short?) - class MaxConstPressureAttribute( - val value: Short? - ) + class MaxConstPressureAttribute(val value: Short?) - class MinCompPressureAttribute( - val value: Short? - ) + class MinCompPressureAttribute(val value: Short?) - class MaxCompPressureAttribute( - val value: Short? - ) + class MaxCompPressureAttribute(val value: Short?) - class MinConstSpeedAttribute( - val value: UShort? - ) + class MinConstSpeedAttribute(val value: UShort?) - class MaxConstSpeedAttribute( - val value: UShort? - ) + class MaxConstSpeedAttribute(val value: UShort?) - class MinConstFlowAttribute( - val value: UShort? - ) + class MinConstFlowAttribute(val value: UShort?) - class MaxConstFlowAttribute( - val value: UShort? - ) + class MaxConstFlowAttribute(val value: UShort?) - class MinConstTempAttribute( - val value: Short? - ) + class MinConstTempAttribute(val value: Short?) - class MaxConstTempAttribute( - val value: Short? - ) + class MaxConstTempAttribute(val value: Short?) - class CapacityAttribute( - val value: Short? - ) + class CapacityAttribute(val value: Short?) - class SpeedAttribute( - val value: UShort? - ) + class SpeedAttribute(val value: UShort?) - class LifetimeRunningHoursAttribute( - val value: UInt? - ) + class LifetimeRunningHoursAttribute(val value: UInt?) - class PowerAttribute( - val value: UInt? - ) + class PowerAttribute(val value: UInt?) - class LifetimeEnergyConsumedAttribute( - val value: UInt? - ) + class LifetimeEnergyConsumedAttribute(val value: UInt?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readMaxPressureAttribute(): MaxPressureAttribute { // Implementation needs to be added here @@ -123,10 +79,7 @@ class PumpConfigurationAndControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeMaxSpeedAttribute( - minInterval: Int, - maxInterval: Int - ): MaxSpeedAttribute { + suspend fun subscribeMaxSpeedAttribute(minInterval: Int, maxInterval: Int): MaxSpeedAttribute { // Implementation needs to be added here } @@ -134,10 +87,7 @@ class PumpConfigurationAndControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeMaxFlowAttribute( - minInterval: Int, - maxInterval: Int - ): MaxFlowAttribute { + suspend fun subscribeMaxFlowAttribute(minInterval: Int, maxInterval: Int): MaxFlowAttribute { // Implementation needs to be added here } @@ -255,10 +205,7 @@ class PumpConfigurationAndControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribePumpStatusAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribePumpStatusAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -266,10 +213,7 @@ class PumpConfigurationAndControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEffectiveOperationModeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeEffectiveOperationModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -277,10 +221,7 @@ class PumpConfigurationAndControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEffectiveControlModeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeEffectiveControlModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -288,10 +229,7 @@ class PumpConfigurationAndControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeCapacityAttribute( - minInterval: Int, - maxInterval: Int - ): CapacityAttribute { + suspend fun subscribeCapacityAttribute(minInterval: Int, maxInterval: Int): CapacityAttribute { // Implementation needs to be added here } @@ -299,10 +237,7 @@ class PumpConfigurationAndControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeSpeedAttribute( - minInterval: Int, - maxInterval: Int - ): SpeedAttribute { + suspend fun subscribeSpeedAttribute(minInterval: Int, maxInterval: Int): SpeedAttribute { // Implementation needs to be added here } @@ -310,16 +245,11 @@ class PumpConfigurationAndControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeLifetimeRunningHoursAttribute( - value: UInt - ) { + suspend fun writeLifetimeRunningHoursAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeLifetimeRunningHoursAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeLifetimeRunningHoursAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -334,10 +264,7 @@ class PumpConfigurationAndControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribePowerAttribute( - minInterval: Int, - maxInterval: Int - ): PowerAttribute { + suspend fun subscribePowerAttribute(minInterval: Int, maxInterval: Int): PowerAttribute { // Implementation needs to be added here } @@ -345,16 +272,11 @@ class PumpConfigurationAndControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeLifetimeEnergyConsumedAttribute( - value: UInt - ) { + suspend fun writeLifetimeEnergyConsumedAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeLifetimeEnergyConsumedAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeLifetimeEnergyConsumedAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -369,23 +291,15 @@ class PumpConfigurationAndControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeOperationModeAttribute( - value: UInt - ) { + suspend fun writeOperationModeAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeOperationModeAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeOperationModeAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeOperationModeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeOperationModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -393,23 +307,15 @@ class PumpConfigurationAndControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeControlModeAttribute( - value: UInt - ) { + suspend fun writeControlModeAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeControlModeAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeControlModeAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeControlModeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeControlModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -439,10 +345,7 @@ class PumpConfigurationAndControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -461,10 +364,7 @@ class PumpConfigurationAndControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -472,10 +372,7 @@ class PumpConfigurationAndControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 9bee49679b6919..9ae2d47bf1c17c 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RadonConcentrationMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RadonConcentrationMeasurementCluster.kt @@ -20,41 +20,23 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class RadonConcentrationMeasurementCluster(private val endpointId: UShort) { - class MeasuredValueAttribute( - val value: Float? - ) + class MeasuredValueAttribute(val value: Float?) - class MinMeasuredValueAttribute( - val value: Float? - ) + class MinMeasuredValueAttribute(val value: Float?) - class MaxMeasuredValueAttribute( - val value: Float? - ) + class MaxMeasuredValueAttribute(val value: Float?) - class PeakMeasuredValueAttribute( - val value: Float? - ) + class PeakMeasuredValueAttribute(val value: Float?) - class AverageMeasuredValueAttribute( - val value: Float? - ) + class AverageMeasuredValueAttribute(val value: Float?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute { // Implementation needs to be added here @@ -104,10 +86,7 @@ class RadonConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribePeakMeasuredValueWindowAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -137,10 +116,7 @@ class RadonConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeUncertaintyAttribute( - minInterval: Int, - maxInterval: Int - ): Float { + suspend fun subscribeUncertaintyAttribute(minInterval: Int, maxInterval: Int): Float { // Implementation needs to be added here } @@ -148,10 +124,7 @@ class RadonConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeMeasurementUnitAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -159,10 +132,7 @@ class RadonConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeMeasurementMediumAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -170,10 +140,7 @@ class RadonConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeLevelValueAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -203,10 +170,7 @@ class RadonConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -225,10 +189,7 @@ class RadonConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -236,10 +197,7 @@ class RadonConcentrationMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 4738c68122f671..27bc2db2abd73b 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RefrigeratorAlarmCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RefrigeratorAlarmCluster.kt @@ -20,30 +20,19 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class RefrigeratorAlarmCluster(private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readMaskAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeMaskAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeMaskAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -51,10 +40,7 @@ class RefrigeratorAlarmCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeStateAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeStateAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -62,10 +48,7 @@ class RefrigeratorAlarmCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeSupportedAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeSupportedAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -95,10 +78,7 @@ class RefrigeratorAlarmCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -117,10 +97,7 @@ class RefrigeratorAlarmCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -128,10 +105,7 @@ class RefrigeratorAlarmCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 616d2c78a54f0d..f12c08185449d8 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RefrigeratorAndTemperatureControlledCabinetModeCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RefrigeratorAndTemperatureControlledCabinetModeCluster.kt @@ -20,40 +20,28 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class RefrigeratorAndTemperatureControlledCabinetModeCluster(private val endpointId: UShort) { - class ChangeToModeResponse( - val status: UInt, - val statusText: String? - ) + class ChangeToModeResponse(val status: UInt, val statusText: String?) class SupportedModesAttribute( val value: List ) - class StartUpModeAttribute( - val value: UByte? - ) + class StartUpModeAttribute(val value: UByte?) - class OnModeAttribute( - val value: UByte? - ) + class OnModeAttribute(val value: UByte?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun changeToMode(newMode: UByte, timedInvokeTimeoutMs: Int? = null): ChangeToModeResponse { + suspend fun changeToMode( + newMode: UByte, + timedInvokeTimeoutMs: Int? = null + ): ChangeToModeResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -76,10 +64,7 @@ class RefrigeratorAndTemperatureControlledCabinetModeCluster(private val endpoin // Implementation needs to be added here } - suspend fun subscribeCurrentModeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeCurrentModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -87,16 +72,11 @@ class RefrigeratorAndTemperatureControlledCabinetModeCluster(private val endpoin // Implementation needs to be added here } - suspend fun writeStartUpModeAttribute( - value: UByte - ) { + suspend fun writeStartUpModeAttribute(value: UByte) { // Implementation needs to be added here } - suspend fun writeStartUpModeAttribute( - value: UByte, - timedWriteTimeoutMs: Int - ) { + suspend fun writeStartUpModeAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -111,23 +91,15 @@ class RefrigeratorAndTemperatureControlledCabinetModeCluster(private val endpoin // Implementation needs to be added here } - suspend fun writeOnModeAttribute( - value: UByte - ) { + suspend fun writeOnModeAttribute(value: UByte) { // Implementation needs to be added here } - suspend fun writeOnModeAttribute( - value: UByte, - timedWriteTimeoutMs: Int - ) { + suspend fun writeOnModeAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeOnModeAttribute( - minInterval: Int, - maxInterval: Int - ): OnModeAttribute { + suspend fun subscribeOnModeAttribute(minInterval: Int, maxInterval: Int): OnModeAttribute { // Implementation needs to be added here } @@ -157,10 +129,7 @@ class RefrigeratorAndTemperatureControlledCabinetModeCluster(private val endpoin // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -179,10 +148,7 @@ class RefrigeratorAndTemperatureControlledCabinetModeCluster(private val endpoin // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -190,10 +156,7 @@ class RefrigeratorAndTemperatureControlledCabinetModeCluster(private val endpoin // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 10eacd77dba1d7..70e7a67dc8d5b2 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RelativeHumidityMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RelativeHumidityMeasurementCluster.kt @@ -20,33 +20,19 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class RelativeHumidityMeasurementCluster(private val endpointId: UShort) { - class MeasuredValueAttribute( - val value: UShort? - ) + class MeasuredValueAttribute(val value: UShort?) - class MinMeasuredValueAttribute( - val value: UShort? - ) + class MinMeasuredValueAttribute(val value: UShort?) - class MaxMeasuredValueAttribute( - val value: UShort? - ) + class MaxMeasuredValueAttribute(val value: UShort?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute { // Implementation needs to be added here @@ -85,10 +71,7 @@ class RelativeHumidityMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeToleranceAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeToleranceAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -118,10 +101,7 @@ class RelativeHumidityMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -140,10 +120,7 @@ class RelativeHumidityMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -151,10 +128,7 @@ class RelativeHumidityMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index f6cdf8e2897ec0..2dd95d452d32b6 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcCleanModeCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcCleanModeCluster.kt @@ -20,36 +20,24 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class RvcCleanModeCluster(private val endpointId: UShort) { - class ChangeToModeResponse( - val status: UInt, - val statusText: String? - ) + class ChangeToModeResponse(val status: UInt, val statusText: String?) - class SupportedModesAttribute( - val value: List - ) + class SupportedModesAttribute(val value: List) - class OnModeAttribute( - val value: UByte? - ) + class OnModeAttribute(val value: UByte?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun changeToMode(newMode: UByte, timedInvokeTimeoutMs: Int? = null): ChangeToModeResponse { + suspend fun changeToMode( + newMode: UByte, + timedInvokeTimeoutMs: Int? = null + ): ChangeToModeResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -72,10 +60,7 @@ class RvcCleanModeCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeCurrentModeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeCurrentModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -83,23 +68,15 @@ class RvcCleanModeCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeOnModeAttribute( - value: UByte - ) { + suspend fun writeOnModeAttribute(value: UByte) { // Implementation needs to be added here } - suspend fun writeOnModeAttribute( - value: UByte, - timedWriteTimeoutMs: Int - ) { + suspend fun writeOnModeAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeOnModeAttribute( - minInterval: Int, - maxInterval: Int - ): OnModeAttribute { + suspend fun subscribeOnModeAttribute(minInterval: Int, maxInterval: Int): OnModeAttribute { // Implementation needs to be added here } @@ -129,10 +106,7 @@ class RvcCleanModeCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -151,10 +125,7 @@ class RvcCleanModeCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -162,10 +133,7 @@ class RvcCleanModeCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index afb7a0a65196e3..bcb251b79059e3 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcOperationalStateCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcOperationalStateCluster.kt @@ -24,43 +24,27 @@ class RvcOperationalStateCluster(private val endpointId: UShort) { val commandResponseState: RvcOperationalStateClusterErrorStateStruct ) - class PhaseListAttribute( - val value: List? - ) + class PhaseListAttribute(val value: List?) - class CurrentPhaseAttribute( - val value: UByte? - ) + class CurrentPhaseAttribute(val value: UByte?) - class CountdownTimeAttribute( - val value: UInt? - ) + class CountdownTimeAttribute(val value: UInt?) class OperationalStateListAttribute( val value: List ) - class OperationalErrorAttribute( - val value: RvcOperationalStateClusterErrorStateStruct - ) + class OperationalErrorAttribute(val value: RvcOperationalStateClusterErrorStateStruct) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun pause(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { + suspend fun pause(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -68,7 +52,7 @@ class RvcOperationalStateCluster(private val endpointId: UShort) { } } - suspend fun stop(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { + suspend fun stop(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -76,7 +60,7 @@ class RvcOperationalStateCluster(private val endpointId: UShort) { } } - suspend fun start(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { + suspend fun start(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -84,7 +68,7 @@ class RvcOperationalStateCluster(private val endpointId: UShort) { } } - suspend fun resume(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { + suspend fun resume(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -96,10 +80,7 @@ class RvcOperationalStateCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribePhaseListAttribute( - minInterval: Int, - maxInterval: Int - ): PhaseListAttribute { + suspend fun subscribePhaseListAttribute(minInterval: Int, maxInterval: Int): PhaseListAttribute { // Implementation needs to be added here } @@ -140,10 +121,7 @@ class RvcOperationalStateCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeOperationalStateAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeOperationalStateAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -184,10 +162,7 @@ class RvcOperationalStateCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -206,10 +181,7 @@ class RvcOperationalStateCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -217,10 +189,7 @@ class RvcOperationalStateCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 8b2fb445ba4e06..3b41c31cd6de6f 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcRunModeCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcRunModeCluster.kt @@ -20,36 +20,24 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class RvcRunModeCluster(private val endpointId: UShort) { - class ChangeToModeResponse( - val status: UInt, - val statusText: String? - ) + class ChangeToModeResponse(val status: UInt, val statusText: String?) - class SupportedModesAttribute( - val value: List - ) + class SupportedModesAttribute(val value: List) - class OnModeAttribute( - val value: UByte? - ) + class OnModeAttribute(val value: UByte?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun changeToMode(newMode: UByte, timedInvokeTimeoutMs: Int? = null): ChangeToModeResponse { + suspend fun changeToMode( + newMode: UByte, + timedInvokeTimeoutMs: Int? = null + ): ChangeToModeResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -72,10 +60,7 @@ class RvcRunModeCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeCurrentModeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeCurrentModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -83,23 +68,15 @@ class RvcRunModeCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeOnModeAttribute( - value: UByte - ) { + suspend fun writeOnModeAttribute(value: UByte) { // Implementation needs to be added here } - suspend fun writeOnModeAttribute( - value: UByte, - timedWriteTimeoutMs: Int - ) { + suspend fun writeOnModeAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeOnModeAttribute( - minInterval: Int, - maxInterval: Int - ): OnModeAttribute { + suspend fun subscribeOnModeAttribute(minInterval: Int, maxInterval: Int): OnModeAttribute { // Implementation needs to be added here } @@ -129,10 +106,7 @@ class RvcRunModeCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -151,10 +125,7 @@ class RvcRunModeCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -162,10 +133,7 @@ class RvcRunModeCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index cc60034dfb7d42..fed4498e1ce04f 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SampleMeiCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SampleMeiCluster.kt @@ -20,27 +20,17 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class SampleMeiCluster(private val endpointId: UShort) { - class AddArgumentsResponse( - val returnValue: UByte - ) + class AddArgumentsResponse(val returnValue: UByte) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun ping(timedInvokeTimeoutMs: Int? = null) { + suspend fun ping(timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -48,7 +38,11 @@ class SampleMeiCluster(private val endpointId: UShort) { } } - suspend fun addArguments(arg1: UByte, arg2: UByte, timedInvokeTimeoutMs: Int? = null): AddArgumentsResponse { + suspend fun addArguments( + arg1: UByte, + arg2: UByte, + timedInvokeTimeoutMs: Int? = null + ): AddArgumentsResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -60,23 +54,15 @@ class SampleMeiCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeFlipFlopAttribute( - value: Boolean - ) { + suspend fun writeFlipFlopAttribute(value: Boolean) { // Implementation needs to be added here } - suspend fun writeFlipFlopAttribute( - value: Boolean, - timedWriteTimeoutMs: Int - ) { + suspend fun writeFlipFlopAttribute(value: Boolean, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeFlipFlopAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeFlipFlopAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -106,10 +92,7 @@ class SampleMeiCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -128,10 +111,7 @@ class SampleMeiCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -139,10 +119,7 @@ class SampleMeiCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 68b0365bb2d9d3..1aa49a8e0d17db 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ScenesCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ScenesCluster.kt @@ -20,87 +20,65 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class ScenesCluster(private val endpointId: UShort) { - class AddSceneResponse( - val status: UShort, - val groupID: UShort, - val sceneID: UByte - ) + class AddSceneResponse(val status: UShort, val groupID: UShort, val sceneID: UByte) class ViewSceneResponse( - val status: UShort, - val groupID: UShort, - val sceneID: UByte, - val transitionTime: UShort?, - val sceneName: String?, + val status: UShort, + val groupID: UShort, + val sceneID: UByte, + val transitionTime: UShort?, + val sceneName: String?, val extensionFieldSets: List? ) - class RemoveSceneResponse( - val status: UShort, - val groupID: UShort, - val sceneID: UByte - ) + class RemoveSceneResponse(val status: UShort, val groupID: UShort, val sceneID: UByte) - class RemoveAllScenesResponse( - val status: UShort, - val groupID: UShort - ) + class RemoveAllScenesResponse(val status: UShort, val groupID: UShort) - class StoreSceneResponse( - val status: UShort, - val groupID: UShort, - val sceneID: UByte - ) + class StoreSceneResponse(val status: UShort, val groupID: UShort, val sceneID: UByte) class GetSceneMembershipResponse( - val status: UShort, - val capacity: UByte?, - val groupID: UShort, + val status: UShort, + val capacity: UByte?, + val groupID: UShort, val sceneList: List? ) - class EnhancedAddSceneResponse( - val status: UShort, - val groupID: UShort, - val sceneID: UByte - ) + class EnhancedAddSceneResponse(val status: UShort, val groupID: UShort, val sceneID: UByte) class EnhancedViewSceneResponse( - val status: UShort, - val groupID: UShort, - val sceneID: UByte, - val transitionTime: UShort?, - val sceneName: String?, + val status: UShort, + val groupID: UShort, + val sceneID: UByte, + val transitionTime: UShort?, + val sceneName: String?, val extensionFieldSets: List? ) class CopySceneResponse( - val status: UShort, - val groupIdentifierFrom: UShort, + val status: UShort, + val groupIdentifierFrom: UShort, val sceneIdentifierFrom: UByte ) - class LastConfiguredByAttribute( - val value: ULong? - ) + class LastConfiguredByAttribute(val value: ULong?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun addScene(groupID: UShort, sceneID: UByte, transitionTime: UShort, sceneName: String, extensionFieldSets: List, timedInvokeTimeoutMs: Int? = null): AddSceneResponse { + suspend fun addScene( + groupID: UShort, + sceneID: UByte, + transitionTime: UShort, + sceneName: String, + extensionFieldSets: List, + timedInvokeTimeoutMs: Int? = null + ): AddSceneResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -108,7 +86,11 @@ class ScenesCluster(private val endpointId: UShort) { } } - suspend fun viewScene(groupID: UShort, sceneID: UByte, timedInvokeTimeoutMs: Int? = null): ViewSceneResponse { + suspend fun viewScene( + groupID: UShort, + sceneID: UByte, + timedInvokeTimeoutMs: Int? = null + ): ViewSceneResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -116,7 +98,11 @@ class ScenesCluster(private val endpointId: UShort) { } } - suspend fun removeScene(groupID: UShort, sceneID: UByte, timedInvokeTimeoutMs: Int? = null): RemoveSceneResponse { + suspend fun removeScene( + groupID: UShort, + sceneID: UByte, + timedInvokeTimeoutMs: Int? = null + ): RemoveSceneResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -124,7 +110,10 @@ class ScenesCluster(private val endpointId: UShort) { } } - suspend fun removeAllScenes(groupID: UShort, timedInvokeTimeoutMs: Int? = null): RemoveAllScenesResponse { + suspend fun removeAllScenes( + groupID: UShort, + timedInvokeTimeoutMs: Int? = null + ): RemoveAllScenesResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -132,7 +121,11 @@ class ScenesCluster(private val endpointId: UShort) { } } - suspend fun storeScene(groupID: UShort, sceneID: UByte, timedInvokeTimeoutMs: Int? = null): StoreSceneResponse { + suspend fun storeScene( + groupID: UShort, + sceneID: UByte, + timedInvokeTimeoutMs: Int? = null + ): StoreSceneResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -140,7 +133,12 @@ class ScenesCluster(private val endpointId: UShort) { } } - suspend fun recallScene(groupID: UShort, sceneID: UByte, transitionTime: UShort?, timedInvokeTimeoutMs: Int? = null) { + suspend fun recallScene( + groupID: UShort, + sceneID: UByte, + transitionTime: UShort?, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -148,7 +146,10 @@ class ScenesCluster(private val endpointId: UShort) { } } - suspend fun getSceneMembership(groupID: UShort, timedInvokeTimeoutMs: Int? = null): GetSceneMembershipResponse { + suspend fun getSceneMembership( + groupID: UShort, + timedInvokeTimeoutMs: Int? = null + ): GetSceneMembershipResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -156,7 +157,14 @@ class ScenesCluster(private val endpointId: UShort) { } } - suspend fun enhancedAddScene(groupID: UShort, sceneID: UByte, transitionTime: UShort, sceneName: String, extensionFieldSets: List, timedInvokeTimeoutMs: Int? = null): EnhancedAddSceneResponse { + suspend fun enhancedAddScene( + groupID: UShort, + sceneID: UByte, + transitionTime: UShort, + sceneName: String, + extensionFieldSets: List, + timedInvokeTimeoutMs: Int? = null + ): EnhancedAddSceneResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -164,7 +172,11 @@ class ScenesCluster(private val endpointId: UShort) { } } - suspend fun enhancedViewScene(groupID: UShort, sceneID: UByte, timedInvokeTimeoutMs: Int? = null): EnhancedViewSceneResponse { + suspend fun enhancedViewScene( + groupID: UShort, + sceneID: UByte, + timedInvokeTimeoutMs: Int? = null + ): EnhancedViewSceneResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -172,7 +184,14 @@ class ScenesCluster(private val endpointId: UShort) { } } - suspend fun copyScene(mode: UInt, groupIdentifierFrom: UShort, sceneIdentifierFrom: UByte, groupIdentifierTo: UShort, sceneIdentifierTo: UByte, timedInvokeTimeoutMs: Int? = null): CopySceneResponse { + suspend fun copyScene( + mode: UInt, + groupIdentifierFrom: UShort, + sceneIdentifierFrom: UByte, + groupIdentifierTo: UShort, + sceneIdentifierTo: UByte, + timedInvokeTimeoutMs: Int? = null + ): CopySceneResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -184,10 +203,7 @@ class ScenesCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeSceneCountAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeSceneCountAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -195,10 +211,7 @@ class ScenesCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeCurrentSceneAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeCurrentSceneAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -206,10 +219,7 @@ class ScenesCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeCurrentGroupAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeCurrentGroupAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -217,10 +227,7 @@ class ScenesCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeSceneValidAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeSceneValidAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -228,10 +235,7 @@ class ScenesCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeNameSupportAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeNameSupportAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -250,10 +254,7 @@ class ScenesCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeSceneTableSizeAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeSceneTableSizeAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -261,10 +262,7 @@ class ScenesCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRemainingCapacityAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeRemainingCapacityAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -294,10 +292,7 @@ class ScenesCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -316,10 +311,7 @@ class ScenesCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -327,10 +319,7 @@ class ScenesCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 1f77bc47b38a66..82210bdece4948 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SmokeCoAlarmCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SmokeCoAlarmCluster.kt @@ -20,23 +20,15 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class SmokeCoAlarmCluster(private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun selfTestRequest(timedInvokeTimeoutMs: Int? = null) { + suspend fun selfTestRequest(timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -48,10 +40,7 @@ class SmokeCoAlarmCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeExpressedStateAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeExpressedStateAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -59,10 +48,7 @@ class SmokeCoAlarmCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeSmokeStateAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeSmokeStateAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -70,10 +56,7 @@ class SmokeCoAlarmCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeCOStateAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeCOStateAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -81,10 +64,7 @@ class SmokeCoAlarmCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeBatteryAlertAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeBatteryAlertAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -92,10 +72,7 @@ class SmokeCoAlarmCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeDeviceMutedAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeDeviceMutedAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -103,10 +80,7 @@ class SmokeCoAlarmCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeTestInProgressAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeTestInProgressAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -114,10 +88,7 @@ class SmokeCoAlarmCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeHardwareFaultAlertAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeHardwareFaultAlertAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -125,10 +96,7 @@ class SmokeCoAlarmCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEndOfServiceAlertAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeEndOfServiceAlertAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -136,10 +104,7 @@ class SmokeCoAlarmCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeInterconnectSmokeAlarmAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeInterconnectSmokeAlarmAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -147,10 +112,7 @@ class SmokeCoAlarmCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeInterconnectCOAlarmAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeInterconnectCOAlarmAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -158,10 +120,7 @@ class SmokeCoAlarmCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeContaminationStateAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeContaminationStateAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -169,23 +128,15 @@ class SmokeCoAlarmCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeSmokeSensitivityLevelAttribute( - value: UInt - ) { + suspend fun writeSmokeSensitivityLevelAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeSmokeSensitivityLevelAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeSmokeSensitivityLevelAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeSmokeSensitivityLevelAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeSmokeSensitivityLevelAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -193,10 +144,7 @@ class SmokeCoAlarmCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeExpiryDateAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeExpiryDateAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -226,10 +174,7 @@ class SmokeCoAlarmCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -248,10 +193,7 @@ class SmokeCoAlarmCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -259,10 +201,7 @@ class SmokeCoAlarmCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 795fa290ea7733..83fa67cbdf9cfc 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SoftwareDiagnosticsCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SoftwareDiagnosticsCluster.kt @@ -20,27 +20,17 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class SoftwareDiagnosticsCluster(private val endpointId: UShort) { - class ThreadMetricsAttribute( - val value: List? - ) + class ThreadMetricsAttribute(val value: List?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun resetWatermarks(timedInvokeTimeoutMs: Int? = null) { + suspend fun resetWatermarks(timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -63,10 +53,7 @@ class SoftwareDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeCurrentHeapFreeAttribute( - minInterval: Int, - maxInterval: Int - ): ULong { + suspend fun subscribeCurrentHeapFreeAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } @@ -74,10 +61,7 @@ class SoftwareDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeCurrentHeapUsedAttribute( - minInterval: Int, - maxInterval: Int - ): ULong { + suspend fun subscribeCurrentHeapUsedAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } @@ -118,10 +102,7 @@ class SoftwareDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -140,10 +121,7 @@ class SoftwareDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -151,10 +129,7 @@ class SoftwareDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 746ab548afd4d2..fb6375fbfe43d1 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SwitchCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SwitchCluster.kt @@ -20,30 +20,19 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class SwitchCluster(private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readNumberOfPositionsAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeNumberOfPositionsAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeNumberOfPositionsAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -51,10 +40,7 @@ class SwitchCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeCurrentPositionAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeCurrentPositionAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -62,10 +48,7 @@ class SwitchCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeMultiPressMaxAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMultiPressMaxAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -95,10 +78,7 @@ class SwitchCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -117,10 +97,7 @@ class SwitchCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -128,10 +105,7 @@ class SwitchCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 221715f31f9f6f..96f1449c769d6b 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TargetNavigatorCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TargetNavigatorCluster.kt @@ -20,32 +20,23 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class TargetNavigatorCluster(private val endpointId: UShort) { - class NavigateTargetResponse( - val status: UInt, - val data: String? - ) + class NavigateTargetResponse(val status: UInt, val data: String?) - class TargetListAttribute( - val value: List - ) + class TargetListAttribute(val value: List) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun navigateTarget(target: UByte, data: String?, timedInvokeTimeoutMs: Int? = null): NavigateTargetResponse { + suspend fun navigateTarget( + target: UByte, + data: String?, + timedInvokeTimeoutMs: Int? = null + ): NavigateTargetResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -68,10 +59,7 @@ class TargetNavigatorCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeCurrentTargetAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeCurrentTargetAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -101,10 +89,7 @@ class TargetNavigatorCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -123,10 +108,7 @@ class TargetNavigatorCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -134,10 +116,7 @@ class TargetNavigatorCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 5c4cd5c3c759d7..f147238c326ecf 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TemperatureControlCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TemperatureControlCluster.kt @@ -20,27 +20,21 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class TemperatureControlCluster(private val endpointId: UShort) { - class SupportedTemperatureLevelsAttribute( - val value: List? - ) + class SupportedTemperatureLevelsAttribute(val value: List?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun setTemperature(targetTemperature: Short?, targetTemperatureLevel: UByte?, timedInvokeTimeoutMs: Int? = null) { + suspend fun setTemperature( + targetTemperature: Short?, + targetTemperatureLevel: UByte?, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -52,10 +46,7 @@ class TemperatureControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeTemperatureSetpointAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeTemperatureSetpointAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -63,10 +54,7 @@ class TemperatureControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeMinTemperatureAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeMinTemperatureAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -74,10 +62,7 @@ class TemperatureControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeMaxTemperatureAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeMaxTemperatureAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -85,10 +70,7 @@ class TemperatureControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeStepAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeStepAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -140,10 +122,7 @@ class TemperatureControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -162,10 +141,7 @@ class TemperatureControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -173,10 +149,7 @@ class TemperatureControlCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index ae8aae14775924..f5391045e24a44 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TemperatureMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TemperatureMeasurementCluster.kt @@ -20,33 +20,19 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class TemperatureMeasurementCluster(private val endpointId: UShort) { - class MeasuredValueAttribute( - val value: Short? - ) + class MeasuredValueAttribute(val value: Short?) - class MinMeasuredValueAttribute( - val value: Short? - ) + class MinMeasuredValueAttribute(val value: Short?) - class MaxMeasuredValueAttribute( - val value: Short? - ) + class MaxMeasuredValueAttribute(val value: Short?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute { // Implementation needs to be added here @@ -85,10 +71,7 @@ class TemperatureMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeToleranceAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeToleranceAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -118,10 +101,7 @@ class TemperatureMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -140,10 +120,7 @@ class TemperatureMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -151,10 +128,7 @@ class TemperatureMeasurementCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index c0c4988bb3312d..a5a41b0fd5ee3f 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThermostatCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThermostatCluster.kt @@ -21,73 +21,43 @@ import matter.devicecontroller.cluster.structs.* class ThermostatCluster(private val endpointId: UShort) { class GetWeeklyScheduleResponse( - val numberOfTransitionsForSequence: UByte, - val dayOfWeekForSequence: UInt, - val modeForSequence: UInt, + val numberOfTransitionsForSequence: UByte, + val dayOfWeekForSequence: UInt, + val modeForSequence: UInt, val transitions: List ) - class LocalTemperatureAttribute( - val value: Short? - ) + class LocalTemperatureAttribute(val value: Short?) - class OutdoorTemperatureAttribute( - val value: Short? - ) + class OutdoorTemperatureAttribute(val value: Short?) - class TemperatureSetpointHoldDurationAttribute( - val value: UShort? - ) + class TemperatureSetpointHoldDurationAttribute(val value: UShort?) - class SetpointChangeAmountAttribute( - val value: Short? - ) + class SetpointChangeAmountAttribute(val value: Short?) - class OccupiedSetbackAttribute( - val value: UByte? - ) + class OccupiedSetbackAttribute(val value: UByte?) - class OccupiedSetbackMinAttribute( - val value: UByte? - ) + class OccupiedSetbackMinAttribute(val value: UByte?) - class OccupiedSetbackMaxAttribute( - val value: UByte? - ) + class OccupiedSetbackMaxAttribute(val value: UByte?) - class UnoccupiedSetbackAttribute( - val value: UByte? - ) + class UnoccupiedSetbackAttribute(val value: UByte?) - class UnoccupiedSetbackMinAttribute( - val value: UByte? - ) + class UnoccupiedSetbackMinAttribute(val value: UByte?) - class UnoccupiedSetbackMaxAttribute( - val value: UByte? - ) + class UnoccupiedSetbackMaxAttribute(val value: UByte?) - class ACCoilTemperatureAttribute( - val value: Short? - ) + class ACCoilTemperatureAttribute(val value: Short?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun setpointRaiseLower(mode: UInt, amount: Byte, timedInvokeTimeoutMs: Int? = null) { + suspend fun setpointRaiseLower(mode: UInt, amount: Byte, timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -95,7 +65,13 @@ class ThermostatCluster(private val endpointId: UShort) { } } - suspend fun setWeeklySchedule(numberOfTransitionsForSequence: UByte, dayOfWeekForSequence: UInt, modeForSequence: UInt, transitions: List, timedInvokeTimeoutMs: Int? = null) { + suspend fun setWeeklySchedule( + numberOfTransitionsForSequence: UByte, + dayOfWeekForSequence: UInt, + modeForSequence: UInt, + transitions: List, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -103,7 +79,11 @@ class ThermostatCluster(private val endpointId: UShort) { } } - suspend fun getWeeklySchedule(daysToReturn: UInt, modeToReturn: UInt, timedInvokeTimeoutMs: Int? = null): GetWeeklyScheduleResponse { + suspend fun getWeeklySchedule( + daysToReturn: UInt, + modeToReturn: UInt, + timedInvokeTimeoutMs: Int? = null + ): GetWeeklyScheduleResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -111,7 +91,7 @@ class ThermostatCluster(private val endpointId: UShort) { } } - suspend fun clearWeeklySchedule(timedInvokeTimeoutMs: Int? = null) { + suspend fun clearWeeklySchedule(timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -145,10 +125,7 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeOccupancyAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeOccupancyAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -156,10 +133,7 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeAbsMinHeatSetpointLimitAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeAbsMinHeatSetpointLimitAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -167,10 +141,7 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeAbsMaxHeatSetpointLimitAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeAbsMaxHeatSetpointLimitAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -178,10 +149,7 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeAbsMinCoolSetpointLimitAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeAbsMinCoolSetpointLimitAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -189,10 +157,7 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeAbsMaxCoolSetpointLimitAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeAbsMaxCoolSetpointLimitAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -200,10 +165,7 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribePICoolingDemandAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribePICoolingDemandAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -211,10 +173,7 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribePIHeatingDemandAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribePIHeatingDemandAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -222,16 +181,11 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeHVACSystemTypeConfigurationAttribute( - value: UInt - ) { + suspend fun writeHVACSystemTypeConfigurationAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeHVACSystemTypeConfigurationAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeHVACSystemTypeConfigurationAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -246,16 +200,11 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeLocalTemperatureCalibrationAttribute( - value: Byte - ) { + suspend fun writeLocalTemperatureCalibrationAttribute(value: Byte) { // Implementation needs to be added here } - suspend fun writeLocalTemperatureCalibrationAttribute( - value: Byte, - timedWriteTimeoutMs: Int - ) { + suspend fun writeLocalTemperatureCalibrationAttribute(value: Byte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -270,23 +219,15 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeOccupiedCoolingSetpointAttribute( - value: Short - ) { + suspend fun writeOccupiedCoolingSetpointAttribute(value: Short) { // Implementation needs to be added here } - suspend fun writeOccupiedCoolingSetpointAttribute( - value: Short, - timedWriteTimeoutMs: Int - ) { + suspend fun writeOccupiedCoolingSetpointAttribute(value: Short, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeOccupiedCoolingSetpointAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeOccupiedCoolingSetpointAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -294,23 +235,15 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeOccupiedHeatingSetpointAttribute( - value: Short - ) { + suspend fun writeOccupiedHeatingSetpointAttribute(value: Short) { // Implementation needs to be added here } - suspend fun writeOccupiedHeatingSetpointAttribute( - value: Short, - timedWriteTimeoutMs: Int - ) { + suspend fun writeOccupiedHeatingSetpointAttribute(value: Short, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeOccupiedHeatingSetpointAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeOccupiedHeatingSetpointAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -318,16 +251,11 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeUnoccupiedCoolingSetpointAttribute( - value: Short - ) { + suspend fun writeUnoccupiedCoolingSetpointAttribute(value: Short) { // Implementation needs to be added here } - suspend fun writeUnoccupiedCoolingSetpointAttribute( - value: Short, - timedWriteTimeoutMs: Int - ) { + suspend fun writeUnoccupiedCoolingSetpointAttribute(value: Short, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -342,16 +270,11 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeUnoccupiedHeatingSetpointAttribute( - value: Short - ) { + suspend fun writeUnoccupiedHeatingSetpointAttribute(value: Short) { // Implementation needs to be added here } - suspend fun writeUnoccupiedHeatingSetpointAttribute( - value: Short, - timedWriteTimeoutMs: Int - ) { + suspend fun writeUnoccupiedHeatingSetpointAttribute(value: Short, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -366,23 +289,15 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeMinHeatSetpointLimitAttribute( - value: Short - ) { + suspend fun writeMinHeatSetpointLimitAttribute(value: Short) { // Implementation needs to be added here } - suspend fun writeMinHeatSetpointLimitAttribute( - value: Short, - timedWriteTimeoutMs: Int - ) { + suspend fun writeMinHeatSetpointLimitAttribute(value: Short, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeMinHeatSetpointLimitAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeMinHeatSetpointLimitAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -390,23 +305,15 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeMaxHeatSetpointLimitAttribute( - value: Short - ) { + suspend fun writeMaxHeatSetpointLimitAttribute(value: Short) { // Implementation needs to be added here } - suspend fun writeMaxHeatSetpointLimitAttribute( - value: Short, - timedWriteTimeoutMs: Int - ) { + suspend fun writeMaxHeatSetpointLimitAttribute(value: Short, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeMaxHeatSetpointLimitAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeMaxHeatSetpointLimitAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -414,23 +321,15 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeMinCoolSetpointLimitAttribute( - value: Short - ) { + suspend fun writeMinCoolSetpointLimitAttribute(value: Short) { // Implementation needs to be added here } - suspend fun writeMinCoolSetpointLimitAttribute( - value: Short, - timedWriteTimeoutMs: Int - ) { + suspend fun writeMinCoolSetpointLimitAttribute(value: Short, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeMinCoolSetpointLimitAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeMinCoolSetpointLimitAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -438,23 +337,15 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeMaxCoolSetpointLimitAttribute( - value: Short - ) { + suspend fun writeMaxCoolSetpointLimitAttribute(value: Short) { // Implementation needs to be added here } - suspend fun writeMaxCoolSetpointLimitAttribute( - value: Short, - timedWriteTimeoutMs: Int - ) { + suspend fun writeMaxCoolSetpointLimitAttribute(value: Short, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeMaxCoolSetpointLimitAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeMaxCoolSetpointLimitAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -462,23 +353,15 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeMinSetpointDeadBandAttribute( - value: Byte - ) { + suspend fun writeMinSetpointDeadBandAttribute(value: Byte) { // Implementation needs to be added here } - suspend fun writeMinSetpointDeadBandAttribute( - value: Byte, - timedWriteTimeoutMs: Int - ) { + suspend fun writeMinSetpointDeadBandAttribute(value: Byte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeMinSetpointDeadBandAttribute( - minInterval: Int, - maxInterval: Int - ): Byte { + suspend fun subscribeMinSetpointDeadBandAttribute(minInterval: Int, maxInterval: Int): Byte { // Implementation needs to be added here } @@ -486,23 +369,15 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeRemoteSensingAttribute( - value: UInt - ) { + suspend fun writeRemoteSensingAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeRemoteSensingAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeRemoteSensingAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeRemoteSensingAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeRemoteSensingAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -510,16 +385,11 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeControlSequenceOfOperationAttribute( - value: UInt - ) { + suspend fun writeControlSequenceOfOperationAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeControlSequenceOfOperationAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeControlSequenceOfOperationAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -534,23 +404,15 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeSystemModeAttribute( - value: UInt - ) { + suspend fun writeSystemModeAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeSystemModeAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeSystemModeAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeSystemModeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeSystemModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -558,10 +420,7 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeThermostatRunningModeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeThermostatRunningModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -569,10 +428,7 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeStartOfWeekAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeStartOfWeekAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -602,33 +458,24 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeTemperatureSetpointHoldAttribute( - value: UInt - ) { + suspend fun writeTemperatureSetpointHoldAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeTemperatureSetpointHoldAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeTemperatureSetpointHoldAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeTemperatureSetpointHoldAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeTemperatureSetpointHoldAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readTemperatureSetpointHoldDurationAttribute(): TemperatureSetpointHoldDurationAttribute { + suspend fun readTemperatureSetpointHoldDurationAttribute(): + TemperatureSetpointHoldDurationAttribute { // Implementation needs to be added here } - suspend fun writeTemperatureSetpointHoldDurationAttribute( - value: UShort - ) { + suspend fun writeTemperatureSetpointHoldDurationAttribute(value: UShort) { // Implementation needs to be added here } @@ -650,9 +497,7 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeThermostatProgrammingOperationModeAttribute( - value: UInt - ) { + suspend fun writeThermostatProgrammingOperationModeAttribute(value: UInt) { // Implementation needs to be added here } @@ -674,10 +519,7 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeThermostatRunningStateAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeThermostatRunningStateAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -685,10 +527,7 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeSetpointChangeSourceAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeSetpointChangeSourceAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -718,16 +557,11 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeOccupiedSetbackAttribute( - value: UByte - ) { + suspend fun writeOccupiedSetbackAttribute(value: UByte) { // Implementation needs to be added here } - suspend fun writeOccupiedSetbackAttribute( - value: UByte, - timedWriteTimeoutMs: Int - ) { + suspend fun writeOccupiedSetbackAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -764,16 +598,11 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeUnoccupiedSetbackAttribute( - value: UByte - ) { + suspend fun writeUnoccupiedSetbackAttribute(value: UByte) { // Implementation needs to be added here } - suspend fun writeUnoccupiedSetbackAttribute( - value: UByte, - timedWriteTimeoutMs: Int - ) { + suspend fun writeUnoccupiedSetbackAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -810,23 +639,15 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeEmergencyHeatDeltaAttribute( - value: UByte - ) { + suspend fun writeEmergencyHeatDeltaAttribute(value: UByte) { // Implementation needs to be added here } - suspend fun writeEmergencyHeatDeltaAttribute( - value: UByte, - timedWriteTimeoutMs: Int - ) { + suspend fun writeEmergencyHeatDeltaAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeEmergencyHeatDeltaAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeEmergencyHeatDeltaAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -834,23 +655,15 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeACTypeAttribute( - value: UInt - ) { + suspend fun writeACTypeAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeACTypeAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeACTypeAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeACTypeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeACTypeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -858,23 +671,15 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeACCapacityAttribute( - value: UShort - ) { + suspend fun writeACCapacityAttribute(value: UShort) { // Implementation needs to be added here } - suspend fun writeACCapacityAttribute( - value: UShort, - timedWriteTimeoutMs: Int - ) { + suspend fun writeACCapacityAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeACCapacityAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeACCapacityAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -882,23 +687,15 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeACRefrigerantTypeAttribute( - value: UInt - ) { + suspend fun writeACRefrigerantTypeAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeACRefrigerantTypeAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeACRefrigerantTypeAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeACRefrigerantTypeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeACRefrigerantTypeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -906,23 +703,15 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeACCompressorTypeAttribute( - value: UInt - ) { + suspend fun writeACCompressorTypeAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeACCompressorTypeAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeACCompressorTypeAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeACCompressorTypeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeACCompressorTypeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -930,23 +719,15 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeACErrorCodeAttribute( - value: ULong - ) { + suspend fun writeACErrorCodeAttribute(value: ULong) { // Implementation needs to be added here } - suspend fun writeACErrorCodeAttribute( - value: ULong, - timedWriteTimeoutMs: Int - ) { + suspend fun writeACErrorCodeAttribute(value: ULong, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeACErrorCodeAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeACErrorCodeAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -954,23 +735,15 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeACLouverPositionAttribute( - value: UInt - ) { + suspend fun writeACLouverPositionAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeACLouverPositionAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeACLouverPositionAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeACLouverPositionAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeACLouverPositionAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -989,23 +762,15 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeACCapacityformatAttribute( - value: UInt - ) { + suspend fun writeACCapacityformatAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeACCapacityformatAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeACCapacityformatAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeACCapacityformatAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeACCapacityformatAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -1035,10 +800,7 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -1057,10 +819,7 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -1068,10 +827,7 @@ class ThermostatCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index a71289868821cf..32ddcfc751bc5d 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThermostatUserInterfaceConfigurationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThermostatUserInterfaceConfigurationCluster.kt @@ -20,43 +20,27 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class ThermostatUserInterfaceConfigurationCluster(private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readTemperatureDisplayModeAttribute(): UByte { // Implementation needs to be added here } - suspend fun writeTemperatureDisplayModeAttribute( - value: UInt - ) { + suspend fun writeTemperatureDisplayModeAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeTemperatureDisplayModeAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeTemperatureDisplayModeAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeTemperatureDisplayModeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeTemperatureDisplayModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -64,23 +48,15 @@ class ThermostatUserInterfaceConfigurationCluster(private val endpointId: UShort // Implementation needs to be added here } - suspend fun writeKeypadLockoutAttribute( - value: UInt - ) { + suspend fun writeKeypadLockoutAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeKeypadLockoutAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeKeypadLockoutAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeKeypadLockoutAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeKeypadLockoutAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -88,16 +64,11 @@ class ThermostatUserInterfaceConfigurationCluster(private val endpointId: UShort // Implementation needs to be added here } - suspend fun writeScheduleProgrammingVisibilityAttribute( - value: UInt - ) { + suspend fun writeScheduleProgrammingVisibilityAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeScheduleProgrammingVisibilityAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeScheduleProgrammingVisibilityAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -134,10 +105,7 @@ class ThermostatUserInterfaceConfigurationCluster(private val endpointId: UShort // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -156,10 +124,7 @@ class ThermostatUserInterfaceConfigurationCluster(private val endpointId: UShort // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -167,10 +132,7 @@ class ThermostatUserInterfaceConfigurationCluster(private val endpointId: UShort // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 2117ee444ca151..7bfc05f261db57 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThreadNetworkDiagnosticsCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThreadNetworkDiagnosticsCluster.kt @@ -20,103 +20,57 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { - class ChannelAttribute( - val value: UShort? - ) + class ChannelAttribute(val value: UShort?) - class RoutingRoleAttribute( - val value: UInt? - ) + class RoutingRoleAttribute(val value: UInt?) - class NetworkNameAttribute( - val value: String? - ) + class NetworkNameAttribute(val value: String?) - class PanIdAttribute( - val value: UShort? - ) + class PanIdAttribute(val value: UShort?) - class ExtendedPanIdAttribute( - val value: ULong? - ) + class ExtendedPanIdAttribute(val value: ULong?) - class MeshLocalPrefixAttribute( - val value: ByteArray? - ) + class MeshLocalPrefixAttribute(val value: ByteArray?) - class NeighborTableAttribute( - val value: List - ) + class NeighborTableAttribute(val value: List) - class RouteTableAttribute( - val value: List - ) + class RouteTableAttribute(val value: List) - class PartitionIdAttribute( - val value: UInt? - ) + class PartitionIdAttribute(val value: UInt?) - class WeightingAttribute( - val value: UShort? - ) + class WeightingAttribute(val value: UShort?) - class DataVersionAttribute( - val value: UShort? - ) + class DataVersionAttribute(val value: UShort?) - class StableDataVersionAttribute( - val value: UShort? - ) + class StableDataVersionAttribute(val value: UShort?) - class LeaderRouterIdAttribute( - val value: UByte? - ) + class LeaderRouterIdAttribute(val value: UByte?) - class ActiveTimestampAttribute( - val value: ULong? - ) + class ActiveTimestampAttribute(val value: ULong?) - class PendingTimestampAttribute( - val value: ULong? - ) + class PendingTimestampAttribute(val value: ULong?) - class DelayAttribute( - val value: UInt? - ) + class DelayAttribute(val value: UInt?) - class SecurityPolicyAttribute( - val value: ThreadNetworkDiagnosticsClusterSecurityPolicy? - ) + class SecurityPolicyAttribute(val value: ThreadNetworkDiagnosticsClusterSecurityPolicy?) - class ChannelPage0MaskAttribute( - val value: ByteArray? - ) + class ChannelPage0MaskAttribute(val value: ByteArray?) class OperationalDatasetComponentsAttribute( val value: ThreadNetworkDiagnosticsClusterOperationalDatasetComponents? ) - class ActiveNetworkFaultsListAttribute( - val value: List - ) + class ActiveNetworkFaultsListAttribute(val value: List) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun resetCounts(timedInvokeTimeoutMs: Int? = null) { + suspend fun resetCounts(timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -128,10 +82,7 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeChannelAttribute( - minInterval: Int, - maxInterval: Int - ): ChannelAttribute { + suspend fun subscribeChannelAttribute(minInterval: Int, maxInterval: Int): ChannelAttribute { // Implementation needs to be added here } @@ -161,10 +112,7 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribePanIdAttribute( - minInterval: Int, - maxInterval: Int - ): PanIdAttribute { + suspend fun subscribePanIdAttribute(minInterval: Int, maxInterval: Int): PanIdAttribute { // Implementation needs to be added here } @@ -194,10 +142,7 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeOverrunCountAttribute( - minInterval: Int, - maxInterval: Int - ): ULong { + suspend fun subscribeOverrunCountAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } @@ -238,10 +183,7 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeWeightingAttribute( - minInterval: Int, - maxInterval: Int - ): WeightingAttribute { + suspend fun subscribeWeightingAttribute(minInterval: Int, maxInterval: Int): WeightingAttribute { // Implementation needs to be added here } @@ -282,10 +224,7 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeDetachedRoleCountAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeDetachedRoleCountAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -293,10 +232,7 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeChildRoleCountAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeChildRoleCountAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -304,10 +240,7 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRouterRoleCountAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRouterRoleCountAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -315,10 +248,7 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeLeaderRoleCountAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeLeaderRoleCountAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -326,10 +256,7 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeAttachAttemptCountAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeAttachAttemptCountAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -337,10 +264,7 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribePartitionIdChangeCountAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribePartitionIdChangeCountAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -359,10 +283,7 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeParentChangeCountAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeParentChangeCountAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -370,10 +291,7 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeTxTotalCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeTxTotalCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -381,10 +299,7 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeTxUnicastCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeTxUnicastCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -392,10 +307,7 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeTxBroadcastCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeTxBroadcastCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -403,10 +315,7 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeTxAckRequestedCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeTxAckRequestedCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -414,10 +323,7 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeTxAckedCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeTxAckedCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -425,10 +331,7 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeTxNoAckRequestedCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeTxNoAckRequestedCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -436,10 +339,7 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeTxDataCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeTxDataCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -447,10 +347,7 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeTxDataPollCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeTxDataPollCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -458,10 +355,7 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeTxBeaconCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeTxBeaconCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -469,10 +363,7 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeTxBeaconRequestCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeTxBeaconRequestCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -480,10 +371,7 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeTxOtherCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeTxOtherCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -491,10 +379,7 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeTxRetryCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeTxRetryCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -524,10 +409,7 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeTxErrCcaCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeTxErrCcaCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -535,10 +417,7 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeTxErrAbortCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeTxErrAbortCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -546,10 +425,7 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeTxErrBusyChannelCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeTxErrBusyChannelCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -557,10 +433,7 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRxTotalCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeRxTotalCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -568,10 +441,7 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRxUnicastCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeRxUnicastCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -579,10 +449,7 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRxBroadcastCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeRxBroadcastCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -590,10 +457,7 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRxDataCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeRxDataCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -601,10 +465,7 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRxDataPollCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeRxDataPollCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -612,10 +473,7 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRxBeaconCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeRxBeaconCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -623,10 +481,7 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRxBeaconRequestCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeRxBeaconRequestCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -634,10 +489,7 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRxOtherCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeRxOtherCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -645,10 +497,7 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRxAddressFilteredCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeRxAddressFilteredCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -656,10 +505,7 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRxDestAddrFilteredCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeRxDestAddrFilteredCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -667,10 +513,7 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRxDuplicatedCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeRxDuplicatedCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -678,10 +521,7 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRxErrNoFrameCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeRxErrNoFrameCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -700,10 +540,7 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRxErrInvalidSrcAddrCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeRxErrInvalidSrcAddrCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -711,10 +548,7 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRxErrSecCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeRxErrSecCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -722,10 +556,7 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRxErrFcsCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeRxErrFcsCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -733,10 +564,7 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRxErrOtherCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeRxErrOtherCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -766,10 +594,7 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeDelayAttribute( - minInterval: Int, - maxInterval: Int - ): DelayAttribute { + suspend fun subscribeDelayAttribute(minInterval: Int, maxInterval: Int): DelayAttribute { // Implementation needs to be added here } @@ -843,10 +668,7 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -865,10 +687,7 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -876,10 +695,7 @@ class ThreadNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 4a931f2ecaafc5..aae8d98e4562e4 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimeFormatLocalizationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimeFormatLocalizationCluster.kt @@ -20,47 +20,29 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class TimeFormatLocalizationCluster(private val endpointId: UShort) { - class SupportedCalendarTypesAttribute( - val value: List? - ) + class SupportedCalendarTypesAttribute(val value: List?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readHourFormatAttribute(): UByte { // Implementation needs to be added here } - suspend fun writeHourFormatAttribute( - value: UInt - ) { + suspend fun writeHourFormatAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeHourFormatAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeHourFormatAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeHourFormatAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeHourFormatAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -68,23 +50,15 @@ class TimeFormatLocalizationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeActiveCalendarTypeAttribute( - value: UInt - ) { + suspend fun writeActiveCalendarTypeAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeActiveCalendarTypeAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeActiveCalendarTypeAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeActiveCalendarTypeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeActiveCalendarTypeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -125,10 +99,7 @@ class TimeFormatLocalizationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -147,10 +118,7 @@ class TimeFormatLocalizationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -158,10 +126,7 @@ class TimeFormatLocalizationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 7265e14b385583..8ccc02f6ec89c4 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimeSynchronizationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimeSynchronizationCluster.kt @@ -20,51 +20,34 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class TimeSynchronizationCluster(private val endpointId: UShort) { - class SetTimeZoneResponse( - val DSTOffsetRequired: Boolean - ) + class SetTimeZoneResponse(val DSTOffsetRequired: Boolean) - class UTCTimeAttribute( - val value: ULong? - ) + class UTCTimeAttribute(val value: ULong?) - class TrustedTimeSourceAttribute( - val value: TimeSynchronizationClusterTrustedTimeSourceStruct? - ) + class TrustedTimeSourceAttribute(val value: TimeSynchronizationClusterTrustedTimeSourceStruct?) - class DefaultNTPAttribute( - val value: String? - ) + class DefaultNTPAttribute(val value: String?) - class TimeZoneAttribute( - val value: List? - ) + class TimeZoneAttribute(val value: List?) - class DSTOffsetAttribute( - val value: List? - ) + class DSTOffsetAttribute(val value: List?) - class LocalTimeAttribute( - val value: ULong? - ) + class LocalTimeAttribute(val value: ULong?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun setUTCTime(UTCTime: ULong, granularity: UInt, timeSource: UInt?, timedInvokeTimeoutMs: Int? = null) { + suspend fun setUTCTime( + UTCTime: ULong, + granularity: UInt, + timeSource: UInt?, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -72,7 +55,10 @@ class TimeSynchronizationCluster(private val endpointId: UShort) { } } - suspend fun setTrustedTimeSource(trustedTimeSource: TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct?, timedInvokeTimeoutMs: Int? = null) { + suspend fun setTrustedTimeSource( + trustedTimeSource: TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct?, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -80,7 +66,10 @@ class TimeSynchronizationCluster(private val endpointId: UShort) { } } - suspend fun setTimeZone(timeZone: List, timedInvokeTimeoutMs: Int? = null): SetTimeZoneResponse { + suspend fun setTimeZone( + timeZone: List, + timedInvokeTimeoutMs: Int? = null + ): SetTimeZoneResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -88,7 +77,10 @@ class TimeSynchronizationCluster(private val endpointId: UShort) { } } - suspend fun setDSTOffset(DSTOffset: List, timedInvokeTimeoutMs: Int? = null) { + suspend fun setDSTOffset( + DSTOffset: List, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -96,7 +88,7 @@ class TimeSynchronizationCluster(private val endpointId: UShort) { } } - suspend fun setDefaultNTP(defaultNTP: String?, timedInvokeTimeoutMs: Int? = null) { + suspend fun setDefaultNTP(defaultNTP: String?, timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -108,10 +100,7 @@ class TimeSynchronizationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeUTCTimeAttribute( - minInterval: Int, - maxInterval: Int - ): UTCTimeAttribute { + suspend fun subscribeUTCTimeAttribute(minInterval: Int, maxInterval: Int): UTCTimeAttribute { // Implementation needs to be added here } @@ -119,10 +108,7 @@ class TimeSynchronizationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeGranularityAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeGranularityAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -130,10 +116,7 @@ class TimeSynchronizationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeTimeSourceAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeTimeSourceAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -163,10 +146,7 @@ class TimeSynchronizationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeTimeZoneAttribute( - minInterval: Int, - maxInterval: Int - ): TimeZoneAttribute { + suspend fun subscribeTimeZoneAttribute(minInterval: Int, maxInterval: Int): TimeZoneAttribute { // Implementation needs to be added here } @@ -174,10 +154,7 @@ class TimeSynchronizationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeDSTOffsetAttribute( - minInterval: Int, - maxInterval: Int - ): DSTOffsetAttribute { + suspend fun subscribeDSTOffsetAttribute(minInterval: Int, maxInterval: Int): DSTOffsetAttribute { // Implementation needs to be added here } @@ -185,10 +162,7 @@ class TimeSynchronizationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeLocalTimeAttribute( - minInterval: Int, - maxInterval: Int - ): LocalTimeAttribute { + suspend fun subscribeLocalTimeAttribute(minInterval: Int, maxInterval: Int): LocalTimeAttribute { // Implementation needs to be added here } @@ -196,10 +170,7 @@ class TimeSynchronizationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeTimeZoneDatabaseAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeTimeZoneDatabaseAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -207,10 +178,7 @@ class TimeSynchronizationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeNTPServerAvailableAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeNTPServerAvailableAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -218,10 +186,7 @@ class TimeSynchronizationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeTimeZoneListMaxSizeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeTimeZoneListMaxSizeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -229,10 +194,7 @@ class TimeSynchronizationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeDSTOffsetListMaxSizeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeDSTOffsetListMaxSizeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -240,10 +202,7 @@ class TimeSynchronizationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeSupportsDNSResolveAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeSupportsDNSResolveAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -273,10 +232,7 @@ class TimeSynchronizationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -295,10 +251,7 @@ class TimeSynchronizationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -306,10 +259,7 @@ class TimeSynchronizationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimerCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimerCluster.kt index f4d69617982b0e..de64a927d0733c 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimerCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimerCluster.kt @@ -20,23 +20,15 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class TimerCluster(private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun setTimer(newTime: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun setTimer(newTime: UInt, timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -44,7 +36,7 @@ class TimerCluster(private val endpointId: UShort) { } } - suspend fun resetTimer(timedInvokeTimeoutMs: Int? = null) { + suspend fun resetTimer(timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -52,7 +44,7 @@ class TimerCluster(private val endpointId: UShort) { } } - suspend fun addTime(additionalTime: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun addTime(additionalTime: UInt, timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -60,7 +52,7 @@ class TimerCluster(private val endpointId: UShort) { } } - suspend fun reduceTime(timeReduction: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun reduceTime(timeReduction: UInt, timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -72,10 +64,7 @@ class TimerCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeSetTimeAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeSetTimeAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -83,10 +72,7 @@ class TimerCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeTimeRemainingAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeTimeRemainingAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -94,10 +80,7 @@ class TimerCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeTimerStateAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeTimerStateAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -127,10 +110,7 @@ class TimerCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -149,10 +129,7 @@ class TimerCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -160,10 +137,7 @@ class TimerCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 95f692f797ed2a..1ddf7e505d0dd3 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TotalVolatileOrganicCompoundsConcentrationMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TotalVolatileOrganicCompoundsConcentrationMeasurementCluster.kt @@ -20,41 +20,23 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class TotalVolatileOrganicCompoundsConcentrationMeasurementCluster(private val endpointId: UShort) { - class MeasuredValueAttribute( - val value: Float? - ) + class MeasuredValueAttribute(val value: Float?) - class MinMeasuredValueAttribute( - val value: Float? - ) + class MinMeasuredValueAttribute(val value: Float?) - class MaxMeasuredValueAttribute( - val value: Float? - ) + class MaxMeasuredValueAttribute(val value: Float?) - class PeakMeasuredValueAttribute( - val value: Float? - ) + class PeakMeasuredValueAttribute(val value: Float?) - class AverageMeasuredValueAttribute( - val value: Float? - ) + class AverageMeasuredValueAttribute(val value: Float?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute { // Implementation needs to be added here @@ -104,10 +86,7 @@ class TotalVolatileOrganicCompoundsConcentrationMeasurementCluster(private val e // Implementation needs to be added here } - suspend fun subscribePeakMeasuredValueWindowAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -137,10 +116,7 @@ class TotalVolatileOrganicCompoundsConcentrationMeasurementCluster(private val e // Implementation needs to be added here } - suspend fun subscribeUncertaintyAttribute( - minInterval: Int, - maxInterval: Int - ): Float { + suspend fun subscribeUncertaintyAttribute(minInterval: Int, maxInterval: Int): Float { // Implementation needs to be added here } @@ -148,10 +124,7 @@ class TotalVolatileOrganicCompoundsConcentrationMeasurementCluster(private val e // Implementation needs to be added here } - suspend fun subscribeMeasurementUnitAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -159,10 +132,7 @@ class TotalVolatileOrganicCompoundsConcentrationMeasurementCluster(private val e // Implementation needs to be added here } - suspend fun subscribeMeasurementMediumAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -170,10 +140,7 @@ class TotalVolatileOrganicCompoundsConcentrationMeasurementCluster(private val e // Implementation needs to be added here } - suspend fun subscribeLevelValueAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -203,10 +170,7 @@ class TotalVolatileOrganicCompoundsConcentrationMeasurementCluster(private val e // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -225,10 +189,7 @@ class TotalVolatileOrganicCompoundsConcentrationMeasurementCluster(private val e // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -236,10 +197,7 @@ class TotalVolatileOrganicCompoundsConcentrationMeasurementCluster(private val e // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 8571a3a545e064..e74f901c5abb8d 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UnitLocalizationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UnitLocalizationCluster.kt @@ -20,43 +20,27 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class UnitLocalizationCluster(private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readTemperatureUnitAttribute(): UByte { // Implementation needs to be added here } - suspend fun writeTemperatureUnitAttribute( - value: UInt - ) { + suspend fun writeTemperatureUnitAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeTemperatureUnitAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeTemperatureUnitAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeTemperatureUnitAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeTemperatureUnitAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -86,10 +70,7 @@ class UnitLocalizationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -108,10 +89,7 @@ class UnitLocalizationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -119,10 +97,7 @@ class UnitLocalizationCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index f95987ad8fd94a..28637a7afd94b3 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UnitTestingCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UnitTestingCluster.kt @@ -20,267 +20,162 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class UnitTestingCluster(private val endpointId: UShort) { - class TestSpecificResponse( - val returnValue: UByte - ) + class TestSpecificResponse(val returnValue: UByte) - class TestAddArgumentsResponse( - val returnValue: UByte - ) + class TestAddArgumentsResponse(val returnValue: UByte) - class TestSimpleArgumentResponse( - val returnValue: Boolean - ) + class TestSimpleArgumentResponse(val returnValue: Boolean) class TestStructArrayArgumentResponse( - val arg1: List, - val arg2: List, - val arg3: List, - val arg4: List, - val arg5: UInt, + val arg1: List, + val arg2: List, + val arg3: List, + val arg4: List, + val arg5: UInt, val arg6: Boolean ) - class BooleanResponse( - val value: Boolean - ) + class BooleanResponse(val value: Boolean) - class TestListInt8UReverseResponse( - val arg1: List - ) + class TestListInt8UReverseResponse(val arg1: List) - class TestEnumsResponse( - val arg1: UShort, - val arg2: UInt - ) + class TestEnumsResponse(val arg1: UShort, val arg2: UInt) class TestNullableOptionalResponse( - val wasPresent: Boolean, - val wasNull: Boolean?, - val value: UByte?, + val wasPresent: Boolean, + val wasNull: Boolean?, + val value: UByte?, val originalValue: UByte? ) class TestComplexNullableOptionalResponse( - val nullableIntWasNull: Boolean, - val nullableIntValue: UShort?, - val optionalIntWasPresent: Boolean, - val optionalIntValue: UShort?, - val nullableOptionalIntWasPresent: Boolean, - val nullableOptionalIntWasNull: Boolean?, - val nullableOptionalIntValue: UShort?, - val nullableStringWasNull: Boolean, - val nullableStringValue: String?, - val optionalStringWasPresent: Boolean, - val optionalStringValue: String?, - val nullableOptionalStringWasPresent: Boolean, - val nullableOptionalStringWasNull: Boolean?, - val nullableOptionalStringValue: String?, - val nullableStructWasNull: Boolean, - val nullableStructValue: UnitTestingClusterSimpleStruct?, - val optionalStructWasPresent: Boolean, - val optionalStructValue: UnitTestingClusterSimpleStruct?, - val nullableOptionalStructWasPresent: Boolean, - val nullableOptionalStructWasNull: Boolean?, - val nullableOptionalStructValue: UnitTestingClusterSimpleStruct?, - val nullableListWasNull: Boolean, - val nullableListValue: List?, - val optionalListWasPresent: Boolean, - val optionalListValue: List?, - val nullableOptionalListWasPresent: Boolean, - val nullableOptionalListWasNull: Boolean?, + val nullableIntWasNull: Boolean, + val nullableIntValue: UShort?, + val optionalIntWasPresent: Boolean, + val optionalIntValue: UShort?, + val nullableOptionalIntWasPresent: Boolean, + val nullableOptionalIntWasNull: Boolean?, + val nullableOptionalIntValue: UShort?, + val nullableStringWasNull: Boolean, + val nullableStringValue: String?, + val optionalStringWasPresent: Boolean, + val optionalStringValue: String?, + val nullableOptionalStringWasPresent: Boolean, + val nullableOptionalStringWasNull: Boolean?, + val nullableOptionalStringValue: String?, + val nullableStructWasNull: Boolean, + val nullableStructValue: UnitTestingClusterSimpleStruct?, + val optionalStructWasPresent: Boolean, + val optionalStructValue: UnitTestingClusterSimpleStruct?, + val nullableOptionalStructWasPresent: Boolean, + val nullableOptionalStructWasNull: Boolean?, + val nullableOptionalStructValue: UnitTestingClusterSimpleStruct?, + val nullableListWasNull: Boolean, + val nullableListValue: List?, + val optionalListWasPresent: Boolean, + val optionalListValue: List?, + val nullableOptionalListWasPresent: Boolean, + val nullableOptionalListWasNull: Boolean?, val nullableOptionalListValue: List? ) - class SimpleStructResponse( - val arg1: UnitTestingClusterSimpleStruct - ) + class SimpleStructResponse(val arg1: UnitTestingClusterSimpleStruct) - class TestEmitTestEventResponse( - val value: ULong - ) + class TestEmitTestEventResponse(val value: ULong) - class TestEmitTestFabricScopedEventResponse( - val value: ULong - ) + class TestEmitTestFabricScopedEventResponse(val value: ULong) - class ListInt8uAttribute( - val value: List - ) + class ListInt8uAttribute(val value: List) - class ListOctetStringAttribute( - val value: List - ) + class ListOctetStringAttribute(val value: List) - class ListStructOctetStringAttribute( - val value: List - ) + class ListStructOctetStringAttribute(val value: List) class ListNullablesAndOptionalsStructAttribute( val value: List ) - class StructAttrAttribute( - val value: UnitTestingClusterSimpleStruct - ) + class StructAttrAttribute(val value: UnitTestingClusterSimpleStruct) - class ListLongOctetStringAttribute( - val value: List - ) + class ListLongOctetStringAttribute(val value: List) - class ListFabricScopedAttribute( - val value: List - ) + class ListFabricScopedAttribute(val value: List) - class NullableBooleanAttribute( - val value: Boolean? - ) + class NullableBooleanAttribute(val value: Boolean?) - class NullableBitmap8Attribute( - val value: UInt? - ) + class NullableBitmap8Attribute(val value: UInt?) - class NullableBitmap16Attribute( - val value: UInt? - ) + class NullableBitmap16Attribute(val value: UInt?) - class NullableBitmap32Attribute( - val value: ULong? - ) + class NullableBitmap32Attribute(val value: ULong?) - class NullableBitmap64Attribute( - val value: ULong? - ) + class NullableBitmap64Attribute(val value: ULong?) - class NullableInt8uAttribute( - val value: UByte? - ) + class NullableInt8uAttribute(val value: UByte?) - class NullableInt16uAttribute( - val value: UShort? - ) + class NullableInt16uAttribute(val value: UShort?) - class NullableInt24uAttribute( - val value: UInt? - ) + class NullableInt24uAttribute(val value: UInt?) - class NullableInt32uAttribute( - val value: UInt? - ) + class NullableInt32uAttribute(val value: UInt?) - class NullableInt40uAttribute( - val value: ULong? - ) + class NullableInt40uAttribute(val value: ULong?) - class NullableInt48uAttribute( - val value: ULong? - ) + class NullableInt48uAttribute(val value: ULong?) - class NullableInt56uAttribute( - val value: ULong? - ) + class NullableInt56uAttribute(val value: ULong?) - class NullableInt64uAttribute( - val value: ULong? - ) + class NullableInt64uAttribute(val value: ULong?) - class NullableInt8sAttribute( - val value: Byte? - ) + class NullableInt8sAttribute(val value: Byte?) - class NullableInt16sAttribute( - val value: Short? - ) + class NullableInt16sAttribute(val value: Short?) - class NullableInt24sAttribute( - val value: Int? - ) + class NullableInt24sAttribute(val value: Int?) - class NullableInt32sAttribute( - val value: Int? - ) + class NullableInt32sAttribute(val value: Int?) - class NullableInt40sAttribute( - val value: Long? - ) + class NullableInt40sAttribute(val value: Long?) - class NullableInt48sAttribute( - val value: Long? - ) + class NullableInt48sAttribute(val value: Long?) - class NullableInt56sAttribute( - val value: Long? - ) + class NullableInt56sAttribute(val value: Long?) - class NullableInt64sAttribute( - val value: Long? - ) + class NullableInt64sAttribute(val value: Long?) - class NullableEnum8Attribute( - val value: UInt? - ) + class NullableEnum8Attribute(val value: UInt?) - class NullableEnum16Attribute( - val value: UInt? - ) + class NullableEnum16Attribute(val value: UInt?) - class NullableFloatSingleAttribute( - val value: Float? - ) + class NullableFloatSingleAttribute(val value: Float?) - class NullableFloatDoubleAttribute( - val value: Double? - ) + class NullableFloatDoubleAttribute(val value: Double?) - class NullableOctetStringAttribute( - val value: ByteArray? - ) + class NullableOctetStringAttribute(val value: ByteArray?) - class NullableCharStringAttribute( - val value: String? - ) + class NullableCharStringAttribute(val value: String?) - class NullableEnumAttrAttribute( - val value: UInt? - ) + class NullableEnumAttrAttribute(val value: UInt?) - class NullableStructAttribute( - val value: UnitTestingClusterSimpleStruct? - ) + class NullableStructAttribute(val value: UnitTestingClusterSimpleStruct?) - class NullableRangeRestrictedInt8uAttribute( - val value: UByte? - ) + class NullableRangeRestrictedInt8uAttribute(val value: UByte?) - class NullableRangeRestrictedInt8sAttribute( - val value: Byte? - ) + class NullableRangeRestrictedInt8sAttribute(val value: Byte?) - class NullableRangeRestrictedInt16uAttribute( - val value: UShort? - ) + class NullableRangeRestrictedInt16uAttribute(val value: UShort?) - class NullableRangeRestrictedInt16sAttribute( - val value: Short? - ) + class NullableRangeRestrictedInt16sAttribute(val value: Short?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun test(timedInvokeTimeoutMs: Int? = null) { + suspend fun test(timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -288,7 +183,7 @@ class UnitTestingCluster(private val endpointId: UShort) { } } - suspend fun testNotHandled(timedInvokeTimeoutMs: Int? = null) { + suspend fun testNotHandled(timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -296,7 +191,7 @@ class UnitTestingCluster(private val endpointId: UShort) { } } - suspend fun testSpecific(timedInvokeTimeoutMs: Int? = null): TestSpecificResponse { + suspend fun testSpecific(timedInvokeTimeoutMs: Int? = null): TestSpecificResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -304,7 +199,7 @@ class UnitTestingCluster(private val endpointId: UShort) { } } - suspend fun testUnknownCommand(timedInvokeTimeoutMs: Int? = null) { + suspend fun testUnknownCommand(timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -312,7 +207,11 @@ class UnitTestingCluster(private val endpointId: UShort) { } } - suspend fun testAddArguments(arg1: UByte, arg2: UByte, timedInvokeTimeoutMs: Int? = null): TestAddArgumentsResponse { + suspend fun testAddArguments( + arg1: UByte, + arg2: UByte, + timedInvokeTimeoutMs: Int? = null + ): TestAddArgumentsResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -320,7 +219,10 @@ class UnitTestingCluster(private val endpointId: UShort) { } } - suspend fun testSimpleArgumentRequest(arg1: Boolean, timedInvokeTimeoutMs: Int? = null): TestSimpleArgumentResponse { + suspend fun testSimpleArgumentRequest( + arg1: Boolean, + timedInvokeTimeoutMs: Int? = null + ): TestSimpleArgumentResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -328,7 +230,15 @@ class UnitTestingCluster(private val endpointId: UShort) { } } - suspend fun testStructArrayArgumentRequest(arg1: List, arg2: List, arg3: List, arg4: List, arg5: UInt, arg6: Boolean, timedInvokeTimeoutMs: Int? = null): TestStructArrayArgumentResponse { + suspend fun testStructArrayArgumentRequest( + arg1: List, + arg2: List, + arg3: List, + arg4: List, + arg5: UInt, + arg6: Boolean, + timedInvokeTimeoutMs: Int? = null + ): TestStructArrayArgumentResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -336,7 +246,10 @@ class UnitTestingCluster(private val endpointId: UShort) { } } - suspend fun testStructArgumentRequest(arg1: UnitTestingClusterSimpleStruct, timedInvokeTimeoutMs: Int? = null): BooleanResponse { + suspend fun testStructArgumentRequest( + arg1: UnitTestingClusterSimpleStruct, + timedInvokeTimeoutMs: Int? = null + ): BooleanResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -344,7 +257,10 @@ class UnitTestingCluster(private val endpointId: UShort) { } } - suspend fun testNestedStructArgumentRequest(arg1: UnitTestingClusterNestedStruct, timedInvokeTimeoutMs: Int? = null): BooleanResponse { + suspend fun testNestedStructArgumentRequest( + arg1: UnitTestingClusterNestedStruct, + timedInvokeTimeoutMs: Int? = null + ): BooleanResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -352,7 +268,10 @@ class UnitTestingCluster(private val endpointId: UShort) { } } - suspend fun testListStructArgumentRequest(arg1: List, timedInvokeTimeoutMs: Int? = null): BooleanResponse { + suspend fun testListStructArgumentRequest( + arg1: List, + timedInvokeTimeoutMs: Int? = null + ): BooleanResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -360,7 +279,10 @@ class UnitTestingCluster(private val endpointId: UShort) { } } - suspend fun testListInt8UArgumentRequest(arg1: List, timedInvokeTimeoutMs: Int? = null): BooleanResponse { + suspend fun testListInt8UArgumentRequest( + arg1: List, + timedInvokeTimeoutMs: Int? = null + ): BooleanResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -368,7 +290,10 @@ class UnitTestingCluster(private val endpointId: UShort) { } } - suspend fun testNestedStructListArgumentRequest(arg1: UnitTestingClusterNestedStructList, timedInvokeTimeoutMs: Int? = null): BooleanResponse { + suspend fun testNestedStructListArgumentRequest( + arg1: UnitTestingClusterNestedStructList, + timedInvokeTimeoutMs: Int? = null + ): BooleanResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -376,7 +301,10 @@ class UnitTestingCluster(private val endpointId: UShort) { } } - suspend fun testListNestedStructListArgumentRequest(arg1: List, timedInvokeTimeoutMs: Int? = null): BooleanResponse { + suspend fun testListNestedStructListArgumentRequest( + arg1: List, + timedInvokeTimeoutMs: Int? = null + ): BooleanResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -384,7 +312,10 @@ class UnitTestingCluster(private val endpointId: UShort) { } } - suspend fun testListInt8UReverseRequest(arg1: List, timedInvokeTimeoutMs: Int? = null): TestListInt8UReverseResponse { + suspend fun testListInt8UReverseRequest( + arg1: List, + timedInvokeTimeoutMs: Int? = null + ): TestListInt8UReverseResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -392,7 +323,11 @@ class UnitTestingCluster(private val endpointId: UShort) { } } - suspend fun testEnumsRequest(arg1: UShort, arg2: UInt, timedInvokeTimeoutMs: Int? = null): TestEnumsResponse { + suspend fun testEnumsRequest( + arg1: UShort, + arg2: UInt, + timedInvokeTimeoutMs: Int? = null + ): TestEnumsResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -400,7 +335,10 @@ class UnitTestingCluster(private val endpointId: UShort) { } } - suspend fun testNullableOptionalRequest(arg1: UByte?, timedInvokeTimeoutMs: Int? = null): TestNullableOptionalResponse { + suspend fun testNullableOptionalRequest( + arg1: UByte?, + timedInvokeTimeoutMs: Int? = null + ): TestNullableOptionalResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -408,7 +346,21 @@ class UnitTestingCluster(private val endpointId: UShort) { } } - suspend fun testComplexNullableOptionalRequest(nullableInt: UShort?, optionalInt: UShort?, nullableOptionalInt: UShort?, nullableString: String?, optionalString: String?, nullableOptionalString: String?, nullableStruct: UnitTestingClusterSimpleStruct?, optionalStruct: UnitTestingClusterSimpleStruct?, nullableOptionalStruct: UnitTestingClusterSimpleStruct?, nullableList: List?, optionalList: List?, nullableOptionalList: List?, timedInvokeTimeoutMs: Int? = null): TestComplexNullableOptionalResponse { + suspend fun testComplexNullableOptionalRequest( + nullableInt: UShort?, + optionalInt: UShort?, + nullableOptionalInt: UShort?, + nullableString: String?, + optionalString: String?, + nullableOptionalString: String?, + nullableStruct: UnitTestingClusterSimpleStruct?, + optionalStruct: UnitTestingClusterSimpleStruct?, + nullableOptionalStruct: UnitTestingClusterSimpleStruct?, + nullableList: List?, + optionalList: List?, + nullableOptionalList: List?, + timedInvokeTimeoutMs: Int? = null + ): TestComplexNullableOptionalResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -416,7 +368,10 @@ class UnitTestingCluster(private val endpointId: UShort) { } } - suspend fun simpleStructEchoRequest(arg1: UnitTestingClusterSimpleStruct, timedInvokeTimeoutMs: Int? = null): SimpleStructResponse { + suspend fun simpleStructEchoRequest( + arg1: UnitTestingClusterSimpleStruct, + timedInvokeTimeoutMs: Int? = null + ): SimpleStructResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -424,7 +379,7 @@ class UnitTestingCluster(private val endpointId: UShort) { } } - suspend fun timedInvokeRequest(timedInvokeTimeoutMs: Int? = null) { + suspend fun timedInvokeRequest(timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -432,7 +387,7 @@ class UnitTestingCluster(private val endpointId: UShort) { } } - suspend fun testSimpleOptionalArgumentRequest(arg1: Boolean?, timedInvokeTimeoutMs: Int? = null) { + suspend fun testSimpleOptionalArgumentRequest(arg1: Boolean?, timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -440,7 +395,12 @@ class UnitTestingCluster(private val endpointId: UShort) { } } - suspend fun testEmitTestEventRequest(arg1: UByte, arg2: UInt, arg3: Boolean, timedInvokeTimeoutMs: Int? = null): TestEmitTestEventResponse { + suspend fun testEmitTestEventRequest( + arg1: UByte, + arg2: UInt, + arg3: Boolean, + timedInvokeTimeoutMs: Int? = null + ): TestEmitTestEventResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -448,7 +408,10 @@ class UnitTestingCluster(private val endpointId: UShort) { } } - suspend fun testEmitTestFabricScopedEventRequest(arg1: UByte, timedInvokeTimeoutMs: Int? = null): TestEmitTestFabricScopedEventResponse { + suspend fun testEmitTestFabricScopedEventRequest( + arg1: UByte, + timedInvokeTimeoutMs: Int? = null + ): TestEmitTestFabricScopedEventResponse { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -460,23 +423,15 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeBooleanAttribute( - value: Boolean - ) { + suspend fun writeBooleanAttribute(value: Boolean) { // Implementation needs to be added here } - suspend fun writeBooleanAttribute( - value: Boolean, - timedWriteTimeoutMs: Int - ) { + suspend fun writeBooleanAttribute(value: Boolean, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeBooleanAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeBooleanAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -484,23 +439,15 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeBitmap8Attribute( - value: UInt - ) { + suspend fun writeBitmap8Attribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeBitmap8Attribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeBitmap8Attribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeBitmap8Attribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeBitmap8Attribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -508,23 +455,15 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeBitmap16Attribute( - value: UInt - ) { + suspend fun writeBitmap16Attribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeBitmap16Attribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeBitmap16Attribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeBitmap16Attribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeBitmap16Attribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -532,23 +471,15 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeBitmap32Attribute( - value: ULong - ) { + suspend fun writeBitmap32Attribute(value: ULong) { // Implementation needs to be added here } - suspend fun writeBitmap32Attribute( - value: ULong, - timedWriteTimeoutMs: Int - ) { + suspend fun writeBitmap32Attribute(value: ULong, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeBitmap32Attribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeBitmap32Attribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -556,23 +487,15 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeBitmap64Attribute( - value: ULong - ) { + suspend fun writeBitmap64Attribute(value: ULong) { // Implementation needs to be added here } - suspend fun writeBitmap64Attribute( - value: ULong, - timedWriteTimeoutMs: Int - ) { + suspend fun writeBitmap64Attribute(value: ULong, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeBitmap64Attribute( - minInterval: Int, - maxInterval: Int - ): ULong { + suspend fun subscribeBitmap64Attribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } @@ -580,23 +503,15 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeInt8uAttribute( - value: UByte - ) { + suspend fun writeInt8uAttribute(value: UByte) { // Implementation needs to be added here } - suspend fun writeInt8uAttribute( - value: UByte, - timedWriteTimeoutMs: Int - ) { + suspend fun writeInt8uAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeInt8uAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeInt8uAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -604,23 +519,15 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeInt16uAttribute( - value: UShort - ) { + suspend fun writeInt16uAttribute(value: UShort) { // Implementation needs to be added here } - suspend fun writeInt16uAttribute( - value: UShort, - timedWriteTimeoutMs: Int - ) { + suspend fun writeInt16uAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeInt16uAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeInt16uAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -628,23 +535,15 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeInt24uAttribute( - value: UInt - ) { + suspend fun writeInt24uAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeInt24uAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeInt24uAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeInt24uAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeInt24uAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -652,23 +551,15 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeInt32uAttribute( - value: UInt - ) { + suspend fun writeInt32uAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeInt32uAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeInt32uAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeInt32uAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeInt32uAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -676,23 +567,15 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeInt40uAttribute( - value: ULong - ) { + suspend fun writeInt40uAttribute(value: ULong) { // Implementation needs to be added here } - suspend fun writeInt40uAttribute( - value: ULong, - timedWriteTimeoutMs: Int - ) { + suspend fun writeInt40uAttribute(value: ULong, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeInt40uAttribute( - minInterval: Int, - maxInterval: Int - ): ULong { + suspend fun subscribeInt40uAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } @@ -700,23 +583,15 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeInt48uAttribute( - value: ULong - ) { + suspend fun writeInt48uAttribute(value: ULong) { // Implementation needs to be added here } - suspend fun writeInt48uAttribute( - value: ULong, - timedWriteTimeoutMs: Int - ) { + suspend fun writeInt48uAttribute(value: ULong, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeInt48uAttribute( - minInterval: Int, - maxInterval: Int - ): ULong { + suspend fun subscribeInt48uAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } @@ -724,23 +599,15 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeInt56uAttribute( - value: ULong - ) { + suspend fun writeInt56uAttribute(value: ULong) { // Implementation needs to be added here } - suspend fun writeInt56uAttribute( - value: ULong, - timedWriteTimeoutMs: Int - ) { + suspend fun writeInt56uAttribute(value: ULong, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeInt56uAttribute( - minInterval: Int, - maxInterval: Int - ): ULong { + suspend fun subscribeInt56uAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } @@ -748,23 +615,15 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeInt64uAttribute( - value: ULong - ) { + suspend fun writeInt64uAttribute(value: ULong) { // Implementation needs to be added here } - suspend fun writeInt64uAttribute( - value: ULong, - timedWriteTimeoutMs: Int - ) { + suspend fun writeInt64uAttribute(value: ULong, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeInt64uAttribute( - minInterval: Int, - maxInterval: Int - ): ULong { + suspend fun subscribeInt64uAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } @@ -772,23 +631,15 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeInt8sAttribute( - value: Byte - ) { + suspend fun writeInt8sAttribute(value: Byte) { // Implementation needs to be added here } - suspend fun writeInt8sAttribute( - value: Byte, - timedWriteTimeoutMs: Int - ) { + suspend fun writeInt8sAttribute(value: Byte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeInt8sAttribute( - minInterval: Int, - maxInterval: Int - ): Byte { + suspend fun subscribeInt8sAttribute(minInterval: Int, maxInterval: Int): Byte { // Implementation needs to be added here } @@ -796,23 +647,15 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeInt16sAttribute( - value: Short - ) { + suspend fun writeInt16sAttribute(value: Short) { // Implementation needs to be added here } - suspend fun writeInt16sAttribute( - value: Short, - timedWriteTimeoutMs: Int - ) { + suspend fun writeInt16sAttribute(value: Short, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeInt16sAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeInt16sAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -820,23 +663,15 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeInt24sAttribute( - value: Int - ) { + suspend fun writeInt24sAttribute(value: Int) { // Implementation needs to be added here } - suspend fun writeInt24sAttribute( - value: Int, - timedWriteTimeoutMs: Int - ) { + suspend fun writeInt24sAttribute(value: Int, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeInt24sAttribute( - minInterval: Int, - maxInterval: Int - ): Int { + suspend fun subscribeInt24sAttribute(minInterval: Int, maxInterval: Int): Int { // Implementation needs to be added here } @@ -844,23 +679,15 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeInt32sAttribute( - value: Int - ) { + suspend fun writeInt32sAttribute(value: Int) { // Implementation needs to be added here } - suspend fun writeInt32sAttribute( - value: Int, - timedWriteTimeoutMs: Int - ) { + suspend fun writeInt32sAttribute(value: Int, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeInt32sAttribute( - minInterval: Int, - maxInterval: Int - ): Int { + suspend fun subscribeInt32sAttribute(minInterval: Int, maxInterval: Int): Int { // Implementation needs to be added here } @@ -868,23 +695,15 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeInt40sAttribute( - value: Long - ) { + suspend fun writeInt40sAttribute(value: Long) { // Implementation needs to be added here } - suspend fun writeInt40sAttribute( - value: Long, - timedWriteTimeoutMs: Int - ) { + suspend fun writeInt40sAttribute(value: Long, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeInt40sAttribute( - minInterval: Int, - maxInterval: Int - ): Long { + suspend fun subscribeInt40sAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } @@ -892,23 +711,15 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeInt48sAttribute( - value: Long - ) { + suspend fun writeInt48sAttribute(value: Long) { // Implementation needs to be added here } - suspend fun writeInt48sAttribute( - value: Long, - timedWriteTimeoutMs: Int - ) { + suspend fun writeInt48sAttribute(value: Long, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeInt48sAttribute( - minInterval: Int, - maxInterval: Int - ): Long { + suspend fun subscribeInt48sAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } @@ -916,23 +727,15 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeInt56sAttribute( - value: Long - ) { + suspend fun writeInt56sAttribute(value: Long) { // Implementation needs to be added here } - suspend fun writeInt56sAttribute( - value: Long, - timedWriteTimeoutMs: Int - ) { + suspend fun writeInt56sAttribute(value: Long, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeInt56sAttribute( - minInterval: Int, - maxInterval: Int - ): Long { + suspend fun subscribeInt56sAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } @@ -940,23 +743,15 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeInt64sAttribute( - value: Long - ) { + suspend fun writeInt64sAttribute(value: Long) { // Implementation needs to be added here } - suspend fun writeInt64sAttribute( - value: Long, - timedWriteTimeoutMs: Int - ) { + suspend fun writeInt64sAttribute(value: Long, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeInt64sAttribute( - minInterval: Int, - maxInterval: Int - ): Long { + suspend fun subscribeInt64sAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } @@ -964,23 +759,15 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeEnum8Attribute( - value: UInt - ) { + suspend fun writeEnum8Attribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeEnum8Attribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeEnum8Attribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeEnum8Attribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeEnum8Attribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -988,23 +775,15 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeEnum16Attribute( - value: UInt - ) { + suspend fun writeEnum16Attribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeEnum16Attribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeEnum16Attribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeEnum16Attribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeEnum16Attribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -1012,23 +791,15 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeFloatSingleAttribute( - value: Float - ) { + suspend fun writeFloatSingleAttribute(value: Float) { // Implementation needs to be added here } - suspend fun writeFloatSingleAttribute( - value: Float, - timedWriteTimeoutMs: Int - ) { + suspend fun writeFloatSingleAttribute(value: Float, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeFloatSingleAttribute( - minInterval: Int, - maxInterval: Int - ): Float { + suspend fun subscribeFloatSingleAttribute(minInterval: Int, maxInterval: Int): Float { // Implementation needs to be added here } @@ -1036,23 +807,15 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeFloatDoubleAttribute( - value: Double - ) { + suspend fun writeFloatDoubleAttribute(value: Double) { // Implementation needs to be added here } - suspend fun writeFloatDoubleAttribute( - value: Double, - timedWriteTimeoutMs: Int - ) { + suspend fun writeFloatDoubleAttribute(value: Double, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeFloatDoubleAttribute( - minInterval: Int, - maxInterval: Int - ): Double { + suspend fun subscribeFloatDoubleAttribute(minInterval: Int, maxInterval: Int): Double { // Implementation needs to be added here } @@ -1060,23 +823,15 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeOctetStringAttribute( - value: ByteArray - ) { + suspend fun writeOctetStringAttribute(value: ByteArray) { // Implementation needs to be added here } - suspend fun writeOctetStringAttribute( - value: ByteArray, - timedWriteTimeoutMs: Int - ) { + suspend fun writeOctetStringAttribute(value: ByteArray, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeOctetStringAttribute( - minInterval: Int, - maxInterval: Int - ): OctetString { + suspend fun subscribeOctetStringAttribute(minInterval: Int, maxInterval: Int): OctetString { // Implementation needs to be added here } @@ -1084,23 +839,15 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeListInt8uAttribute( - value: List - ) { + suspend fun writeListInt8uAttribute(value: List) { // Implementation needs to be added here } - suspend fun writeListInt8uAttribute( - value: List, - timedWriteTimeoutMs: Int - ) { + suspend fun writeListInt8uAttribute(value: List, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeListInt8uAttribute( - minInterval: Int, - maxInterval: Int - ): ListInt8uAttribute { + suspend fun subscribeListInt8uAttribute(minInterval: Int, maxInterval: Int): ListInt8uAttribute { // Implementation needs to be added here } @@ -1108,16 +855,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeListOctetStringAttribute( - value: List - ) { + suspend fun writeListOctetStringAttribute(value: List) { // Implementation needs to be added here } - suspend fun writeListOctetStringAttribute( - value: List, - timedWriteTimeoutMs: Int - ) { + suspend fun writeListOctetStringAttribute(value: List, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -1156,23 +898,15 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeLongOctetStringAttribute( - value: ByteArray - ) { + suspend fun writeLongOctetStringAttribute(value: ByteArray) { // Implementation needs to be added here } - suspend fun writeLongOctetStringAttribute( - value: ByteArray, - timedWriteTimeoutMs: Int - ) { + suspend fun writeLongOctetStringAttribute(value: ByteArray, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeLongOctetStringAttribute( - minInterval: Int, - maxInterval: Int - ): OctetString { + suspend fun subscribeLongOctetStringAttribute(minInterval: Int, maxInterval: Int): OctetString { // Implementation needs to be added here } @@ -1180,23 +914,15 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeCharStringAttribute( - value: String - ) { + suspend fun writeCharStringAttribute(value: String) { // Implementation needs to be added here } - suspend fun writeCharStringAttribute( - value: String, - timedWriteTimeoutMs: Int - ) { + suspend fun writeCharStringAttribute(value: String, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeCharStringAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeCharStringAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -1204,23 +930,15 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeLongCharStringAttribute( - value: String - ) { + suspend fun writeLongCharStringAttribute(value: String) { // Implementation needs to be added here } - suspend fun writeLongCharStringAttribute( - value: String, - timedWriteTimeoutMs: Int - ) { + suspend fun writeLongCharStringAttribute(value: String, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeLongCharStringAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeLongCharStringAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -1228,23 +946,15 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeEpochUsAttribute( - value: ULong - ) { + suspend fun writeEpochUsAttribute(value: ULong) { // Implementation needs to be added here } - suspend fun writeEpochUsAttribute( - value: ULong, - timedWriteTimeoutMs: Int - ) { + suspend fun writeEpochUsAttribute(value: ULong, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeEpochUsAttribute( - minInterval: Int, - maxInterval: Int - ): ULong { + suspend fun subscribeEpochUsAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } @@ -1252,23 +962,15 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeEpochSAttribute( - value: UInt - ) { + suspend fun writeEpochSAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeEpochSAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeEpochSAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeEpochSAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeEpochSAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -1276,27 +978,20 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeVendorIdAttribute( - value: UShort - ) { + suspend fun writeVendorIdAttribute(value: UShort) { // Implementation needs to be added here } - suspend fun writeVendorIdAttribute( - value: UShort, - timedWriteTimeoutMs: Int - ) { + suspend fun writeVendorIdAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeVendorIdAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeVendorIdAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readListNullablesAndOptionalsStructAttribute(): ListNullablesAndOptionalsStructAttribute { + suspend fun readListNullablesAndOptionalsStructAttribute(): + ListNullablesAndOptionalsStructAttribute { // Implementation needs to be added here } @@ -1324,23 +1019,15 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeEnumAttrAttribute( - value: UInt - ) { + suspend fun writeEnumAttrAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeEnumAttrAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeEnumAttrAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeEnumAttrAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeEnumAttrAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -1348,9 +1035,7 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeStructAttrAttribute( - value: UnitTestingClusterSimpleStruct - ) { + suspend fun writeStructAttrAttribute(value: UnitTestingClusterSimpleStruct) { // Implementation needs to be added here } @@ -1372,23 +1057,15 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeRangeRestrictedInt8uAttribute( - value: UByte - ) { + suspend fun writeRangeRestrictedInt8uAttribute(value: UByte) { // Implementation needs to be added here } - suspend fun writeRangeRestrictedInt8uAttribute( - value: UByte, - timedWriteTimeoutMs: Int - ) { + suspend fun writeRangeRestrictedInt8uAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeRangeRestrictedInt8uAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeRangeRestrictedInt8uAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -1396,23 +1073,15 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeRangeRestrictedInt8sAttribute( - value: Byte - ) { + suspend fun writeRangeRestrictedInt8sAttribute(value: Byte) { // Implementation needs to be added here } - suspend fun writeRangeRestrictedInt8sAttribute( - value: Byte, - timedWriteTimeoutMs: Int - ) { + suspend fun writeRangeRestrictedInt8sAttribute(value: Byte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeRangeRestrictedInt8sAttribute( - minInterval: Int, - maxInterval: Int - ): Byte { + suspend fun subscribeRangeRestrictedInt8sAttribute(minInterval: Int, maxInterval: Int): Byte { // Implementation needs to be added here } @@ -1420,23 +1089,15 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeRangeRestrictedInt16uAttribute( - value: UShort - ) { + suspend fun writeRangeRestrictedInt16uAttribute(value: UShort) { // Implementation needs to be added here } - suspend fun writeRangeRestrictedInt16uAttribute( - value: UShort, - timedWriteTimeoutMs: Int - ) { + suspend fun writeRangeRestrictedInt16uAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeRangeRestrictedInt16uAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRangeRestrictedInt16uAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -1444,23 +1105,15 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeRangeRestrictedInt16sAttribute( - value: Short - ) { + suspend fun writeRangeRestrictedInt16sAttribute(value: Short) { // Implementation needs to be added here } - suspend fun writeRangeRestrictedInt16sAttribute( - value: Short, - timedWriteTimeoutMs: Int - ) { + suspend fun writeRangeRestrictedInt16sAttribute(value: Short, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeRangeRestrictedInt16sAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeRangeRestrictedInt16sAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -1468,16 +1121,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeListLongOctetStringAttribute( - value: List - ) { + suspend fun writeListLongOctetStringAttribute(value: List) { // Implementation needs to be added here } - suspend fun writeListLongOctetStringAttribute( - value: List, - timedWriteTimeoutMs: Int - ) { + suspend fun writeListLongOctetStringAttribute(value: List, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -1498,10 +1146,7 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - - suspend fun writeListFabricScopedAttribute( - value: List - ) { + suspend fun writeListFabricScopedAttribute(value: List) { // Implementation needs to be added here } @@ -1523,17 +1168,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeTimedWriteBooleanAttribute( - value: Boolean, - timedWriteTimeoutMs: Int - ) { + suspend fun writeTimedWriteBooleanAttribute(value: Boolean, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeTimedWriteBooleanAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeTimedWriteBooleanAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -1541,23 +1180,15 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeGeneralErrorBooleanAttribute( - value: Boolean - ) { + suspend fun writeGeneralErrorBooleanAttribute(value: Boolean) { // Implementation needs to be added here } - suspend fun writeGeneralErrorBooleanAttribute( - value: Boolean, - timedWriteTimeoutMs: Int - ) { + suspend fun writeGeneralErrorBooleanAttribute(value: Boolean, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeGeneralErrorBooleanAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeGeneralErrorBooleanAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -1565,23 +1196,15 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeClusterErrorBooleanAttribute( - value: Boolean - ) { + suspend fun writeClusterErrorBooleanAttribute(value: Boolean) { // Implementation needs to be added here } - suspend fun writeClusterErrorBooleanAttribute( - value: Boolean, - timedWriteTimeoutMs: Int - ) { + suspend fun writeClusterErrorBooleanAttribute(value: Boolean, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeClusterErrorBooleanAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeClusterErrorBooleanAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -1589,23 +1212,15 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeUnsupportedAttribute( - value: Boolean - ) { + suspend fun writeUnsupportedAttribute(value: Boolean) { // Implementation needs to be added here } - suspend fun writeUnsupportedAttribute( - value: Boolean, - timedWriteTimeoutMs: Int - ) { + suspend fun writeUnsupportedAttribute(value: Boolean, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeUnsupportedAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeUnsupportedAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -1613,16 +1228,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeNullableBooleanAttribute( - value: Boolean - ) { + suspend fun writeNullableBooleanAttribute(value: Boolean) { // Implementation needs to be added here } - suspend fun writeNullableBooleanAttribute( - value: Boolean, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableBooleanAttribute(value: Boolean, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -1637,16 +1247,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeNullableBitmap8Attribute( - value: UInt - ) { + suspend fun writeNullableBitmap8Attribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeNullableBitmap8Attribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableBitmap8Attribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -1661,16 +1266,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeNullableBitmap16Attribute( - value: UInt - ) { + suspend fun writeNullableBitmap16Attribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeNullableBitmap16Attribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableBitmap16Attribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -1685,16 +1285,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeNullableBitmap32Attribute( - value: ULong - ) { + suspend fun writeNullableBitmap32Attribute(value: ULong) { // Implementation needs to be added here } - suspend fun writeNullableBitmap32Attribute( - value: ULong, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableBitmap32Attribute(value: ULong, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -1709,16 +1304,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeNullableBitmap64Attribute( - value: ULong - ) { + suspend fun writeNullableBitmap64Attribute(value: ULong) { // Implementation needs to be added here } - suspend fun writeNullableBitmap64Attribute( - value: ULong, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableBitmap64Attribute(value: ULong, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -1733,16 +1323,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeNullableInt8uAttribute( - value: UByte - ) { + suspend fun writeNullableInt8uAttribute(value: UByte) { // Implementation needs to be added here } - suspend fun writeNullableInt8uAttribute( - value: UByte, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableInt8uAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -1757,16 +1342,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeNullableInt16uAttribute( - value: UShort - ) { + suspend fun writeNullableInt16uAttribute(value: UShort) { // Implementation needs to be added here } - suspend fun writeNullableInt16uAttribute( - value: UShort, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableInt16uAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -1781,16 +1361,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeNullableInt24uAttribute( - value: UInt - ) { + suspend fun writeNullableInt24uAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeNullableInt24uAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableInt24uAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -1805,16 +1380,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeNullableInt32uAttribute( - value: UInt - ) { + suspend fun writeNullableInt32uAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeNullableInt32uAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableInt32uAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -1829,16 +1399,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeNullableInt40uAttribute( - value: ULong - ) { + suspend fun writeNullableInt40uAttribute(value: ULong) { // Implementation needs to be added here } - suspend fun writeNullableInt40uAttribute( - value: ULong, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableInt40uAttribute(value: ULong, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -1853,16 +1418,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeNullableInt48uAttribute( - value: ULong - ) { + suspend fun writeNullableInt48uAttribute(value: ULong) { // Implementation needs to be added here } - suspend fun writeNullableInt48uAttribute( - value: ULong, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableInt48uAttribute(value: ULong, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -1877,16 +1437,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeNullableInt56uAttribute( - value: ULong - ) { + suspend fun writeNullableInt56uAttribute(value: ULong) { // Implementation needs to be added here } - suspend fun writeNullableInt56uAttribute( - value: ULong, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableInt56uAttribute(value: ULong, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -1901,16 +1456,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeNullableInt64uAttribute( - value: ULong - ) { + suspend fun writeNullableInt64uAttribute(value: ULong) { // Implementation needs to be added here } - suspend fun writeNullableInt64uAttribute( - value: ULong, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableInt64uAttribute(value: ULong, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -1925,16 +1475,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeNullableInt8sAttribute( - value: Byte - ) { + suspend fun writeNullableInt8sAttribute(value: Byte) { // Implementation needs to be added here } - suspend fun writeNullableInt8sAttribute( - value: Byte, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableInt8sAttribute(value: Byte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -1949,16 +1494,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeNullableInt16sAttribute( - value: Short - ) { + suspend fun writeNullableInt16sAttribute(value: Short) { // Implementation needs to be added here } - suspend fun writeNullableInt16sAttribute( - value: Short, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableInt16sAttribute(value: Short, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -1973,16 +1513,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeNullableInt24sAttribute( - value: Int - ) { + suspend fun writeNullableInt24sAttribute(value: Int) { // Implementation needs to be added here } - suspend fun writeNullableInt24sAttribute( - value: Int, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableInt24sAttribute(value: Int, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -1997,16 +1532,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeNullableInt32sAttribute( - value: Int - ) { + suspend fun writeNullableInt32sAttribute(value: Int) { // Implementation needs to be added here } - suspend fun writeNullableInt32sAttribute( - value: Int, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableInt32sAttribute(value: Int, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -2021,16 +1551,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeNullableInt40sAttribute( - value: Long - ) { + suspend fun writeNullableInt40sAttribute(value: Long) { // Implementation needs to be added here } - suspend fun writeNullableInt40sAttribute( - value: Long, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableInt40sAttribute(value: Long, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -2045,16 +1570,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeNullableInt48sAttribute( - value: Long - ) { + suspend fun writeNullableInt48sAttribute(value: Long) { // Implementation needs to be added here } - suspend fun writeNullableInt48sAttribute( - value: Long, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableInt48sAttribute(value: Long, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -2069,16 +1589,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeNullableInt56sAttribute( - value: Long - ) { + suspend fun writeNullableInt56sAttribute(value: Long) { // Implementation needs to be added here } - suspend fun writeNullableInt56sAttribute( - value: Long, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableInt56sAttribute(value: Long, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -2093,16 +1608,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeNullableInt64sAttribute( - value: Long - ) { + suspend fun writeNullableInt64sAttribute(value: Long) { // Implementation needs to be added here } - suspend fun writeNullableInt64sAttribute( - value: Long, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableInt64sAttribute(value: Long, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -2117,16 +1627,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeNullableEnum8Attribute( - value: UInt - ) { + suspend fun writeNullableEnum8Attribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeNullableEnum8Attribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableEnum8Attribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -2141,16 +1646,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeNullableEnum16Attribute( - value: UInt - ) { + suspend fun writeNullableEnum16Attribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeNullableEnum16Attribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableEnum16Attribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -2165,16 +1665,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeNullableFloatSingleAttribute( - value: Float - ) { + suspend fun writeNullableFloatSingleAttribute(value: Float) { // Implementation needs to be added here } - suspend fun writeNullableFloatSingleAttribute( - value: Float, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableFloatSingleAttribute(value: Float, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -2189,16 +1684,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeNullableFloatDoubleAttribute( - value: Double - ) { + suspend fun writeNullableFloatDoubleAttribute(value: Double) { // Implementation needs to be added here } - suspend fun writeNullableFloatDoubleAttribute( - value: Double, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableFloatDoubleAttribute(value: Double, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -2213,16 +1703,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeNullableOctetStringAttribute( - value: ByteArray - ) { + suspend fun writeNullableOctetStringAttribute(value: ByteArray) { // Implementation needs to be added here } - suspend fun writeNullableOctetStringAttribute( - value: ByteArray, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableOctetStringAttribute(value: ByteArray, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -2237,16 +1722,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeNullableCharStringAttribute( - value: String - ) { + suspend fun writeNullableCharStringAttribute(value: String) { // Implementation needs to be added here } - suspend fun writeNullableCharStringAttribute( - value: String, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableCharStringAttribute(value: String, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -2261,16 +1741,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeNullableEnumAttrAttribute( - value: UInt - ) { + suspend fun writeNullableEnumAttrAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeNullableEnumAttrAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableEnumAttrAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -2285,9 +1760,7 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeNullableStructAttribute( - value: UnitTestingClusterSimpleStruct - ) { + suspend fun writeNullableStructAttribute(value: UnitTestingClusterSimpleStruct) { // Implementation needs to be added here } @@ -2309,16 +1782,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeNullableRangeRestrictedInt8uAttribute( - value: UByte - ) { + suspend fun writeNullableRangeRestrictedInt8uAttribute(value: UByte) { // Implementation needs to be added here } - suspend fun writeNullableRangeRestrictedInt8uAttribute( - value: UByte, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableRangeRestrictedInt8uAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -2333,16 +1801,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeNullableRangeRestrictedInt8sAttribute( - value: Byte - ) { + suspend fun writeNullableRangeRestrictedInt8sAttribute(value: Byte) { // Implementation needs to be added here } - suspend fun writeNullableRangeRestrictedInt8sAttribute( - value: Byte, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableRangeRestrictedInt8sAttribute(value: Byte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -2357,16 +1820,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeNullableRangeRestrictedInt16uAttribute( - value: UShort - ) { + suspend fun writeNullableRangeRestrictedInt16uAttribute(value: UShort) { // Implementation needs to be added here } - suspend fun writeNullableRangeRestrictedInt16uAttribute( - value: UShort, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableRangeRestrictedInt16uAttribute(value: UShort, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -2381,16 +1839,11 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeNullableRangeRestrictedInt16sAttribute( - value: Short - ) { + suspend fun writeNullableRangeRestrictedInt16sAttribute(value: Short) { // Implementation needs to be added here } - suspend fun writeNullableRangeRestrictedInt16sAttribute( - value: Short, - timedWriteTimeoutMs: Int - ) { + suspend fun writeNullableRangeRestrictedInt16sAttribute(value: Short, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } @@ -2405,23 +1858,15 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeWriteOnlyInt8uAttribute( - value: UByte - ) { + suspend fun writeWriteOnlyInt8uAttribute(value: UByte) { // Implementation needs to be added here } - suspend fun writeWriteOnlyInt8uAttribute( - value: UByte, - timedWriteTimeoutMs: Int - ) { + suspend fun writeWriteOnlyInt8uAttribute(value: UByte, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeWriteOnlyInt8uAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeWriteOnlyInt8uAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -2451,10 +1896,7 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -2473,10 +1915,7 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -2484,10 +1923,7 @@ class UnitTestingCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 168a1a3745d3f2..59432cfb5d451c 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UserLabelCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UserLabelCluster.kt @@ -20,33 +20,21 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class UserLabelCluster(private val endpointId: UShort) { - class LabelListAttribute( - val value: List - ) + class LabelListAttribute(val value: List) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readLabelListAttribute(): LabelListAttribute { // Implementation needs to be added here } - suspend fun writeLabelListAttribute( - value: List - ) { + suspend fun writeLabelListAttribute(value: List) { // Implementation needs to be added here } @@ -57,10 +45,7 @@ class UserLabelCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeLabelListAttribute( - minInterval: Int, - maxInterval: Int - ): LabelListAttribute { + suspend fun subscribeLabelListAttribute(minInterval: Int, maxInterval: Int): LabelListAttribute { // Implementation needs to be added here } @@ -90,10 +75,7 @@ class UserLabelCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -112,10 +94,7 @@ class UserLabelCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -123,10 +102,7 @@ class UserLabelCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 419d265a27012e..ad741ab4369df4 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WakeOnLanCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WakeOnLanCluster.kt @@ -20,30 +20,19 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class WakeOnLanCluster(private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readMACAddressAttribute(): CharString { // Implementation needs to be added here } - suspend fun subscribeMACAddressAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeMACAddressAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -73,10 +62,7 @@ class WakeOnLanCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -95,10 +81,7 @@ class WakeOnLanCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -106,10 +89,7 @@ class WakeOnLanCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 96589f26e8c219..60013c5f0ae780 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WiFiNetworkDiagnosticsCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WiFiNetworkDiagnosticsCluster.kt @@ -20,75 +20,41 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class WiFiNetworkDiagnosticsCluster(private val endpointId: UShort) { - class BssidAttribute( - val value: ByteArray? - ) + class BssidAttribute(val value: ByteArray?) - class SecurityTypeAttribute( - val value: UInt? - ) + class SecurityTypeAttribute(val value: UInt?) - class WiFiVersionAttribute( - val value: UInt? - ) + class WiFiVersionAttribute(val value: UInt?) - class ChannelNumberAttribute( - val value: UShort? - ) + class ChannelNumberAttribute(val value: UShort?) - class RssiAttribute( - val value: Byte? - ) + class RssiAttribute(val value: Byte?) - class BeaconLostCountAttribute( - val value: UInt? - ) + class BeaconLostCountAttribute(val value: UInt?) - class BeaconRxCountAttribute( - val value: UInt? - ) + class BeaconRxCountAttribute(val value: UInt?) - class PacketMulticastRxCountAttribute( - val value: UInt? - ) + class PacketMulticastRxCountAttribute(val value: UInt?) - class PacketMulticastTxCountAttribute( - val value: UInt? - ) + class PacketMulticastTxCountAttribute(val value: UInt?) - class PacketUnicastRxCountAttribute( - val value: UInt? - ) + class PacketUnicastRxCountAttribute(val value: UInt?) - class PacketUnicastTxCountAttribute( - val value: UInt? - ) + class PacketUnicastTxCountAttribute(val value: UInt?) - class CurrentMaxRateAttribute( - val value: ULong? - ) + class CurrentMaxRateAttribute(val value: ULong?) - class OverrunCountAttribute( - val value: ULong? - ) + class OverrunCountAttribute(val value: ULong?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun resetCounts(timedInvokeTimeoutMs: Int? = null) { + suspend fun resetCounts(timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -100,10 +66,7 @@ class WiFiNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeBssidAttribute( - minInterval: Int, - maxInterval: Int - ): BssidAttribute { + suspend fun subscribeBssidAttribute(minInterval: Int, maxInterval: Int): BssidAttribute { // Implementation needs to be added here } @@ -144,10 +107,7 @@ class WiFiNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeRssiAttribute( - minInterval: Int, - maxInterval: Int - ): RssiAttribute { + suspend fun subscribeRssiAttribute(minInterval: Int, maxInterval: Int): RssiAttribute { // Implementation needs to be added here } @@ -265,10 +225,7 @@ class WiFiNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -287,10 +244,7 @@ class WiFiNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -298,10 +252,7 @@ class WiFiNetworkDiagnosticsCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // 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 index 82d4e8b75abe8b..46163d759a0413 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WindowCoveringCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WindowCoveringCluster.kt @@ -20,55 +20,31 @@ package matter.devicecontroller.cluster.clusters import matter.devicecontroller.cluster.structs.* class WindowCoveringCluster(private val endpointId: UShort) { - class CurrentPositionLiftAttribute( - val value: UShort? - ) + class CurrentPositionLiftAttribute(val value: UShort?) - class CurrentPositionTiltAttribute( - val value: UShort? - ) + class CurrentPositionTiltAttribute(val value: UShort?) - class CurrentPositionLiftPercentageAttribute( - val value: UByte? - ) + class CurrentPositionLiftPercentageAttribute(val value: UByte?) - class CurrentPositionTiltPercentageAttribute( - val value: UByte? - ) + class CurrentPositionTiltPercentageAttribute(val value: UByte?) - class TargetPositionLiftPercent100thsAttribute( - val value: UShort? - ) + class TargetPositionLiftPercent100thsAttribute(val value: UShort?) - class TargetPositionTiltPercent100thsAttribute( - val value: UShort? - ) + class TargetPositionTiltPercent100thsAttribute(val value: UShort?) - class CurrentPositionLiftPercent100thsAttribute( - val value: UShort? - ) + class CurrentPositionLiftPercent100thsAttribute(val value: UShort?) - class CurrentPositionTiltPercent100thsAttribute( - val value: UShort? - ) + class CurrentPositionTiltPercent100thsAttribute(val value: UShort?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun upOrOpen(timedInvokeTimeoutMs: Int? = null) { + suspend fun upOrOpen(timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -76,7 +52,7 @@ class WindowCoveringCluster(private val endpointId: UShort) { } } - suspend fun downOrClose(timedInvokeTimeoutMs: Int? = null) { + suspend fun downOrClose(timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -84,7 +60,7 @@ class WindowCoveringCluster(private val endpointId: UShort) { } } - suspend fun stopMotion(timedInvokeTimeoutMs: Int? = null) { + suspend fun stopMotion(timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -92,7 +68,7 @@ class WindowCoveringCluster(private val endpointId: UShort) { } } - suspend fun goToLiftValue(liftValue: UShort, timedInvokeTimeoutMs: Int? = null) { + suspend fun goToLiftValue(liftValue: UShort, timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -100,7 +76,10 @@ class WindowCoveringCluster(private val endpointId: UShort) { } } - suspend fun goToLiftPercentage(liftPercent100thsValue: UShort, timedInvokeTimeoutMs: Int? = null) { + suspend fun goToLiftPercentage( + liftPercent100thsValue: UShort, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -108,7 +87,7 @@ class WindowCoveringCluster(private val endpointId: UShort) { } } - suspend fun goToTiltValue(tiltValue: UShort, timedInvokeTimeoutMs: Int? = null) { + suspend fun goToTiltValue(tiltValue: UShort, timedInvokeTimeoutMs: Int? = null) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -116,7 +95,10 @@ class WindowCoveringCluster(private val endpointId: UShort) { } } - suspend fun goToTiltPercentage(tiltPercent100thsValue: UShort, timedInvokeTimeoutMs: Int? = null) { + suspend fun goToTiltPercentage( + tiltPercent100thsValue: UShort, + timedInvokeTimeoutMs: Int? = null + ) { if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { @@ -128,10 +110,7 @@ class WindowCoveringCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeTypeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeTypeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -183,10 +162,7 @@ class WindowCoveringCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeNumberOfActuationsLiftAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeNumberOfActuationsLiftAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -194,10 +170,7 @@ class WindowCoveringCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeNumberOfActuationsTiltAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeNumberOfActuationsTiltAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -205,10 +178,7 @@ class WindowCoveringCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeConfigStatusAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeConfigStatusAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -238,14 +208,12 @@ class WindowCoveringCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeOperationalStatusAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeOperationalStatusAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readTargetPositionLiftPercent100thsAttribute(): TargetPositionLiftPercent100thsAttribute { + suspend fun readTargetPositionLiftPercent100thsAttribute(): + TargetPositionLiftPercent100thsAttribute { // Implementation needs to be added here } @@ -256,7 +224,8 @@ class WindowCoveringCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readTargetPositionTiltPercent100thsAttribute(): TargetPositionTiltPercent100thsAttribute { + suspend fun readTargetPositionTiltPercent100thsAttribute(): + TargetPositionTiltPercent100thsAttribute { // Implementation needs to be added here } @@ -271,14 +240,12 @@ class WindowCoveringCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEndProductTypeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeEndProductTypeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readCurrentPositionLiftPercent100thsAttribute(): CurrentPositionLiftPercent100thsAttribute { + suspend fun readCurrentPositionLiftPercent100thsAttribute(): + CurrentPositionLiftPercent100thsAttribute { // Implementation needs to be added here } @@ -289,7 +256,8 @@ class WindowCoveringCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun readCurrentPositionTiltPercent100thsAttribute(): CurrentPositionTiltPercent100thsAttribute { + suspend fun readCurrentPositionTiltPercent100thsAttribute(): + CurrentPositionTiltPercent100thsAttribute { // Implementation needs to be added here } @@ -304,10 +272,7 @@ class WindowCoveringCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeInstalledOpenLimitLiftAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeInstalledOpenLimitLiftAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -326,10 +291,7 @@ class WindowCoveringCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeInstalledOpenLimitTiltAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeInstalledOpenLimitTiltAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -348,23 +310,15 @@ class WindowCoveringCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun writeModeAttribute( - value: UInt - ) { + suspend fun writeModeAttribute(value: UInt) { // Implementation needs to be added here } - suspend fun writeModeAttribute( - value: UInt, - timedWriteTimeoutMs: Int - ) { + suspend fun writeModeAttribute(value: UInt, timedWriteTimeoutMs: Int) { // Implementation needs to be added here } - suspend fun subscribeModeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -372,10 +326,7 @@ class WindowCoveringCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeSafetyStatusAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeSafetyStatusAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -405,10 +356,7 @@ class WindowCoveringCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -427,10 +375,7 @@ class WindowCoveringCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -438,10 +383,7 @@ class WindowCoveringCluster(private val endpointId: UShort) { // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlEntryChangedEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlEntryChangedEvent.kt index faddf57bc23504..50ec0a54a8ec73 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlEntryChangedEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlEntryChangedEvent.kt @@ -17,22 +17,20 @@ package matter.devicecontroller.cluster.eventstructs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class AccessControlClusterAccessControlEntryChangedEvent ( - val adminNodeID: ULong?, - val adminPasscodeID: UShort?, - val changeType: UInt, - val latestValue: matter.devicecontroller.cluster.structs.AccessControlClusterAccessControlEntryStruct?, - val fabricIndex: UByte) { - override fun toString(): String = buildString { +class AccessControlClusterAccessControlEntryChangedEvent( + val adminNodeID: ULong?, + val adminPasscodeID: UShort?, + val changeType: UInt, + val latestValue: + matter.devicecontroller.cluster.structs.AccessControlClusterAccessControlEntryStruct?, + val fabricIndex: UByte +) { + override fun toString(): String = buildString { append("AccessControlClusterAccessControlEntryChangedEvent {\n") append("\tadminNodeID : $adminNodeID\n") append("\tadminPasscodeID : $adminPasscodeID\n") @@ -46,21 +44,21 @@ class AccessControlClusterAccessControlEntryChangedEvent ( tlvWriter.apply { startStructure(tlvTag) if (adminNodeID != null) { - put(ContextSpecificTag(TAG_ADMIN_NODE_I_D), adminNodeID) - } else { - putNull(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) - } + put(ContextSpecificTag(TAG_ADMIN_NODE_I_D), adminNodeID) + } else { + putNull(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) + } if (adminPasscodeID != null) { - put(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D), adminPasscodeID) - } else { - putNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) - } + put(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D), adminPasscodeID) + } else { + putNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) + } put(ContextSpecificTag(TAG_CHANGE_TYPE), changeType) if (latestValue != null) { - latestValue.toTlv(ContextSpecificTag(TAG_LATEST_VALUE), this) - } else { - putNull(ContextSpecificTag(TAG_LATEST_VALUE)) - } + latestValue.toTlv(ContextSpecificTag(TAG_LATEST_VALUE), this) + } else { + putNull(ContextSpecificTag(TAG_LATEST_VALUE)) + } put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) endStructure() } @@ -73,32 +71,45 @@ class AccessControlClusterAccessControlEntryChangedEvent ( private const val TAG_LATEST_VALUE = 4 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : AccessControlClusterAccessControlEntryChangedEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): AccessControlClusterAccessControlEntryChangedEvent { tlvReader.enterStructure(tlvTag) - val adminNodeID = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) - null - } - val adminPasscodeID = if (!tlvReader.isNull()) { - tlvReader.getUShort(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) - null - } + val adminNodeID = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) + null + } + val adminPasscodeID = + if (!tlvReader.isNull()) { + tlvReader.getUShort(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) + null + } val changeType = tlvReader.getUInt(ContextSpecificTag(TAG_CHANGE_TYPE)) - val latestValue = if (!tlvReader.isNull()) { - matter.devicecontroller.cluster.structs.AccessControlClusterAccessControlEntryStruct.fromTlv(ContextSpecificTag(TAG_LATEST_VALUE), tlvReader) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_LATEST_VALUE)) - null - } + val latestValue = + if (!tlvReader.isNull()) { + matter.devicecontroller.cluster.structs.AccessControlClusterAccessControlEntryStruct + .fromTlv(ContextSpecificTag(TAG_LATEST_VALUE), tlvReader) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_LATEST_VALUE)) + null + } val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() - return AccessControlClusterAccessControlEntryChangedEvent(adminNodeID, adminPasscodeID, changeType, latestValue, fabricIndex) + return AccessControlClusterAccessControlEntryChangedEvent( + adminNodeID, + adminPasscodeID, + changeType, + latestValue, + fabricIndex + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlExtensionChangedEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlExtensionChangedEvent.kt index 4f1af0f9f0285c..c6721f29f88959 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlExtensionChangedEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlExtensionChangedEvent.kt @@ -17,22 +17,20 @@ package matter.devicecontroller.cluster.eventstructs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class AccessControlClusterAccessControlExtensionChangedEvent ( - val adminNodeID: ULong?, - val adminPasscodeID: UShort?, - val changeType: UInt, - val latestValue: matter.devicecontroller.cluster.structs.AccessControlClusterAccessControlExtensionStruct?, - val fabricIndex: UByte) { - override fun toString(): String = buildString { +class AccessControlClusterAccessControlExtensionChangedEvent( + val adminNodeID: ULong?, + val adminPasscodeID: UShort?, + val changeType: UInt, + val latestValue: + matter.devicecontroller.cluster.structs.AccessControlClusterAccessControlExtensionStruct?, + val fabricIndex: UByte +) { + override fun toString(): String = buildString { append("AccessControlClusterAccessControlExtensionChangedEvent {\n") append("\tadminNodeID : $adminNodeID\n") append("\tadminPasscodeID : $adminPasscodeID\n") @@ -46,21 +44,21 @@ class AccessControlClusterAccessControlExtensionChangedEvent ( tlvWriter.apply { startStructure(tlvTag) if (adminNodeID != null) { - put(ContextSpecificTag(TAG_ADMIN_NODE_I_D), adminNodeID) - } else { - putNull(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) - } + put(ContextSpecificTag(TAG_ADMIN_NODE_I_D), adminNodeID) + } else { + putNull(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) + } if (adminPasscodeID != null) { - put(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D), adminPasscodeID) - } else { - putNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) - } + put(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D), adminPasscodeID) + } else { + putNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) + } put(ContextSpecificTag(TAG_CHANGE_TYPE), changeType) if (latestValue != null) { - latestValue.toTlv(ContextSpecificTag(TAG_LATEST_VALUE), this) - } else { - putNull(ContextSpecificTag(TAG_LATEST_VALUE)) - } + latestValue.toTlv(ContextSpecificTag(TAG_LATEST_VALUE), this) + } else { + putNull(ContextSpecificTag(TAG_LATEST_VALUE)) + } put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) endStructure() } @@ -73,32 +71,45 @@ class AccessControlClusterAccessControlExtensionChangedEvent ( private const val TAG_LATEST_VALUE = 4 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : AccessControlClusterAccessControlExtensionChangedEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): AccessControlClusterAccessControlExtensionChangedEvent { tlvReader.enterStructure(tlvTag) - val adminNodeID = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) - null - } - val adminPasscodeID = if (!tlvReader.isNull()) { - tlvReader.getUShort(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) - null - } + val adminNodeID = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) + null + } + val adminPasscodeID = + if (!tlvReader.isNull()) { + tlvReader.getUShort(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) + null + } val changeType = tlvReader.getUInt(ContextSpecificTag(TAG_CHANGE_TYPE)) - val latestValue = if (!tlvReader.isNull()) { - matter.devicecontroller.cluster.structs.AccessControlClusterAccessControlExtensionStruct.fromTlv(ContextSpecificTag(TAG_LATEST_VALUE), tlvReader) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_LATEST_VALUE)) - null - } + val latestValue = + if (!tlvReader.isNull()) { + matter.devicecontroller.cluster.structs.AccessControlClusterAccessControlExtensionStruct + .fromTlv(ContextSpecificTag(TAG_LATEST_VALUE), tlvReader) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_LATEST_VALUE)) + null + } val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() - return AccessControlClusterAccessControlExtensionChangedEvent(adminNodeID, adminPasscodeID, changeType, latestValue, fabricIndex) + return AccessControlClusterAccessControlExtensionChangedEvent( + adminNodeID, + adminPasscodeID, + changeType, + latestValue, + fabricIndex + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ActionsClusterActionFailedEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ActionsClusterActionFailedEvent.kt index 443086892ef756..7def1a047e9a3a 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ActionsClusterActionFailedEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ActionsClusterActionFailedEvent.kt @@ -17,21 +17,18 @@ package matter.devicecontroller.cluster.eventstructs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ActionsClusterActionFailedEvent ( - val actionID: UShort, - val invokeID: UInt, - val newState: UInt, - val error: UInt) { - override fun toString(): String = buildString { +class ActionsClusterActionFailedEvent( + val actionID: UShort, + val invokeID: UInt, + val newState: UInt, + val error: UInt +) { + override fun toString(): String = buildString { append("ActionsClusterActionFailedEvent {\n") append("\tactionID : $actionID\n") append("\tinvokeID : $invokeID\n") @@ -57,13 +54,13 @@ class ActionsClusterActionFailedEvent ( private const val TAG_NEW_STATE = 2 private const val TAG_ERROR = 3 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ActionsClusterActionFailedEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ActionsClusterActionFailedEvent { tlvReader.enterStructure(tlvTag) val actionID = tlvReader.getUShort(ContextSpecificTag(TAG_ACTION_I_D)) val invokeID = tlvReader.getUInt(ContextSpecificTag(TAG_INVOKE_I_D)) val newState = tlvReader.getUInt(ContextSpecificTag(TAG_NEW_STATE)) val error = tlvReader.getUInt(ContextSpecificTag(TAG_ERROR)) - + tlvReader.exitContainer() return ActionsClusterActionFailedEvent(actionID, invokeID, newState, error) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ActionsClusterStateChangedEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ActionsClusterStateChangedEvent.kt index a2fe5fc32d8956..81ed599b956c26 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ActionsClusterStateChangedEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ActionsClusterStateChangedEvent.kt @@ -17,20 +17,17 @@ package matter.devicecontroller.cluster.eventstructs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ActionsClusterStateChangedEvent ( - val actionID: UShort, - val invokeID: UInt, - val newState: UInt) { - override fun toString(): String = buildString { +class ActionsClusterStateChangedEvent( + val actionID: UShort, + val invokeID: UInt, + val newState: UInt +) { + override fun toString(): String = buildString { append("ActionsClusterStateChangedEvent {\n") append("\tactionID : $actionID\n") append("\tinvokeID : $invokeID\n") @@ -53,12 +50,12 @@ class ActionsClusterStateChangedEvent ( private const val TAG_INVOKE_I_D = 1 private const val TAG_NEW_STATE = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ActionsClusterStateChangedEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ActionsClusterStateChangedEvent { tlvReader.enterStructure(tlvTag) val actionID = tlvReader.getUShort(ContextSpecificTag(TAG_ACTION_I_D)) val invokeID = tlvReader.getUInt(ContextSpecificTag(TAG_INVOKE_I_D)) val newState = tlvReader.getUInt(ContextSpecificTag(TAG_NEW_STATE)) - + tlvReader.exitContainer() return ActionsClusterStateChangedEvent(actionID, invokeID, newState) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BasicInformationClusterLeaveEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BasicInformationClusterLeaveEvent.kt index ff16cca3fc9ca1..527ca9e747d32d 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BasicInformationClusterLeaveEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BasicInformationClusterLeaveEvent.kt @@ -17,18 +17,13 @@ package matter.devicecontroller.cluster.eventstructs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class BasicInformationClusterLeaveEvent ( - val fabricIndex: UByte) { - override fun toString(): String = buildString { +class BasicInformationClusterLeaveEvent(val fabricIndex: UByte) { + override fun toString(): String = buildString { append("BasicInformationClusterLeaveEvent {\n") append("\tfabricIndex : $fabricIndex\n") append("}\n") @@ -45,10 +40,10 @@ class BasicInformationClusterLeaveEvent ( companion object { private const val TAG_FABRIC_INDEX = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BasicInformationClusterLeaveEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): BasicInformationClusterLeaveEvent { tlvReader.enterStructure(tlvTag) val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() return BasicInformationClusterLeaveEvent(fabricIndex) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BasicInformationClusterReachableChangedEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BasicInformationClusterReachableChangedEvent.kt index 695aed76de854f..117e3e4472bedf 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BasicInformationClusterReachableChangedEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BasicInformationClusterReachableChangedEvent.kt @@ -17,18 +17,13 @@ package matter.devicecontroller.cluster.eventstructs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class BasicInformationClusterReachableChangedEvent ( - val reachableNewValue: Boolean) { - override fun toString(): String = buildString { +class BasicInformationClusterReachableChangedEvent(val reachableNewValue: Boolean) { + override fun toString(): String = buildString { append("BasicInformationClusterReachableChangedEvent {\n") append("\treachableNewValue : $reachableNewValue\n") append("}\n") @@ -45,10 +40,10 @@ class BasicInformationClusterReachableChangedEvent ( companion object { private const val TAG_REACHABLE_NEW_VALUE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BasicInformationClusterReachableChangedEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): BasicInformationClusterReachableChangedEvent { tlvReader.enterStructure(tlvTag) val reachableNewValue = tlvReader.getBoolean(ContextSpecificTag(TAG_REACHABLE_NEW_VALUE)) - + tlvReader.exitContainer() return BasicInformationClusterReachableChangedEvent(reachableNewValue) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BasicInformationClusterStartUpEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BasicInformationClusterStartUpEvent.kt index 236599889757cd..cbcb04d823ae49 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BasicInformationClusterStartUpEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BasicInformationClusterStartUpEvent.kt @@ -17,18 +17,13 @@ package matter.devicecontroller.cluster.eventstructs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class BasicInformationClusterStartUpEvent ( - val softwareVersion: UInt) { - override fun toString(): String = buildString { +class BasicInformationClusterStartUpEvent(val softwareVersion: UInt) { + override fun toString(): String = buildString { append("BasicInformationClusterStartUpEvent {\n") append("\tsoftwareVersion : $softwareVersion\n") append("}\n") @@ -45,10 +40,10 @@ class BasicInformationClusterStartUpEvent ( companion object { private const val TAG_SOFTWARE_VERSION = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BasicInformationClusterStartUpEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): BasicInformationClusterStartUpEvent { tlvReader.enterStructure(tlvTag) val softwareVersion = tlvReader.getUInt(ContextSpecificTag(TAG_SOFTWARE_VERSION)) - + tlvReader.exitContainer() return BasicInformationClusterStartUpEvent(softwareVersion) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BooleanStateClusterStateChangeEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BooleanStateClusterStateChangeEvent.kt index c2a3b373ea1ba4..b3ac5fad687aac 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BooleanStateClusterStateChangeEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BooleanStateClusterStateChangeEvent.kt @@ -17,18 +17,13 @@ package matter.devicecontroller.cluster.eventstructs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class BooleanStateClusterStateChangeEvent ( - val stateValue: Boolean) { - override fun toString(): String = buildString { +class BooleanStateClusterStateChangeEvent(val stateValue: Boolean) { + override fun toString(): String = buildString { append("BooleanStateClusterStateChangeEvent {\n") append("\tstateValue : $stateValue\n") append("}\n") @@ -45,10 +40,10 @@ class BooleanStateClusterStateChangeEvent ( companion object { private const val TAG_STATE_VALUE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BooleanStateClusterStateChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): BooleanStateClusterStateChangeEvent { tlvReader.enterStructure(tlvTag) val stateValue = tlvReader.getBoolean(ContextSpecificTag(TAG_STATE_VALUE)) - + tlvReader.exitContainer() return BooleanStateClusterStateChangeEvent(stateValue) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterReachableChangedEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterReachableChangedEvent.kt index 19c02ddf2f6e32..f153ed3f64cc07 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterReachableChangedEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterReachableChangedEvent.kt @@ -17,18 +17,13 @@ package matter.devicecontroller.cluster.eventstructs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class BridgedDeviceBasicInformationClusterReachableChangedEvent ( - val reachableNewValue: Boolean) { - override fun toString(): String = buildString { +class BridgedDeviceBasicInformationClusterReachableChangedEvent(val reachableNewValue: Boolean) { + override fun toString(): String = buildString { append("BridgedDeviceBasicInformationClusterReachableChangedEvent {\n") append("\treachableNewValue : $reachableNewValue\n") append("}\n") @@ -45,10 +40,13 @@ class BridgedDeviceBasicInformationClusterReachableChangedEvent ( companion object { private const val TAG_REACHABLE_NEW_VALUE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BridgedDeviceBasicInformationClusterReachableChangedEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): BridgedDeviceBasicInformationClusterReachableChangedEvent { tlvReader.enterStructure(tlvTag) val reachableNewValue = tlvReader.getBoolean(ContextSpecificTag(TAG_REACHABLE_NEW_VALUE)) - + tlvReader.exitContainer() return BridgedDeviceBasicInformationClusterReachableChangedEvent(reachableNewValue) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterStartUpEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterStartUpEvent.kt index 6d5f7bce8515e1..2df7a457951adf 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterStartUpEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterStartUpEvent.kt @@ -17,18 +17,13 @@ package matter.devicecontroller.cluster.eventstructs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class BridgedDeviceBasicInformationClusterStartUpEvent ( - val softwareVersion: UInt) { - override fun toString(): String = buildString { +class BridgedDeviceBasicInformationClusterStartUpEvent(val softwareVersion: UInt) { + override fun toString(): String = buildString { append("BridgedDeviceBasicInformationClusterStartUpEvent {\n") append("\tsoftwareVersion : $softwareVersion\n") append("}\n") @@ -45,10 +40,13 @@ class BridgedDeviceBasicInformationClusterStartUpEvent ( companion object { private const val TAG_SOFTWARE_VERSION = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BridgedDeviceBasicInformationClusterStartUpEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): BridgedDeviceBasicInformationClusterStartUpEvent { tlvReader.enterStructure(tlvTag) val softwareVersion = tlvReader.getUInt(ContextSpecificTag(TAG_SOFTWARE_VERSION)) - + tlvReader.exitContainer() return BridgedDeviceBasicInformationClusterStartUpEvent(softwareVersion) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DishwasherAlarmClusterNotifyEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DishwasherAlarmClusterNotifyEvent.kt index 6e70a0703c8dc2..3b0bd74a1fd5c7 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DishwasherAlarmClusterNotifyEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DishwasherAlarmClusterNotifyEvent.kt @@ -17,21 +17,18 @@ package matter.devicecontroller.cluster.eventstructs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class DishwasherAlarmClusterNotifyEvent ( - val active: ULong, - val inactive: ULong, - val state: ULong, - val mask: ULong) { - override fun toString(): String = buildString { +class DishwasherAlarmClusterNotifyEvent( + val active: ULong, + val inactive: ULong, + val state: ULong, + val mask: ULong +) { + override fun toString(): String = buildString { append("DishwasherAlarmClusterNotifyEvent {\n") append("\tactive : $active\n") append("\tinactive : $inactive\n") @@ -57,13 +54,13 @@ class DishwasherAlarmClusterNotifyEvent ( private const val TAG_STATE = 2 private const val TAG_MASK = 3 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DishwasherAlarmClusterNotifyEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DishwasherAlarmClusterNotifyEvent { tlvReader.enterStructure(tlvTag) val active = tlvReader.getULong(ContextSpecificTag(TAG_ACTIVE)) val inactive = tlvReader.getULong(ContextSpecificTag(TAG_INACTIVE)) val state = tlvReader.getULong(ContextSpecificTag(TAG_STATE)) val mask = tlvReader.getULong(ContextSpecificTag(TAG_MASK)) - + tlvReader.exitContainer() return DishwasherAlarmClusterNotifyEvent(active, inactive, state, mask) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterDoorLockAlarmEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterDoorLockAlarmEvent.kt index 9ad3a6d97a950f..5acde4acb5f40d 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterDoorLockAlarmEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterDoorLockAlarmEvent.kt @@ -17,18 +17,13 @@ package matter.devicecontroller.cluster.eventstructs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class DoorLockClusterDoorLockAlarmEvent ( - val alarmCode: UInt) { - override fun toString(): String = buildString { +class DoorLockClusterDoorLockAlarmEvent(val alarmCode: UInt) { + override fun toString(): String = buildString { append("DoorLockClusterDoorLockAlarmEvent {\n") append("\talarmCode : $alarmCode\n") append("}\n") @@ -45,10 +40,10 @@ class DoorLockClusterDoorLockAlarmEvent ( companion object { private const val TAG_ALARM_CODE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DoorLockClusterDoorLockAlarmEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DoorLockClusterDoorLockAlarmEvent { tlvReader.enterStructure(tlvTag) val alarmCode = tlvReader.getUInt(ContextSpecificTag(TAG_ALARM_CODE)) - + tlvReader.exitContainer() return DoorLockClusterDoorLockAlarmEvent(alarmCode) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterDoorStateChangeEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterDoorStateChangeEvent.kt index b0c67f67253eff..cc693ce9d5d390 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterDoorStateChangeEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterDoorStateChangeEvent.kt @@ -17,18 +17,13 @@ package matter.devicecontroller.cluster.eventstructs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class DoorLockClusterDoorStateChangeEvent ( - val doorState: UInt) { - override fun toString(): String = buildString { +class DoorLockClusterDoorStateChangeEvent(val doorState: UInt) { + override fun toString(): String = buildString { append("DoorLockClusterDoorStateChangeEvent {\n") append("\tdoorState : $doorState\n") append("}\n") @@ -45,10 +40,10 @@ class DoorLockClusterDoorStateChangeEvent ( companion object { private const val TAG_DOOR_STATE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DoorLockClusterDoorStateChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DoorLockClusterDoorStateChangeEvent { tlvReader.enterStructure(tlvTag) val doorState = tlvReader.getUInt(ContextSpecificTag(TAG_DOOR_STATE)) - + tlvReader.exitContainer() return DoorLockClusterDoorStateChangeEvent(doorState) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationErrorEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationErrorEvent.kt index 1733baba7349c5..84b682fc2d55bb 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationErrorEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationErrorEvent.kt @@ -16,25 +16,25 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class DoorLockClusterLockOperationErrorEvent ( - val lockOperationType: UInt, - val operationSource: UInt, - val operationError: UInt, - val userIndex: UShort?, - val fabricIndex: UByte?, - val sourceNode: ULong?, - val credentials: Optional>?) { - override fun toString(): String = buildString { +class DoorLockClusterLockOperationErrorEvent( + val lockOperationType: UInt, + val operationSource: UInt, + val operationError: UInt, + val userIndex: UShort?, + val fabricIndex: UByte?, + val sourceNode: ULong?, + val credentials: + Optional>? +) { + override fun toString(): String = buildString { append("DoorLockClusterLockOperationErrorEvent {\n") append("\tlockOperationType : $lockOperationType\n") append("\toperationSource : $operationSource\n") @@ -53,32 +53,32 @@ class DoorLockClusterLockOperationErrorEvent ( put(ContextSpecificTag(TAG_OPERATION_SOURCE), operationSource) put(ContextSpecificTag(TAG_OPERATION_ERROR), operationError) if (userIndex != null) { - put(ContextSpecificTag(TAG_USER_INDEX), userIndex) - } else { - putNull(ContextSpecificTag(TAG_USER_INDEX)) - } + put(ContextSpecificTag(TAG_USER_INDEX), userIndex) + } else { + putNull(ContextSpecificTag(TAG_USER_INDEX)) + } if (fabricIndex != null) { - put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) - } else { - putNull(ContextSpecificTag(TAG_FABRIC_INDEX)) - } + put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) + } else { + putNull(ContextSpecificTag(TAG_FABRIC_INDEX)) + } if (sourceNode != null) { - put(ContextSpecificTag(TAG_SOURCE_NODE), sourceNode) - } else { - putNull(ContextSpecificTag(TAG_SOURCE_NODE)) - } + put(ContextSpecificTag(TAG_SOURCE_NODE), sourceNode) + } else { + putNull(ContextSpecificTag(TAG_SOURCE_NODE)) + } if (credentials != null) { - if (credentials.isPresent) { - val optcredentials = credentials.get() - startArray(ContextSpecificTag(TAG_CREDENTIALS)) - for (item in optcredentials.iterator()) { - item.toTlv(AnonymousTag, this) + if (credentials.isPresent) { + val optcredentials = credentials.get() + startArray(ContextSpecificTag(TAG_CREDENTIALS)) + for (item in optcredentials.iterator()) { + item.toTlv(AnonymousTag, this) + } + endArray() + } + } else { + putNull(ContextSpecificTag(TAG_CREDENTIALS)) } - endArray() - } - } else { - putNull(ContextSpecificTag(TAG_CREDENTIALS)) - } endStructure() } } @@ -92,49 +92,68 @@ class DoorLockClusterLockOperationErrorEvent ( private const val TAG_SOURCE_NODE = 5 private const val TAG_CREDENTIALS = 6 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DoorLockClusterLockOperationErrorEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DoorLockClusterLockOperationErrorEvent { tlvReader.enterStructure(tlvTag) val lockOperationType = tlvReader.getUInt(ContextSpecificTag(TAG_LOCK_OPERATION_TYPE)) val operationSource = tlvReader.getUInt(ContextSpecificTag(TAG_OPERATION_SOURCE)) val operationError = tlvReader.getUInt(ContextSpecificTag(TAG_OPERATION_ERROR)) - val userIndex = if (!tlvReader.isNull()) { - tlvReader.getUShort(ContextSpecificTag(TAG_USER_INDEX)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_USER_INDEX)) - null - } - val fabricIndex = if (!tlvReader.isNull()) { - tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_FABRIC_INDEX)) - null - } - val sourceNode = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_SOURCE_NODE)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_SOURCE_NODE)) - null - } - val credentials = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_CREDENTIALS))) { - Optional.of(buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CREDENTIALS)) - while(!tlvReader.isEndOfContainer()) { - this.add(matter.devicecontroller.cluster.structs.DoorLockClusterCredentialStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - }) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_CREDENTIALS)) - null - } - + val userIndex = + if (!tlvReader.isNull()) { + tlvReader.getUShort(ContextSpecificTag(TAG_USER_INDEX)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_USER_INDEX)) + null + } + val fabricIndex = + if (!tlvReader.isNull()) { + tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_FABRIC_INDEX)) + null + } + val sourceNode = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_SOURCE_NODE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_SOURCE_NODE)) + null + } + val credentials = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_CREDENTIALS))) { + Optional.of( + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CREDENTIALS)) + while (!tlvReader.isEndOfContainer()) { + this.add( + matter.devicecontroller.cluster.structs.DoorLockClusterCredentialStruct.fromTlv( + AnonymousTag, + tlvReader + ) + ) + } + tlvReader.exitContainer() + } + ) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_CREDENTIALS)) + null + } + tlvReader.exitContainer() - return DoorLockClusterLockOperationErrorEvent(lockOperationType, operationSource, operationError, userIndex, fabricIndex, sourceNode, credentials) + return DoorLockClusterLockOperationErrorEvent( + lockOperationType, + operationSource, + operationError, + userIndex, + fabricIndex, + sourceNode, + credentials + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationEvent.kt index 71f29d095b086b..4708017ff6fcae 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationEvent.kt @@ -16,24 +16,24 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class DoorLockClusterLockOperationEvent ( - val lockOperationType: UInt, - val operationSource: UInt, - val userIndex: UShort?, - val fabricIndex: UByte?, - val sourceNode: ULong?, - val credentials: Optional>?) { - override fun toString(): String = buildString { +class DoorLockClusterLockOperationEvent( + val lockOperationType: UInt, + val operationSource: UInt, + val userIndex: UShort?, + val fabricIndex: UByte?, + val sourceNode: ULong?, + val credentials: + Optional>? +) { + override fun toString(): String = buildString { append("DoorLockClusterLockOperationEvent {\n") append("\tlockOperationType : $lockOperationType\n") append("\toperationSource : $operationSource\n") @@ -50,32 +50,32 @@ class DoorLockClusterLockOperationEvent ( put(ContextSpecificTag(TAG_LOCK_OPERATION_TYPE), lockOperationType) put(ContextSpecificTag(TAG_OPERATION_SOURCE), operationSource) if (userIndex != null) { - put(ContextSpecificTag(TAG_USER_INDEX), userIndex) - } else { - putNull(ContextSpecificTag(TAG_USER_INDEX)) - } + put(ContextSpecificTag(TAG_USER_INDEX), userIndex) + } else { + putNull(ContextSpecificTag(TAG_USER_INDEX)) + } if (fabricIndex != null) { - put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) - } else { - putNull(ContextSpecificTag(TAG_FABRIC_INDEX)) - } + put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) + } else { + putNull(ContextSpecificTag(TAG_FABRIC_INDEX)) + } if (sourceNode != null) { - put(ContextSpecificTag(TAG_SOURCE_NODE), sourceNode) - } else { - putNull(ContextSpecificTag(TAG_SOURCE_NODE)) - } + put(ContextSpecificTag(TAG_SOURCE_NODE), sourceNode) + } else { + putNull(ContextSpecificTag(TAG_SOURCE_NODE)) + } if (credentials != null) { - if (credentials.isPresent) { - val optcredentials = credentials.get() - startArray(ContextSpecificTag(TAG_CREDENTIALS)) - for (item in optcredentials.iterator()) { - item.toTlv(AnonymousTag, this) + if (credentials.isPresent) { + val optcredentials = credentials.get() + startArray(ContextSpecificTag(TAG_CREDENTIALS)) + for (item in optcredentials.iterator()) { + item.toTlv(AnonymousTag, this) + } + endArray() + } + } else { + putNull(ContextSpecificTag(TAG_CREDENTIALS)) } - endArray() - } - } else { - putNull(ContextSpecificTag(TAG_CREDENTIALS)) - } endStructure() } } @@ -88,48 +88,66 @@ class DoorLockClusterLockOperationEvent ( private const val TAG_SOURCE_NODE = 4 private const val TAG_CREDENTIALS = 5 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DoorLockClusterLockOperationEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DoorLockClusterLockOperationEvent { tlvReader.enterStructure(tlvTag) val lockOperationType = tlvReader.getUInt(ContextSpecificTag(TAG_LOCK_OPERATION_TYPE)) val operationSource = tlvReader.getUInt(ContextSpecificTag(TAG_OPERATION_SOURCE)) - val userIndex = if (!tlvReader.isNull()) { - tlvReader.getUShort(ContextSpecificTag(TAG_USER_INDEX)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_USER_INDEX)) - null - } - val fabricIndex = if (!tlvReader.isNull()) { - tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_FABRIC_INDEX)) - null - } - val sourceNode = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_SOURCE_NODE)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_SOURCE_NODE)) - null - } - val credentials = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_CREDENTIALS))) { - Optional.of(buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CREDENTIALS)) - while(!tlvReader.isEndOfContainer()) { - this.add(matter.devicecontroller.cluster.structs.DoorLockClusterCredentialStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - }) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_CREDENTIALS)) - null - } - + val userIndex = + if (!tlvReader.isNull()) { + tlvReader.getUShort(ContextSpecificTag(TAG_USER_INDEX)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_USER_INDEX)) + null + } + val fabricIndex = + if (!tlvReader.isNull()) { + tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_FABRIC_INDEX)) + null + } + val sourceNode = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_SOURCE_NODE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_SOURCE_NODE)) + null + } + val credentials = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_CREDENTIALS))) { + Optional.of( + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CREDENTIALS)) + while (!tlvReader.isEndOfContainer()) { + this.add( + matter.devicecontroller.cluster.structs.DoorLockClusterCredentialStruct.fromTlv( + AnonymousTag, + tlvReader + ) + ) + } + tlvReader.exitContainer() + } + ) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_CREDENTIALS)) + null + } + tlvReader.exitContainer() - return DoorLockClusterLockOperationEvent(lockOperationType, operationSource, userIndex, fabricIndex, sourceNode, credentials) + return DoorLockClusterLockOperationEvent( + lockOperationType, + operationSource, + userIndex, + fabricIndex, + sourceNode, + credentials + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterLockUserChangeEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterLockUserChangeEvent.kt index 12ee1d011dc3e3..81814e6393b670 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterLockUserChangeEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterLockUserChangeEvent.kt @@ -17,24 +17,21 @@ package matter.devicecontroller.cluster.eventstructs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class DoorLockClusterLockUserChangeEvent ( - val lockDataType: UInt, - val dataOperationType: UInt, - val operationSource: UInt, - val userIndex: UShort?, - val fabricIndex: UByte?, - val sourceNode: ULong?, - val dataIndex: UShort?) { - override fun toString(): String = buildString { +class DoorLockClusterLockUserChangeEvent( + val lockDataType: UInt, + val dataOperationType: UInt, + val operationSource: UInt, + val userIndex: UShort?, + val fabricIndex: UByte?, + val sourceNode: ULong?, + val dataIndex: UShort? +) { + override fun toString(): String = buildString { append("DoorLockClusterLockUserChangeEvent {\n") append("\tlockDataType : $lockDataType\n") append("\tdataOperationType : $dataOperationType\n") @@ -53,25 +50,25 @@ class DoorLockClusterLockUserChangeEvent ( put(ContextSpecificTag(TAG_DATA_OPERATION_TYPE), dataOperationType) put(ContextSpecificTag(TAG_OPERATION_SOURCE), operationSource) if (userIndex != null) { - put(ContextSpecificTag(TAG_USER_INDEX), userIndex) - } else { - putNull(ContextSpecificTag(TAG_USER_INDEX)) - } + put(ContextSpecificTag(TAG_USER_INDEX), userIndex) + } else { + putNull(ContextSpecificTag(TAG_USER_INDEX)) + } if (fabricIndex != null) { - put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) - } else { - putNull(ContextSpecificTag(TAG_FABRIC_INDEX)) - } + put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) + } else { + putNull(ContextSpecificTag(TAG_FABRIC_INDEX)) + } if (sourceNode != null) { - put(ContextSpecificTag(TAG_SOURCE_NODE), sourceNode) - } else { - putNull(ContextSpecificTag(TAG_SOURCE_NODE)) - } + put(ContextSpecificTag(TAG_SOURCE_NODE), sourceNode) + } else { + putNull(ContextSpecificTag(TAG_SOURCE_NODE)) + } if (dataIndex != null) { - put(ContextSpecificTag(TAG_DATA_INDEX), dataIndex) - } else { - putNull(ContextSpecificTag(TAG_DATA_INDEX)) - } + put(ContextSpecificTag(TAG_DATA_INDEX), dataIndex) + } else { + putNull(ContextSpecificTag(TAG_DATA_INDEX)) + } endStructure() } } @@ -85,39 +82,51 @@ class DoorLockClusterLockUserChangeEvent ( private const val TAG_SOURCE_NODE = 5 private const val TAG_DATA_INDEX = 6 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DoorLockClusterLockUserChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DoorLockClusterLockUserChangeEvent { tlvReader.enterStructure(tlvTag) val lockDataType = tlvReader.getUInt(ContextSpecificTag(TAG_LOCK_DATA_TYPE)) val dataOperationType = tlvReader.getUInt(ContextSpecificTag(TAG_DATA_OPERATION_TYPE)) val operationSource = tlvReader.getUInt(ContextSpecificTag(TAG_OPERATION_SOURCE)) - val userIndex = if (!tlvReader.isNull()) { - tlvReader.getUShort(ContextSpecificTag(TAG_USER_INDEX)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_USER_INDEX)) - null - } - val fabricIndex = if (!tlvReader.isNull()) { - tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_FABRIC_INDEX)) - null - } - val sourceNode = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_SOURCE_NODE)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_SOURCE_NODE)) - null - } - val dataIndex = if (!tlvReader.isNull()) { - tlvReader.getUShort(ContextSpecificTag(TAG_DATA_INDEX)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_DATA_INDEX)) - null - } - + val userIndex = + if (!tlvReader.isNull()) { + tlvReader.getUShort(ContextSpecificTag(TAG_USER_INDEX)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_USER_INDEX)) + null + } + val fabricIndex = + if (!tlvReader.isNull()) { + tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_FABRIC_INDEX)) + null + } + val sourceNode = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_SOURCE_NODE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_SOURCE_NODE)) + null + } + val dataIndex = + if (!tlvReader.isNull()) { + tlvReader.getUShort(ContextSpecificTag(TAG_DATA_INDEX)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_DATA_INDEX)) + null + } + tlvReader.exitContainer() - return DoorLockClusterLockUserChangeEvent(lockDataType, dataOperationType, operationSource, userIndex, fabricIndex, sourceNode, dataIndex) + return DoorLockClusterLockUserChangeEvent( + lockDataType, + dataOperationType, + operationSource, + userIndex, + fabricIndex, + sourceNode, + dataIndex + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterBootReasonEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterBootReasonEvent.kt index 97462d07a98b25..39205bf4badbef 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterBootReasonEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterBootReasonEvent.kt @@ -17,18 +17,13 @@ package matter.devicecontroller.cluster.eventstructs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class GeneralDiagnosticsClusterBootReasonEvent ( - val bootReason: UInt) { - override fun toString(): String = buildString { +class GeneralDiagnosticsClusterBootReasonEvent(val bootReason: UInt) { + override fun toString(): String = buildString { append("GeneralDiagnosticsClusterBootReasonEvent {\n") append("\tbootReason : $bootReason\n") append("}\n") @@ -45,10 +40,10 @@ class GeneralDiagnosticsClusterBootReasonEvent ( companion object { private const val TAG_BOOT_REASON = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : GeneralDiagnosticsClusterBootReasonEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): GeneralDiagnosticsClusterBootReasonEvent { tlvReader.enterStructure(tlvTag) val bootReason = tlvReader.getUInt(ContextSpecificTag(TAG_BOOT_REASON)) - + tlvReader.exitContainer() return GeneralDiagnosticsClusterBootReasonEvent(bootReason) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterHardwareFaultChangeEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterHardwareFaultChangeEvent.kt index 509c935e97272a..b24c90d6904e36 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterHardwareFaultChangeEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterHardwareFaultChangeEvent.kt @@ -20,16 +20,14 @@ import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class GeneralDiagnosticsClusterHardwareFaultChangeEvent ( - val current: List, - val previous: List) { - override fun toString(): String = buildString { +class GeneralDiagnosticsClusterHardwareFaultChangeEvent( + val current: List, + val previous: List +) { + override fun toString(): String = buildString { append("GeneralDiagnosticsClusterHardwareFaultChangeEvent {\n") append("\tcurrent : $current\n") append("\tprevious : $previous\n") @@ -57,23 +55,28 @@ class GeneralDiagnosticsClusterHardwareFaultChangeEvent ( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : GeneralDiagnosticsClusterHardwareFaultChangeEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): GeneralDiagnosticsClusterHardwareFaultChangeEvent { tlvReader.enterStructure(tlvTag) - val current = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val previous = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val current = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val previous = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return GeneralDiagnosticsClusterHardwareFaultChangeEvent(current, previous) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterNetworkFaultChangeEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterNetworkFaultChangeEvent.kt index 75ee69e3f8b62a..f4423fa23b3783 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterNetworkFaultChangeEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterNetworkFaultChangeEvent.kt @@ -20,16 +20,14 @@ import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class GeneralDiagnosticsClusterNetworkFaultChangeEvent ( - val current: List, - val previous: List) { - override fun toString(): String = buildString { +class GeneralDiagnosticsClusterNetworkFaultChangeEvent( + val current: List, + val previous: List +) { + override fun toString(): String = buildString { append("GeneralDiagnosticsClusterNetworkFaultChangeEvent {\n") append("\tcurrent : $current\n") append("\tprevious : $previous\n") @@ -57,23 +55,28 @@ class GeneralDiagnosticsClusterNetworkFaultChangeEvent ( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : GeneralDiagnosticsClusterNetworkFaultChangeEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): GeneralDiagnosticsClusterNetworkFaultChangeEvent { tlvReader.enterStructure(tlvTag) - val current = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val previous = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val current = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val previous = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return GeneralDiagnosticsClusterNetworkFaultChangeEvent(current, previous) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterRadioFaultChangeEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterRadioFaultChangeEvent.kt index 0c16c5525a24cb..f42f34f9689d63 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterRadioFaultChangeEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterRadioFaultChangeEvent.kt @@ -20,16 +20,14 @@ import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class GeneralDiagnosticsClusterRadioFaultChangeEvent ( - val current: List, - val previous: List) { - override fun toString(): String = buildString { +class GeneralDiagnosticsClusterRadioFaultChangeEvent( + val current: List, + val previous: List +) { + override fun toString(): String = buildString { append("GeneralDiagnosticsClusterRadioFaultChangeEvent {\n") append("\tcurrent : $current\n") append("\tprevious : $previous\n") @@ -57,23 +55,25 @@ class GeneralDiagnosticsClusterRadioFaultChangeEvent ( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : GeneralDiagnosticsClusterRadioFaultChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): GeneralDiagnosticsClusterRadioFaultChangeEvent { tlvReader.enterStructure(tlvTag) - val current = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val previous = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val current = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val previous = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return GeneralDiagnosticsClusterRadioFaultChangeEvent(current, previous) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationCompletionEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationCompletionEvent.kt index c16a8878f1aa27..f2f65bc0d0e509 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationCompletionEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationCompletionEvent.kt @@ -16,21 +16,19 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class OperationalStateClusterOperationCompletionEvent ( - val completionErrorCode: UInt, - val totalOperationalTime: Optional?, - val pausedTime: Optional?) { - override fun toString(): String = buildString { +class OperationalStateClusterOperationCompletionEvent( + val completionErrorCode: UInt, + val totalOperationalTime: Optional?, + val pausedTime: Optional? +) { + override fun toString(): String = buildString { append("OperationalStateClusterOperationCompletionEvent {\n") append("\tcompletionErrorCode : $completionErrorCode\n") append("\ttotalOperationalTime : $totalOperationalTime\n") @@ -43,21 +41,21 @@ class OperationalStateClusterOperationCompletionEvent ( startStructure(tlvTag) put(ContextSpecificTag(TAG_COMPLETION_ERROR_CODE), completionErrorCode) if (totalOperationalTime != null) { - if (totalOperationalTime.isPresent) { - val opttotalOperationalTime = totalOperationalTime.get() - put(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME), opttotalOperationalTime) - } - } else { - putNull(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME)) - } + if (totalOperationalTime.isPresent) { + val opttotalOperationalTime = totalOperationalTime.get() + put(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME), opttotalOperationalTime) + } + } else { + putNull(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME)) + } if (pausedTime != null) { - if (pausedTime.isPresent) { - val optpausedTime = pausedTime.get() - put(ContextSpecificTag(TAG_PAUSED_TIME), optpausedTime) - } - } else { - putNull(ContextSpecificTag(TAG_PAUSED_TIME)) - } + if (pausedTime.isPresent) { + val optpausedTime = pausedTime.get() + put(ContextSpecificTag(TAG_PAUSED_TIME), optpausedTime) + } + } else { + putNull(ContextSpecificTag(TAG_PAUSED_TIME)) + } endStructure() } } @@ -67,33 +65,42 @@ class OperationalStateClusterOperationCompletionEvent ( private const val TAG_TOTAL_OPERATIONAL_TIME = 1 private const val TAG_PAUSED_TIME = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OperationalStateClusterOperationCompletionEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): OperationalStateClusterOperationCompletionEvent { tlvReader.enterStructure(tlvTag) val completionErrorCode = tlvReader.getUInt(ContextSpecificTag(TAG_COMPLETION_ERROR_CODE)) - val totalOperationalTime = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME)) - null - } - val pausedTime = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_PAUSED_TIME))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_PAUSED_TIME))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_PAUSED_TIME)) - null - } - + val totalOperationalTime = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME)) + null + } + val pausedTime = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_PAUSED_TIME))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_PAUSED_TIME))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PAUSED_TIME)) + null + } + tlvReader.exitContainer() - return OperationalStateClusterOperationCompletionEvent(completionErrorCode, totalOperationalTime, pausedTime) + return OperationalStateClusterOperationCompletionEvent( + completionErrorCode, + totalOperationalTime, + pausedTime + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationalErrorEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationalErrorEvent.kt index 646b10fe316f0b..802e306c594c80 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationalErrorEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationalErrorEvent.kt @@ -17,18 +17,15 @@ package matter.devicecontroller.cluster.eventstructs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class OperationalStateClusterOperationalErrorEvent ( - val errorState: matter.devicecontroller.cluster.structs.OperationalStateClusterErrorStateStruct) { - override fun toString(): String = buildString { +class OperationalStateClusterOperationalErrorEvent( + val errorState: matter.devicecontroller.cluster.structs.OperationalStateClusterErrorStateStruct +) { + override fun toString(): String = buildString { append("OperationalStateClusterOperationalErrorEvent {\n") append("\terrorState : $errorState\n") append("}\n") @@ -45,10 +42,14 @@ class OperationalStateClusterOperationalErrorEvent ( companion object { private const val TAG_ERROR_STATE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OperationalStateClusterOperationalErrorEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): OperationalStateClusterOperationalErrorEvent { tlvReader.enterStructure(tlvTag) - val errorState = matter.devicecontroller.cluster.structs.OperationalStateClusterErrorStateStruct.fromTlv(ContextSpecificTag(TAG_ERROR_STATE), tlvReader) - + val errorState = + matter.devicecontroller.cluster.structs.OperationalStateClusterErrorStateStruct.fromTlv( + ContextSpecificTag(TAG_ERROR_STATE), + tlvReader + ) + tlvReader.exitContainer() return OperationalStateClusterOperationalErrorEvent(errorState) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterDownloadErrorEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterDownloadErrorEvent.kt index 980730e53e8c3d..a36f9161a81b62 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterDownloadErrorEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterDownloadErrorEvent.kt @@ -17,21 +17,18 @@ package matter.devicecontroller.cluster.eventstructs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class OtaSoftwareUpdateRequestorClusterDownloadErrorEvent ( - val softwareVersion: UInt, - val bytesDownloaded: ULong, - val progressPercent: UByte?, - val platformCode: Long?) { - override fun toString(): String = buildString { +class OtaSoftwareUpdateRequestorClusterDownloadErrorEvent( + val softwareVersion: UInt, + val bytesDownloaded: ULong, + val progressPercent: UByte?, + val platformCode: Long? +) { + override fun toString(): String = buildString { append("OtaSoftwareUpdateRequestorClusterDownloadErrorEvent {\n") append("\tsoftwareVersion : $softwareVersion\n") append("\tbytesDownloaded : $bytesDownloaded\n") @@ -46,15 +43,15 @@ class OtaSoftwareUpdateRequestorClusterDownloadErrorEvent ( put(ContextSpecificTag(TAG_SOFTWARE_VERSION), softwareVersion) put(ContextSpecificTag(TAG_BYTES_DOWNLOADED), bytesDownloaded) if (progressPercent != null) { - put(ContextSpecificTag(TAG_PROGRESS_PERCENT), progressPercent) - } else { - putNull(ContextSpecificTag(TAG_PROGRESS_PERCENT)) - } + put(ContextSpecificTag(TAG_PROGRESS_PERCENT), progressPercent) + } else { + putNull(ContextSpecificTag(TAG_PROGRESS_PERCENT)) + } if (platformCode != null) { - put(ContextSpecificTag(TAG_PLATFORM_CODE), platformCode) - } else { - putNull(ContextSpecificTag(TAG_PLATFORM_CODE)) - } + put(ContextSpecificTag(TAG_PLATFORM_CODE), platformCode) + } else { + putNull(ContextSpecificTag(TAG_PLATFORM_CODE)) + } endStructure() } } @@ -65,26 +62,36 @@ class OtaSoftwareUpdateRequestorClusterDownloadErrorEvent ( private const val TAG_PROGRESS_PERCENT = 2 private const val TAG_PLATFORM_CODE = 3 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OtaSoftwareUpdateRequestorClusterDownloadErrorEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): OtaSoftwareUpdateRequestorClusterDownloadErrorEvent { tlvReader.enterStructure(tlvTag) val softwareVersion = tlvReader.getUInt(ContextSpecificTag(TAG_SOFTWARE_VERSION)) val bytesDownloaded = tlvReader.getULong(ContextSpecificTag(TAG_BYTES_DOWNLOADED)) - val progressPercent = if (!tlvReader.isNull()) { - tlvReader.getUByte(ContextSpecificTag(TAG_PROGRESS_PERCENT)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_PROGRESS_PERCENT)) - null - } - val platformCode = if (!tlvReader.isNull()) { - tlvReader.getLong(ContextSpecificTag(TAG_PLATFORM_CODE)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_PLATFORM_CODE)) - null - } - + val progressPercent = + if (!tlvReader.isNull()) { + tlvReader.getUByte(ContextSpecificTag(TAG_PROGRESS_PERCENT)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PROGRESS_PERCENT)) + null + } + val platformCode = + if (!tlvReader.isNull()) { + tlvReader.getLong(ContextSpecificTag(TAG_PLATFORM_CODE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PLATFORM_CODE)) + null + } + tlvReader.exitContainer() - return OtaSoftwareUpdateRequestorClusterDownloadErrorEvent(softwareVersion, bytesDownloaded, progressPercent, platformCode) + return OtaSoftwareUpdateRequestorClusterDownloadErrorEvent( + softwareVersion, + bytesDownloaded, + progressPercent, + platformCode + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterStateTransitionEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterStateTransitionEvent.kt index 8ff0d3acf1e89f..993efa8e9c93fc 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterStateTransitionEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterStateTransitionEvent.kt @@ -17,21 +17,18 @@ package matter.devicecontroller.cluster.eventstructs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class OtaSoftwareUpdateRequestorClusterStateTransitionEvent ( - val previousState: UInt, - val newState: UInt, - val reason: UInt, - val targetSoftwareVersion: UInt?) { - override fun toString(): String = buildString { +class OtaSoftwareUpdateRequestorClusterStateTransitionEvent( + val previousState: UInt, + val newState: UInt, + val reason: UInt, + val targetSoftwareVersion: UInt? +) { + override fun toString(): String = buildString { append("OtaSoftwareUpdateRequestorClusterStateTransitionEvent {\n") append("\tpreviousState : $previousState\n") append("\tnewState : $newState\n") @@ -47,10 +44,10 @@ class OtaSoftwareUpdateRequestorClusterStateTransitionEvent ( put(ContextSpecificTag(TAG_NEW_STATE), newState) put(ContextSpecificTag(TAG_REASON), reason) if (targetSoftwareVersion != null) { - put(ContextSpecificTag(TAG_TARGET_SOFTWARE_VERSION), targetSoftwareVersion) - } else { - putNull(ContextSpecificTag(TAG_TARGET_SOFTWARE_VERSION)) - } + put(ContextSpecificTag(TAG_TARGET_SOFTWARE_VERSION), targetSoftwareVersion) + } else { + putNull(ContextSpecificTag(TAG_TARGET_SOFTWARE_VERSION)) + } endStructure() } } @@ -61,21 +58,30 @@ class OtaSoftwareUpdateRequestorClusterStateTransitionEvent ( private const val TAG_REASON = 2 private const val TAG_TARGET_SOFTWARE_VERSION = 3 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OtaSoftwareUpdateRequestorClusterStateTransitionEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): OtaSoftwareUpdateRequestorClusterStateTransitionEvent { tlvReader.enterStructure(tlvTag) val previousState = tlvReader.getUInt(ContextSpecificTag(TAG_PREVIOUS_STATE)) val newState = tlvReader.getUInt(ContextSpecificTag(TAG_NEW_STATE)) val reason = tlvReader.getUInt(ContextSpecificTag(TAG_REASON)) - val targetSoftwareVersion = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_TARGET_SOFTWARE_VERSION)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_TARGET_SOFTWARE_VERSION)) - null - } - + val targetSoftwareVersion = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_TARGET_SOFTWARE_VERSION)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_TARGET_SOFTWARE_VERSION)) + null + } + tlvReader.exitContainer() - return OtaSoftwareUpdateRequestorClusterStateTransitionEvent(previousState, newState, reason, targetSoftwareVersion) + return OtaSoftwareUpdateRequestorClusterStateTransitionEvent( + previousState, + newState, + reason, + targetSoftwareVersion + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterVersionAppliedEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterVersionAppliedEvent.kt index 6edf411ae5a1b7..f8b32d0d560892 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterVersionAppliedEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterVersionAppliedEvent.kt @@ -17,19 +17,16 @@ package matter.devicecontroller.cluster.eventstructs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class OtaSoftwareUpdateRequestorClusterVersionAppliedEvent ( - val softwareVersion: UInt, - val productID: UShort) { - override fun toString(): String = buildString { +class OtaSoftwareUpdateRequestorClusterVersionAppliedEvent( + val softwareVersion: UInt, + val productID: UShort +) { + override fun toString(): String = buildString { append("OtaSoftwareUpdateRequestorClusterVersionAppliedEvent {\n") append("\tsoftwareVersion : $softwareVersion\n") append("\tproductID : $productID\n") @@ -49,11 +46,14 @@ class OtaSoftwareUpdateRequestorClusterVersionAppliedEvent ( private const val TAG_SOFTWARE_VERSION = 0 private const val TAG_PRODUCT_I_D = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OtaSoftwareUpdateRequestorClusterVersionAppliedEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): OtaSoftwareUpdateRequestorClusterVersionAppliedEvent { tlvReader.enterStructure(tlvTag) val softwareVersion = tlvReader.getUInt(ContextSpecificTag(TAG_SOFTWARE_VERSION)) val productID = tlvReader.getUShort(ContextSpecificTag(TAG_PRODUCT_I_D)) - + tlvReader.exitContainer() return OtaSoftwareUpdateRequestorClusterVersionAppliedEvent(softwareVersion, productID) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/PowerSourceClusterBatChargeFaultChangeEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/PowerSourceClusterBatChargeFaultChangeEvent.kt index 4fbe3357bc9c13..21cdcf674fa338 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/PowerSourceClusterBatChargeFaultChangeEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/PowerSourceClusterBatChargeFaultChangeEvent.kt @@ -20,16 +20,14 @@ import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class PowerSourceClusterBatChargeFaultChangeEvent ( - val current: List, - val previous: List) { - override fun toString(): String = buildString { +class PowerSourceClusterBatChargeFaultChangeEvent( + val current: List, + val previous: List +) { + override fun toString(): String = buildString { append("PowerSourceClusterBatChargeFaultChangeEvent {\n") append("\tcurrent : $current\n") append("\tprevious : $previous\n") @@ -57,23 +55,25 @@ class PowerSourceClusterBatChargeFaultChangeEvent ( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : PowerSourceClusterBatChargeFaultChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): PowerSourceClusterBatChargeFaultChangeEvent { tlvReader.enterStructure(tlvTag) - val current = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val previous = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val current = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val previous = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return PowerSourceClusterBatChargeFaultChangeEvent(current, previous) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/PowerSourceClusterBatFaultChangeEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/PowerSourceClusterBatFaultChangeEvent.kt index f8d970868ae861..d1fd41e582dc94 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/PowerSourceClusterBatFaultChangeEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/PowerSourceClusterBatFaultChangeEvent.kt @@ -20,16 +20,11 @@ import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class PowerSourceClusterBatFaultChangeEvent ( - val current: List, - val previous: List) { - override fun toString(): String = buildString { +class PowerSourceClusterBatFaultChangeEvent(val current: List, val previous: List) { + override fun toString(): String = buildString { append("PowerSourceClusterBatFaultChangeEvent {\n") append("\tcurrent : $current\n") append("\tprevious : $previous\n") @@ -57,23 +52,25 @@ class PowerSourceClusterBatFaultChangeEvent ( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : PowerSourceClusterBatFaultChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): PowerSourceClusterBatFaultChangeEvent { tlvReader.enterStructure(tlvTag) - val current = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val previous = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val current = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val previous = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return PowerSourceClusterBatFaultChangeEvent(current, previous) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/PowerSourceClusterWiredFaultChangeEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/PowerSourceClusterWiredFaultChangeEvent.kt index ad82de47d8e419..8aaacc0cb49fc4 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/PowerSourceClusterWiredFaultChangeEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/PowerSourceClusterWiredFaultChangeEvent.kt @@ -20,16 +20,11 @@ import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class PowerSourceClusterWiredFaultChangeEvent ( - val current: List, - val previous: List) { - override fun toString(): String = buildString { +class PowerSourceClusterWiredFaultChangeEvent(val current: List, val previous: List) { + override fun toString(): String = buildString { append("PowerSourceClusterWiredFaultChangeEvent {\n") append("\tcurrent : $current\n") append("\tprevious : $previous\n") @@ -57,23 +52,25 @@ class PowerSourceClusterWiredFaultChangeEvent ( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : PowerSourceClusterWiredFaultChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): PowerSourceClusterWiredFaultChangeEvent { tlvReader.enterStructure(tlvTag) - val current = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val previous = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val current = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val previous = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return PowerSourceClusterWiredFaultChangeEvent(current, previous) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/RefrigeratorAlarmClusterNotifyEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/RefrigeratorAlarmClusterNotifyEvent.kt index d031fb8e56c378..ee7c9b8ebfaae6 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/RefrigeratorAlarmClusterNotifyEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/RefrigeratorAlarmClusterNotifyEvent.kt @@ -17,21 +17,18 @@ package matter.devicecontroller.cluster.eventstructs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class RefrigeratorAlarmClusterNotifyEvent ( - val active: ULong, - val inactive: ULong, - val state: ULong, - val mask: ULong) { - override fun toString(): String = buildString { +class RefrigeratorAlarmClusterNotifyEvent( + val active: ULong, + val inactive: ULong, + val state: ULong, + val mask: ULong +) { + override fun toString(): String = buildString { append("RefrigeratorAlarmClusterNotifyEvent {\n") append("\tactive : $active\n") append("\tinactive : $inactive\n") @@ -57,13 +54,13 @@ class RefrigeratorAlarmClusterNotifyEvent ( private const val TAG_STATE = 2 private const val TAG_MASK = 3 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RefrigeratorAlarmClusterNotifyEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): RefrigeratorAlarmClusterNotifyEvent { tlvReader.enterStructure(tlvTag) val active = tlvReader.getULong(ContextSpecificTag(TAG_ACTIVE)) val inactive = tlvReader.getULong(ContextSpecificTag(TAG_INACTIVE)) val state = tlvReader.getULong(ContextSpecificTag(TAG_STATE)) val mask = tlvReader.getULong(ContextSpecificTag(TAG_MASK)) - + tlvReader.exitContainer() return RefrigeratorAlarmClusterNotifyEvent(active, inactive, state, mask) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationCompletionEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationCompletionEvent.kt index 54e031a3d81c45..3004686f8b67d8 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationCompletionEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationCompletionEvent.kt @@ -16,21 +16,19 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class RvcOperationalStateClusterOperationCompletionEvent ( - val completionErrorCode: UInt, - val totalOperationalTime: Optional?, - val pausedTime: Optional?) { - override fun toString(): String = buildString { +class RvcOperationalStateClusterOperationCompletionEvent( + val completionErrorCode: UInt, + val totalOperationalTime: Optional?, + val pausedTime: Optional? +) { + override fun toString(): String = buildString { append("RvcOperationalStateClusterOperationCompletionEvent {\n") append("\tcompletionErrorCode : $completionErrorCode\n") append("\ttotalOperationalTime : $totalOperationalTime\n") @@ -43,21 +41,21 @@ class RvcOperationalStateClusterOperationCompletionEvent ( startStructure(tlvTag) put(ContextSpecificTag(TAG_COMPLETION_ERROR_CODE), completionErrorCode) if (totalOperationalTime != null) { - if (totalOperationalTime.isPresent) { - val opttotalOperationalTime = totalOperationalTime.get() - put(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME), opttotalOperationalTime) - } - } else { - putNull(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME)) - } + if (totalOperationalTime.isPresent) { + val opttotalOperationalTime = totalOperationalTime.get() + put(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME), opttotalOperationalTime) + } + } else { + putNull(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME)) + } if (pausedTime != null) { - if (pausedTime.isPresent) { - val optpausedTime = pausedTime.get() - put(ContextSpecificTag(TAG_PAUSED_TIME), optpausedTime) - } - } else { - putNull(ContextSpecificTag(TAG_PAUSED_TIME)) - } + if (pausedTime.isPresent) { + val optpausedTime = pausedTime.get() + put(ContextSpecificTag(TAG_PAUSED_TIME), optpausedTime) + } + } else { + putNull(ContextSpecificTag(TAG_PAUSED_TIME)) + } endStructure() } } @@ -67,33 +65,42 @@ class RvcOperationalStateClusterOperationCompletionEvent ( private const val TAG_TOTAL_OPERATIONAL_TIME = 1 private const val TAG_PAUSED_TIME = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RvcOperationalStateClusterOperationCompletionEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): RvcOperationalStateClusterOperationCompletionEvent { tlvReader.enterStructure(tlvTag) val completionErrorCode = tlvReader.getUInt(ContextSpecificTag(TAG_COMPLETION_ERROR_CODE)) - val totalOperationalTime = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME)) - null - } - val pausedTime = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_PAUSED_TIME))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_PAUSED_TIME))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_PAUSED_TIME)) - null - } - + val totalOperationalTime = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME)) + null + } + val pausedTime = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_PAUSED_TIME))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_PAUSED_TIME))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PAUSED_TIME)) + null + } + tlvReader.exitContainer() - return RvcOperationalStateClusterOperationCompletionEvent(completionErrorCode, totalOperationalTime, pausedTime) + return RvcOperationalStateClusterOperationCompletionEvent( + completionErrorCode, + totalOperationalTime, + pausedTime + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationalErrorEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationalErrorEvent.kt index 27e9f0992d1cee..ff973d17fe9684 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationalErrorEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationalErrorEvent.kt @@ -17,18 +17,15 @@ package matter.devicecontroller.cluster.eventstructs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class RvcOperationalStateClusterOperationalErrorEvent ( - val errorState: matter.devicecontroller.cluster.structs.RvcOperationalStateClusterErrorStateStruct) { - override fun toString(): String = buildString { +class RvcOperationalStateClusterOperationalErrorEvent( + val errorState: matter.devicecontroller.cluster.structs.RvcOperationalStateClusterErrorStateStruct +) { + override fun toString(): String = buildString { append("RvcOperationalStateClusterOperationalErrorEvent {\n") append("\terrorState : $errorState\n") append("}\n") @@ -45,10 +42,17 @@ class RvcOperationalStateClusterOperationalErrorEvent ( companion object { private const val TAG_ERROR_STATE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RvcOperationalStateClusterOperationalErrorEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): RvcOperationalStateClusterOperationalErrorEvent { tlvReader.enterStructure(tlvTag) - val errorState = matter.devicecontroller.cluster.structs.RvcOperationalStateClusterErrorStateStruct.fromTlv(ContextSpecificTag(TAG_ERROR_STATE), tlvReader) - + val errorState = + matter.devicecontroller.cluster.structs.RvcOperationalStateClusterErrorStateStruct.fromTlv( + ContextSpecificTag(TAG_ERROR_STATE), + tlvReader + ) + tlvReader.exitContainer() return RvcOperationalStateClusterOperationalErrorEvent(errorState) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterCOAlarmEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterCOAlarmEvent.kt index db3da8492c547b..e70b19a92636d3 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterCOAlarmEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterCOAlarmEvent.kt @@ -17,18 +17,13 @@ package matter.devicecontroller.cluster.eventstructs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class SmokeCoAlarmClusterCOAlarmEvent ( - val alarmSeverityLevel: UInt) { - override fun toString(): String = buildString { +class SmokeCoAlarmClusterCOAlarmEvent(val alarmSeverityLevel: UInt) { + override fun toString(): String = buildString { append("SmokeCoAlarmClusterCOAlarmEvent {\n") append("\talarmSeverityLevel : $alarmSeverityLevel\n") append("}\n") @@ -45,10 +40,10 @@ class SmokeCoAlarmClusterCOAlarmEvent ( companion object { private const val TAG_ALARM_SEVERITY_LEVEL = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SmokeCoAlarmClusterCOAlarmEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SmokeCoAlarmClusterCOAlarmEvent { tlvReader.enterStructure(tlvTag) val alarmSeverityLevel = tlvReader.getUInt(ContextSpecificTag(TAG_ALARM_SEVERITY_LEVEL)) - + tlvReader.exitContainer() return SmokeCoAlarmClusterCOAlarmEvent(alarmSeverityLevel) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectCOAlarmEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectCOAlarmEvent.kt index 4f2d7d4afa4e6f..51aa58966bfd4c 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectCOAlarmEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectCOAlarmEvent.kt @@ -17,18 +17,13 @@ package matter.devicecontroller.cluster.eventstructs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class SmokeCoAlarmClusterInterconnectCOAlarmEvent ( - val alarmSeverityLevel: UInt) { - override fun toString(): String = buildString { +class SmokeCoAlarmClusterInterconnectCOAlarmEvent(val alarmSeverityLevel: UInt) { + override fun toString(): String = buildString { append("SmokeCoAlarmClusterInterconnectCOAlarmEvent {\n") append("\talarmSeverityLevel : $alarmSeverityLevel\n") append("}\n") @@ -45,10 +40,10 @@ class SmokeCoAlarmClusterInterconnectCOAlarmEvent ( companion object { private const val TAG_ALARM_SEVERITY_LEVEL = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SmokeCoAlarmClusterInterconnectCOAlarmEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SmokeCoAlarmClusterInterconnectCOAlarmEvent { tlvReader.enterStructure(tlvTag) val alarmSeverityLevel = tlvReader.getUInt(ContextSpecificTag(TAG_ALARM_SEVERITY_LEVEL)) - + tlvReader.exitContainer() return SmokeCoAlarmClusterInterconnectCOAlarmEvent(alarmSeverityLevel) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectSmokeAlarmEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectSmokeAlarmEvent.kt index 409a85f6a61312..4f2f7187caaa90 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectSmokeAlarmEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectSmokeAlarmEvent.kt @@ -17,18 +17,13 @@ package matter.devicecontroller.cluster.eventstructs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class SmokeCoAlarmClusterInterconnectSmokeAlarmEvent ( - val alarmSeverityLevel: UInt) { - override fun toString(): String = buildString { +class SmokeCoAlarmClusterInterconnectSmokeAlarmEvent(val alarmSeverityLevel: UInt) { + override fun toString(): String = buildString { append("SmokeCoAlarmClusterInterconnectSmokeAlarmEvent {\n") append("\talarmSeverityLevel : $alarmSeverityLevel\n") append("}\n") @@ -45,10 +40,10 @@ class SmokeCoAlarmClusterInterconnectSmokeAlarmEvent ( companion object { private const val TAG_ALARM_SEVERITY_LEVEL = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SmokeCoAlarmClusterInterconnectSmokeAlarmEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SmokeCoAlarmClusterInterconnectSmokeAlarmEvent { tlvReader.enterStructure(tlvTag) val alarmSeverityLevel = tlvReader.getUInt(ContextSpecificTag(TAG_ALARM_SEVERITY_LEVEL)) - + tlvReader.exitContainer() return SmokeCoAlarmClusterInterconnectSmokeAlarmEvent(alarmSeverityLevel) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterLowBatteryEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterLowBatteryEvent.kt index 8d5239d0158db4..0fd098880eddcf 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterLowBatteryEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterLowBatteryEvent.kt @@ -17,18 +17,13 @@ package matter.devicecontroller.cluster.eventstructs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class SmokeCoAlarmClusterLowBatteryEvent ( - val alarmSeverityLevel: UInt) { - override fun toString(): String = buildString { +class SmokeCoAlarmClusterLowBatteryEvent(val alarmSeverityLevel: UInt) { + override fun toString(): String = buildString { append("SmokeCoAlarmClusterLowBatteryEvent {\n") append("\talarmSeverityLevel : $alarmSeverityLevel\n") append("}\n") @@ -45,10 +40,10 @@ class SmokeCoAlarmClusterLowBatteryEvent ( companion object { private const val TAG_ALARM_SEVERITY_LEVEL = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SmokeCoAlarmClusterLowBatteryEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SmokeCoAlarmClusterLowBatteryEvent { tlvReader.enterStructure(tlvTag) val alarmSeverityLevel = tlvReader.getUInt(ContextSpecificTag(TAG_ALARM_SEVERITY_LEVEL)) - + tlvReader.exitContainer() return SmokeCoAlarmClusterLowBatteryEvent(alarmSeverityLevel) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterSmokeAlarmEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterSmokeAlarmEvent.kt index 1ff2e85c8ea8fb..f2b985b06eb48f 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterSmokeAlarmEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterSmokeAlarmEvent.kt @@ -17,18 +17,13 @@ package matter.devicecontroller.cluster.eventstructs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class SmokeCoAlarmClusterSmokeAlarmEvent ( - val alarmSeverityLevel: UInt) { - override fun toString(): String = buildString { +class SmokeCoAlarmClusterSmokeAlarmEvent(val alarmSeverityLevel: UInt) { + override fun toString(): String = buildString { append("SmokeCoAlarmClusterSmokeAlarmEvent {\n") append("\talarmSeverityLevel : $alarmSeverityLevel\n") append("}\n") @@ -45,10 +40,10 @@ class SmokeCoAlarmClusterSmokeAlarmEvent ( companion object { private const val TAG_ALARM_SEVERITY_LEVEL = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SmokeCoAlarmClusterSmokeAlarmEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SmokeCoAlarmClusterSmokeAlarmEvent { tlvReader.enterStructure(tlvTag) val alarmSeverityLevel = tlvReader.getUInt(ContextSpecificTag(TAG_ALARM_SEVERITY_LEVEL)) - + tlvReader.exitContainer() return SmokeCoAlarmClusterSmokeAlarmEvent(alarmSeverityLevel) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SoftwareDiagnosticsClusterSoftwareFaultEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SoftwareDiagnosticsClusterSoftwareFaultEvent.kt index d7a51e1aa9106a..f7e1378e5ed2b7 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SoftwareDiagnosticsClusterSoftwareFaultEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SoftwareDiagnosticsClusterSoftwareFaultEvent.kt @@ -16,21 +16,19 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class SoftwareDiagnosticsClusterSoftwareFaultEvent ( - val id: ULong, - val name: Optional, - val faultRecording: Optional) { - override fun toString(): String = buildString { +class SoftwareDiagnosticsClusterSoftwareFaultEvent( + val id: ULong, + val name: Optional, + val faultRecording: Optional +) { + override fun toString(): String = buildString { append("SoftwareDiagnosticsClusterSoftwareFaultEvent {\n") append("\tid : $id\n") append("\tname : $name\n") @@ -43,13 +41,13 @@ class SoftwareDiagnosticsClusterSoftwareFaultEvent ( startStructure(tlvTag) put(ContextSpecificTag(TAG_ID), id) if (name.isPresent) { - val optname = name.get() - put(ContextSpecificTag(TAG_NAME), optname) - } + val optname = name.get() + put(ContextSpecificTag(TAG_NAME), optname) + } if (faultRecording.isPresent) { - val optfaultRecording = faultRecording.get() - put(ContextSpecificTag(TAG_FAULT_RECORDING), optfaultRecording) - } + val optfaultRecording = faultRecording.get() + put(ContextSpecificTag(TAG_FAULT_RECORDING), optfaultRecording) + } endStructure() } } @@ -59,20 +57,22 @@ class SoftwareDiagnosticsClusterSoftwareFaultEvent ( private const val TAG_NAME = 1 private const val TAG_FAULT_RECORDING = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SoftwareDiagnosticsClusterSoftwareFaultEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SoftwareDiagnosticsClusterSoftwareFaultEvent { tlvReader.enterStructure(tlvTag) val id = tlvReader.getULong(ContextSpecificTag(TAG_ID)) - val name = if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) - } else { - Optional.empty() - } - val faultRecording = if (tlvReader.isNextTag(ContextSpecificTag(TAG_FAULT_RECORDING))) { - Optional.of(tlvReader.getByteArray(ContextSpecificTag(TAG_FAULT_RECORDING))) - } else { - Optional.empty() - } - + val name = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) + } else { + Optional.empty() + } + val faultRecording = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_FAULT_RECORDING))) { + Optional.of(tlvReader.getByteArray(ContextSpecificTag(TAG_FAULT_RECORDING))) + } else { + Optional.empty() + } + tlvReader.exitContainer() return SoftwareDiagnosticsClusterSoftwareFaultEvent(id, name, faultRecording) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterInitialPressEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterInitialPressEvent.kt index e6e78db63baf01..630fd921464fad 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterInitialPressEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterInitialPressEvent.kt @@ -17,18 +17,13 @@ package matter.devicecontroller.cluster.eventstructs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class SwitchClusterInitialPressEvent ( - val newPosition: UByte) { - override fun toString(): String = buildString { +class SwitchClusterInitialPressEvent(val newPosition: UByte) { + override fun toString(): String = buildString { append("SwitchClusterInitialPressEvent {\n") append("\tnewPosition : $newPosition\n") append("}\n") @@ -45,10 +40,10 @@ class SwitchClusterInitialPressEvent ( companion object { private const val TAG_NEW_POSITION = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SwitchClusterInitialPressEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SwitchClusterInitialPressEvent { tlvReader.enterStructure(tlvTag) val newPosition = tlvReader.getUByte(ContextSpecificTag(TAG_NEW_POSITION)) - + tlvReader.exitContainer() return SwitchClusterInitialPressEvent(newPosition) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterLongPressEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterLongPressEvent.kt index 2bff2e349cf655..b586d1687d64a9 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterLongPressEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterLongPressEvent.kt @@ -17,18 +17,13 @@ package matter.devicecontroller.cluster.eventstructs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class SwitchClusterLongPressEvent ( - val newPosition: UByte) { - override fun toString(): String = buildString { +class SwitchClusterLongPressEvent(val newPosition: UByte) { + override fun toString(): String = buildString { append("SwitchClusterLongPressEvent {\n") append("\tnewPosition : $newPosition\n") append("}\n") @@ -45,10 +40,10 @@ class SwitchClusterLongPressEvent ( companion object { private const val TAG_NEW_POSITION = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SwitchClusterLongPressEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SwitchClusterLongPressEvent { tlvReader.enterStructure(tlvTag) val newPosition = tlvReader.getUByte(ContextSpecificTag(TAG_NEW_POSITION)) - + tlvReader.exitContainer() return SwitchClusterLongPressEvent(newPosition) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterLongReleaseEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterLongReleaseEvent.kt index 858624c9ed45d5..6b7ea992a3821e 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterLongReleaseEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterLongReleaseEvent.kt @@ -17,18 +17,13 @@ package matter.devicecontroller.cluster.eventstructs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class SwitchClusterLongReleaseEvent ( - val previousPosition: UByte) { - override fun toString(): String = buildString { +class SwitchClusterLongReleaseEvent(val previousPosition: UByte) { + override fun toString(): String = buildString { append("SwitchClusterLongReleaseEvent {\n") append("\tpreviousPosition : $previousPosition\n") append("}\n") @@ -45,10 +40,10 @@ class SwitchClusterLongReleaseEvent ( companion object { private const val TAG_PREVIOUS_POSITION = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SwitchClusterLongReleaseEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SwitchClusterLongReleaseEvent { tlvReader.enterStructure(tlvTag) val previousPosition = tlvReader.getUByte(ContextSpecificTag(TAG_PREVIOUS_POSITION)) - + tlvReader.exitContainer() return SwitchClusterLongReleaseEvent(previousPosition) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressCompleteEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressCompleteEvent.kt index 7ef4f336611b97..79bbef0ee9dd7d 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressCompleteEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressCompleteEvent.kt @@ -17,19 +17,16 @@ package matter.devicecontroller.cluster.eventstructs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class SwitchClusterMultiPressCompleteEvent ( - val previousPosition: UByte, - val totalNumberOfPressesCounted: UByte) { - override fun toString(): String = buildString { +class SwitchClusterMultiPressCompleteEvent( + val previousPosition: UByte, + val totalNumberOfPressesCounted: UByte +) { + override fun toString(): String = buildString { append("SwitchClusterMultiPressCompleteEvent {\n") append("\tpreviousPosition : $previousPosition\n") append("\ttotalNumberOfPressesCounted : $totalNumberOfPressesCounted\n") @@ -49,11 +46,12 @@ class SwitchClusterMultiPressCompleteEvent ( private const val TAG_PREVIOUS_POSITION = 0 private const val TAG_TOTAL_NUMBER_OF_PRESSES_COUNTED = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SwitchClusterMultiPressCompleteEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SwitchClusterMultiPressCompleteEvent { tlvReader.enterStructure(tlvTag) val previousPosition = tlvReader.getUByte(ContextSpecificTag(TAG_PREVIOUS_POSITION)) - val totalNumberOfPressesCounted = tlvReader.getUByte(ContextSpecificTag(TAG_TOTAL_NUMBER_OF_PRESSES_COUNTED)) - + val totalNumberOfPressesCounted = + tlvReader.getUByte(ContextSpecificTag(TAG_TOTAL_NUMBER_OF_PRESSES_COUNTED)) + tlvReader.exitContainer() return SwitchClusterMultiPressCompleteEvent(previousPosition, totalNumberOfPressesCounted) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressOngoingEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressOngoingEvent.kt index 126409ec0dca8c..bced01633d76ef 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressOngoingEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressOngoingEvent.kt @@ -17,19 +17,16 @@ package matter.devicecontroller.cluster.eventstructs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class SwitchClusterMultiPressOngoingEvent ( - val newPosition: UByte, - val currentNumberOfPressesCounted: UByte) { - override fun toString(): String = buildString { +class SwitchClusterMultiPressOngoingEvent( + val newPosition: UByte, + val currentNumberOfPressesCounted: UByte +) { + override fun toString(): String = buildString { append("SwitchClusterMultiPressOngoingEvent {\n") append("\tnewPosition : $newPosition\n") append("\tcurrentNumberOfPressesCounted : $currentNumberOfPressesCounted\n") @@ -49,11 +46,12 @@ class SwitchClusterMultiPressOngoingEvent ( private const val TAG_NEW_POSITION = 0 private const val TAG_CURRENT_NUMBER_OF_PRESSES_COUNTED = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SwitchClusterMultiPressOngoingEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SwitchClusterMultiPressOngoingEvent { tlvReader.enterStructure(tlvTag) val newPosition = tlvReader.getUByte(ContextSpecificTag(TAG_NEW_POSITION)) - val currentNumberOfPressesCounted = tlvReader.getUByte(ContextSpecificTag(TAG_CURRENT_NUMBER_OF_PRESSES_COUNTED)) - + val currentNumberOfPressesCounted = + tlvReader.getUByte(ContextSpecificTag(TAG_CURRENT_NUMBER_OF_PRESSES_COUNTED)) + tlvReader.exitContainer() return SwitchClusterMultiPressOngoingEvent(newPosition, currentNumberOfPressesCounted) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterShortReleaseEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterShortReleaseEvent.kt index 4debafdf2eaf48..6c9c2272f2ab38 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterShortReleaseEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterShortReleaseEvent.kt @@ -17,18 +17,13 @@ package matter.devicecontroller.cluster.eventstructs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class SwitchClusterShortReleaseEvent ( - val previousPosition: UByte) { - override fun toString(): String = buildString { +class SwitchClusterShortReleaseEvent(val previousPosition: UByte) { + override fun toString(): String = buildString { append("SwitchClusterShortReleaseEvent {\n") append("\tpreviousPosition : $previousPosition\n") append("}\n") @@ -45,10 +40,10 @@ class SwitchClusterShortReleaseEvent ( companion object { private const val TAG_PREVIOUS_POSITION = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SwitchClusterShortReleaseEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SwitchClusterShortReleaseEvent { tlvReader.enterStructure(tlvTag) val previousPosition = tlvReader.getUByte(ContextSpecificTag(TAG_PREVIOUS_POSITION)) - + tlvReader.exitContainer() return SwitchClusterShortReleaseEvent(previousPosition) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterSwitchLatchedEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterSwitchLatchedEvent.kt index 1e1891e4e48f3f..8c5ee4f9f83edf 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterSwitchLatchedEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterSwitchLatchedEvent.kt @@ -17,18 +17,13 @@ package matter.devicecontroller.cluster.eventstructs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class SwitchClusterSwitchLatchedEvent ( - val newPosition: UByte) { - override fun toString(): String = buildString { +class SwitchClusterSwitchLatchedEvent(val newPosition: UByte) { + override fun toString(): String = buildString { append("SwitchClusterSwitchLatchedEvent {\n") append("\tnewPosition : $newPosition\n") append("}\n") @@ -45,10 +40,10 @@ class SwitchClusterSwitchLatchedEvent ( companion object { private const val TAG_NEW_POSITION = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SwitchClusterSwitchLatchedEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SwitchClusterSwitchLatchedEvent { tlvReader.enterStructure(tlvTag) val newPosition = tlvReader.getUByte(ContextSpecificTag(TAG_NEW_POSITION)) - + tlvReader.exitContainer() return SwitchClusterSwitchLatchedEvent(newPosition) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterConnectionStatusEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterConnectionStatusEvent.kt index 91d0a97c67d943..b771bd2b0f402c 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterConnectionStatusEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterConnectionStatusEvent.kt @@ -17,18 +17,13 @@ package matter.devicecontroller.cluster.eventstructs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ThreadNetworkDiagnosticsClusterConnectionStatusEvent ( - val connectionStatus: UInt) { - override fun toString(): String = buildString { +class ThreadNetworkDiagnosticsClusterConnectionStatusEvent(val connectionStatus: UInt) { + override fun toString(): String = buildString { append("ThreadNetworkDiagnosticsClusterConnectionStatusEvent {\n") append("\tconnectionStatus : $connectionStatus\n") append("}\n") @@ -45,10 +40,13 @@ class ThreadNetworkDiagnosticsClusterConnectionStatusEvent ( companion object { private const val TAG_CONNECTION_STATUS = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ThreadNetworkDiagnosticsClusterConnectionStatusEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): ThreadNetworkDiagnosticsClusterConnectionStatusEvent { tlvReader.enterStructure(tlvTag) val connectionStatus = tlvReader.getUInt(ContextSpecificTag(TAG_CONNECTION_STATUS)) - + tlvReader.exitContainer() return ThreadNetworkDiagnosticsClusterConnectionStatusEvent(connectionStatus) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent.kt index 736a5d39735dd5..827abfa1377c6a 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent.kt @@ -20,16 +20,14 @@ import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent ( - val current: List, - val previous: List) { - override fun toString(): String = buildString { +class ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent( + val current: List, + val previous: List +) { + override fun toString(): String = buildString { append("ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent {\n") append("\tcurrent : $current\n") append("\tprevious : $previous\n") @@ -57,23 +55,28 @@ class ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent ( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent { tlvReader.enterStructure(tlvTag) - val current = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val previous = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val current = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val previous = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent(current, previous) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterDSTStatusEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterDSTStatusEvent.kt index 3c31c64b0b58b3..e20bc34335426f 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterDSTStatusEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterDSTStatusEvent.kt @@ -17,18 +17,13 @@ package matter.devicecontroller.cluster.eventstructs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class TimeSynchronizationClusterDSTStatusEvent ( - val DSTOffsetActive: Boolean) { - override fun toString(): String = buildString { +class TimeSynchronizationClusterDSTStatusEvent(val DSTOffsetActive: Boolean) { + override fun toString(): String = buildString { append("TimeSynchronizationClusterDSTStatusEvent {\n") append("\tDSTOffsetActive : $DSTOffsetActive\n") append("}\n") @@ -45,10 +40,10 @@ class TimeSynchronizationClusterDSTStatusEvent ( companion object { private const val TAG_D_S_T_OFFSET_ACTIVE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : TimeSynchronizationClusterDSTStatusEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): TimeSynchronizationClusterDSTStatusEvent { tlvReader.enterStructure(tlvTag) val DSTOffsetActive = tlvReader.getBoolean(ContextSpecificTag(TAG_D_S_T_OFFSET_ACTIVE)) - + tlvReader.exitContainer() return TimeSynchronizationClusterDSTStatusEvent(DSTOffsetActive) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterTimeZoneStatusEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterTimeZoneStatusEvent.kt index 5d3bdf2af9219d..552027845f991d 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterTimeZoneStatusEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterTimeZoneStatusEvent.kt @@ -16,20 +16,15 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class TimeSynchronizationClusterTimeZoneStatusEvent ( - val offset: Int, - val name: Optional) { - override fun toString(): String = buildString { +class TimeSynchronizationClusterTimeZoneStatusEvent(val offset: Int, val name: Optional) { + override fun toString(): String = buildString { append("TimeSynchronizationClusterTimeZoneStatusEvent {\n") append("\toffset : $offset\n") append("\tname : $name\n") @@ -41,9 +36,9 @@ class TimeSynchronizationClusterTimeZoneStatusEvent ( startStructure(tlvTag) put(ContextSpecificTag(TAG_OFFSET), offset) if (name.isPresent) { - val optname = name.get() - put(ContextSpecificTag(TAG_NAME), optname) - } + val optname = name.get() + put(ContextSpecificTag(TAG_NAME), optname) + } endStructure() } } @@ -52,15 +47,16 @@ class TimeSynchronizationClusterTimeZoneStatusEvent ( private const val TAG_OFFSET = 0 private const val TAG_NAME = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : TimeSynchronizationClusterTimeZoneStatusEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): TimeSynchronizationClusterTimeZoneStatusEvent { tlvReader.enterStructure(tlvTag) val offset = tlvReader.getInt(ContextSpecificTag(TAG_OFFSET)) - val name = if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) - } else { - Optional.empty() - } - + val name = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) + } else { + Optional.empty() + } + tlvReader.exitContainer() return TimeSynchronizationClusterTimeZoneStatusEvent(offset, name) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/UnitTestingClusterTestEventEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/UnitTestingClusterTestEventEvent.kt index bf99eddb91518b..2993e43dedc6cd 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/UnitTestingClusterTestEventEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/UnitTestingClusterTestEventEvent.kt @@ -20,20 +20,18 @@ import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class UnitTestingClusterTestEventEvent ( - val arg1: UByte, - val arg2: UInt, - val arg3: Boolean, - val arg4: matter.devicecontroller.cluster.structs.UnitTestingClusterSimpleStruct, - val arg5: List, - val arg6: List) { - override fun toString(): String = buildString { +class UnitTestingClusterTestEventEvent( + val arg1: UByte, + val arg2: UInt, + val arg3: Boolean, + val arg4: matter.devicecontroller.cluster.structs.UnitTestingClusterSimpleStruct, + val arg5: List, + val arg6: List +) { + override fun toString(): String = buildString { append("UnitTestingClusterTestEventEvent {\n") append("\targ1 : $arg1\n") append("\targ2 : $arg2\n") @@ -73,27 +71,38 @@ class UnitTestingClusterTestEventEvent ( private const val TAG_ARG5 = 5 private const val TAG_ARG6 = 6 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : UnitTestingClusterTestEventEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UnitTestingClusterTestEventEvent { tlvReader.enterStructure(tlvTag) val arg1 = tlvReader.getUByte(ContextSpecificTag(TAG_ARG1)) val arg2 = tlvReader.getUInt(ContextSpecificTag(TAG_ARG2)) val arg3 = tlvReader.getBoolean(ContextSpecificTag(TAG_ARG3)) - val arg4 = matter.devicecontroller.cluster.structs.UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_ARG4), tlvReader) - val arg5 = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_ARG5)) - while(!tlvReader.isEndOfContainer()) { - this.add(matter.devicecontroller.cluster.structs.UnitTestingClusterSimpleStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - val arg6 = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_ARG6)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val arg4 = + matter.devicecontroller.cluster.structs.UnitTestingClusterSimpleStruct.fromTlv( + ContextSpecificTag(TAG_ARG4), + tlvReader + ) + val arg5 = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_ARG5)) + while (!tlvReader.isEndOfContainer()) { + this.add( + matter.devicecontroller.cluster.structs.UnitTestingClusterSimpleStruct.fromTlv( + AnonymousTag, + tlvReader + ) + ) + } + tlvReader.exitContainer() + } + val arg6 = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_ARG6)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return UnitTestingClusterTestEventEvent(arg1, arg2, arg3, arg4, arg5, arg6) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/UnitTestingClusterTestFabricScopedEventEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/UnitTestingClusterTestFabricScopedEventEvent.kt index c7e971879d08a8..bdf1b54a00b31f 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/UnitTestingClusterTestFabricScopedEventEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/UnitTestingClusterTestFabricScopedEventEvent.kt @@ -17,18 +17,13 @@ package matter.devicecontroller.cluster.eventstructs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class UnitTestingClusterTestFabricScopedEventEvent ( - val fabricIndex: UByte) { - override fun toString(): String = buildString { +class UnitTestingClusterTestFabricScopedEventEvent(val fabricIndex: UByte) { + override fun toString(): String = buildString { append("UnitTestingClusterTestFabricScopedEventEvent {\n") append("\tfabricIndex : $fabricIndex\n") append("}\n") @@ -45,10 +40,10 @@ class UnitTestingClusterTestFabricScopedEventEvent ( companion object { private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : UnitTestingClusterTestFabricScopedEventEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UnitTestingClusterTestFabricScopedEventEvent { tlvReader.enterStructure(tlvTag) val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() return UnitTestingClusterTestFabricScopedEventEvent(fabricIndex) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterAssociationFailureEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterAssociationFailureEvent.kt index c45ccdbd318d4b..04b408b87c41c2 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterAssociationFailureEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterAssociationFailureEvent.kt @@ -17,19 +17,16 @@ package matter.devicecontroller.cluster.eventstructs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class WiFiNetworkDiagnosticsClusterAssociationFailureEvent ( - val associationFailureCause: UInt, - val status: UShort) { - override fun toString(): String = buildString { +class WiFiNetworkDiagnosticsClusterAssociationFailureEvent( + val associationFailureCause: UInt, + val status: UShort +) { + override fun toString(): String = buildString { append("WiFiNetworkDiagnosticsClusterAssociationFailureEvent {\n") append("\tassociationFailureCause : $associationFailureCause\n") append("\tstatus : $status\n") @@ -49,11 +46,15 @@ class WiFiNetworkDiagnosticsClusterAssociationFailureEvent ( private const val TAG_ASSOCIATION_FAILURE_CAUSE = 0 private const val TAG_STATUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : WiFiNetworkDiagnosticsClusterAssociationFailureEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): WiFiNetworkDiagnosticsClusterAssociationFailureEvent { tlvReader.enterStructure(tlvTag) - val associationFailureCause = tlvReader.getUInt(ContextSpecificTag(TAG_ASSOCIATION_FAILURE_CAUSE)) + val associationFailureCause = + tlvReader.getUInt(ContextSpecificTag(TAG_ASSOCIATION_FAILURE_CAUSE)) val status = tlvReader.getUShort(ContextSpecificTag(TAG_STATUS)) - + tlvReader.exitContainer() return WiFiNetworkDiagnosticsClusterAssociationFailureEvent(associationFailureCause, status) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterConnectionStatusEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterConnectionStatusEvent.kt index 787430f1b92e79..653e02a013159d 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterConnectionStatusEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterConnectionStatusEvent.kt @@ -17,18 +17,13 @@ package matter.devicecontroller.cluster.eventstructs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class WiFiNetworkDiagnosticsClusterConnectionStatusEvent ( - val connectionStatus: UInt) { - override fun toString(): String = buildString { +class WiFiNetworkDiagnosticsClusterConnectionStatusEvent(val connectionStatus: UInt) { + override fun toString(): String = buildString { append("WiFiNetworkDiagnosticsClusterConnectionStatusEvent {\n") append("\tconnectionStatus : $connectionStatus\n") append("}\n") @@ -45,10 +40,13 @@ class WiFiNetworkDiagnosticsClusterConnectionStatusEvent ( companion object { private const val TAG_CONNECTION_STATUS = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : WiFiNetworkDiagnosticsClusterConnectionStatusEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): WiFiNetworkDiagnosticsClusterConnectionStatusEvent { tlvReader.enterStructure(tlvTag) val connectionStatus = tlvReader.getUInt(ContextSpecificTag(TAG_CONNECTION_STATUS)) - + tlvReader.exitContainer() return WiFiNetworkDiagnosticsClusterConnectionStatusEvent(connectionStatus) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterDisconnectionEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterDisconnectionEvent.kt index 463855d185ed62..518f3ece0161d2 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterDisconnectionEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterDisconnectionEvent.kt @@ -17,18 +17,13 @@ package matter.devicecontroller.cluster.eventstructs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class WiFiNetworkDiagnosticsClusterDisconnectionEvent ( - val reasonCode: UShort) { - override fun toString(): String = buildString { +class WiFiNetworkDiagnosticsClusterDisconnectionEvent(val reasonCode: UShort) { + override fun toString(): String = buildString { append("WiFiNetworkDiagnosticsClusterDisconnectionEvent {\n") append("\treasonCode : $reasonCode\n") append("}\n") @@ -45,10 +40,13 @@ class WiFiNetworkDiagnosticsClusterDisconnectionEvent ( companion object { private const val TAG_REASON_CODE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : WiFiNetworkDiagnosticsClusterDisconnectionEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): WiFiNetworkDiagnosticsClusterDisconnectionEvent { tlvReader.enterStructure(tlvTag) val reasonCode = tlvReader.getUShort(ContextSpecificTag(TAG_REASON_CODE)) - + tlvReader.exitContainer() return WiFiNetworkDiagnosticsClusterDisconnectionEvent(reasonCode) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AccessControlClusterAccessControlEntryStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AccessControlClusterAccessControlEntryStruct.kt index 4fc6f965238d2a..7160b776b170fb 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AccessControlClusterAccessControlEntryStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AccessControlClusterAccessControlEntryStruct.kt @@ -20,19 +20,17 @@ import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class AccessControlClusterAccessControlEntryStruct ( - val privilege: UInt, - val authMode: UInt, - val subjects: List?, - val targets: List?, - val fabricIndex: UByte) { - override fun toString(): String = buildString { +class AccessControlClusterAccessControlEntryStruct( + val privilege: UInt, + val authMode: UInt, + val subjects: List?, + val targets: List?, + val fabricIndex: UByte +) { + override fun toString(): String = buildString { append("AccessControlClusterAccessControlEntryStruct {\n") append("\tprivilege : $privilege\n") append("\tauthMode : $authMode\n") @@ -48,23 +46,23 @@ class AccessControlClusterAccessControlEntryStruct ( put(ContextSpecificTag(TAG_PRIVILEGE), privilege) put(ContextSpecificTag(TAG_AUTH_MODE), authMode) if (subjects != null) { - startArray(ContextSpecificTag(TAG_SUBJECTS)) - for (item in subjects.iterator()) { - put(AnonymousTag, item) + startArray(ContextSpecificTag(TAG_SUBJECTS)) + for (item in subjects.iterator()) { + put(AnonymousTag, item) + } + endArray() + } else { + putNull(ContextSpecificTag(TAG_SUBJECTS)) } - endArray() - } else { - putNull(ContextSpecificTag(TAG_SUBJECTS)) - } if (targets != null) { - startArray(ContextSpecificTag(TAG_TARGETS)) - for (item in targets.iterator()) { - item.toTlv(AnonymousTag, this) + startArray(ContextSpecificTag(TAG_TARGETS)) + for (item in targets.iterator()) { + item.toTlv(AnonymousTag, this) + } + endArray() + } else { + putNull(ContextSpecificTag(TAG_TARGETS)) } - endArray() - } else { - putNull(ContextSpecificTag(TAG_TARGETS)) - } put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) endStructure() } @@ -77,39 +75,47 @@ class AccessControlClusterAccessControlEntryStruct ( private const val TAG_TARGETS = 4 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : AccessControlClusterAccessControlEntryStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): AccessControlClusterAccessControlEntryStruct { tlvReader.enterStructure(tlvTag) val privilege = tlvReader.getUInt(ContextSpecificTag(TAG_PRIVILEGE)) val authMode = tlvReader.getUInt(ContextSpecificTag(TAG_AUTH_MODE)) - val subjects = if (!tlvReader.isNull()) { - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_SUBJECTS)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getULong(AnonymousTag)) - } - tlvReader.exitContainer() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_SUBJECTS)) - null - } - val targets = if (!tlvReader.isNull()) { - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_TARGETS)) - while(!tlvReader.isEndOfContainer()) { - add(AccessControlClusterAccessControlTargetStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_TARGETS)) - null - } + val subjects = + if (!tlvReader.isNull()) { + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_SUBJECTS)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getULong(AnonymousTag)) + } + tlvReader.exitContainer() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_SUBJECTS)) + null + } + val targets = + if (!tlvReader.isNull()) { + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_TARGETS)) + while (!tlvReader.isEndOfContainer()) { + add(AccessControlClusterAccessControlTargetStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_TARGETS)) + null + } val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() - return AccessControlClusterAccessControlEntryStruct(privilege, authMode, subjects, targets, fabricIndex) + return AccessControlClusterAccessControlEntryStruct( + privilege, + authMode, + subjects, + targets, + fabricIndex + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AccessControlClusterAccessControlExtensionStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AccessControlClusterAccessControlExtensionStruct.kt index 9320033d5dd329..92f871d9cc054d 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AccessControlClusterAccessControlExtensionStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AccessControlClusterAccessControlExtensionStruct.kt @@ -17,19 +17,16 @@ package matter.devicecontroller.cluster.structs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class AccessControlClusterAccessControlExtensionStruct ( - val data: ByteArray, - val fabricIndex: UByte) { - override fun toString(): String = buildString { +class AccessControlClusterAccessControlExtensionStruct( + val data: ByteArray, + val fabricIndex: UByte +) { + override fun toString(): String = buildString { append("AccessControlClusterAccessControlExtensionStruct {\n") append("\tdata : $data\n") append("\tfabricIndex : $fabricIndex\n") @@ -49,11 +46,14 @@ class AccessControlClusterAccessControlExtensionStruct ( private const val TAG_DATA = 1 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : AccessControlClusterAccessControlExtensionStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): AccessControlClusterAccessControlExtensionStruct { tlvReader.enterStructure(tlvTag) val data = tlvReader.getByteArray(ContextSpecificTag(TAG_DATA)) val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() return AccessControlClusterAccessControlExtensionStruct(data, fabricIndex) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AccessControlClusterAccessControlTargetStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AccessControlClusterAccessControlTargetStruct.kt index e05f2c08d258d9..24905a80d950d9 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AccessControlClusterAccessControlTargetStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AccessControlClusterAccessControlTargetStruct.kt @@ -17,20 +17,17 @@ package matter.devicecontroller.cluster.structs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class AccessControlClusterAccessControlTargetStruct ( - val cluster: UInt?, - val endpoint: UShort?, - val deviceType: UInt?) { - override fun toString(): String = buildString { +class AccessControlClusterAccessControlTargetStruct( + val cluster: UInt?, + val endpoint: UShort?, + val deviceType: UInt? +) { + override fun toString(): String = buildString { append("AccessControlClusterAccessControlTargetStruct {\n") append("\tcluster : $cluster\n") append("\tendpoint : $endpoint\n") @@ -42,20 +39,20 @@ class AccessControlClusterAccessControlTargetStruct ( tlvWriter.apply { startStructure(tlvTag) if (cluster != null) { - put(ContextSpecificTag(TAG_CLUSTER), cluster) - } else { - putNull(ContextSpecificTag(TAG_CLUSTER)) - } + put(ContextSpecificTag(TAG_CLUSTER), cluster) + } else { + putNull(ContextSpecificTag(TAG_CLUSTER)) + } if (endpoint != null) { - put(ContextSpecificTag(TAG_ENDPOINT), endpoint) - } else { - putNull(ContextSpecificTag(TAG_ENDPOINT)) - } + put(ContextSpecificTag(TAG_ENDPOINT), endpoint) + } else { + putNull(ContextSpecificTag(TAG_ENDPOINT)) + } if (deviceType != null) { - put(ContextSpecificTag(TAG_DEVICE_TYPE), deviceType) - } else { - putNull(ContextSpecificTag(TAG_DEVICE_TYPE)) - } + put(ContextSpecificTag(TAG_DEVICE_TYPE), deviceType) + } else { + putNull(ContextSpecificTag(TAG_DEVICE_TYPE)) + } endStructure() } } @@ -65,27 +62,30 @@ class AccessControlClusterAccessControlTargetStruct ( private const val TAG_ENDPOINT = 1 private const val TAG_DEVICE_TYPE = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : AccessControlClusterAccessControlTargetStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): AccessControlClusterAccessControlTargetStruct { tlvReader.enterStructure(tlvTag) - val cluster = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_CLUSTER)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_CLUSTER)) - null - } - val endpoint = if (!tlvReader.isNull()) { - tlvReader.getUShort(ContextSpecificTag(TAG_ENDPOINT)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_ENDPOINT)) - null - } - val deviceType = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_DEVICE_TYPE)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_DEVICE_TYPE)) - null - } - + val cluster = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_CLUSTER)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_CLUSTER)) + null + } + val endpoint = + if (!tlvReader.isNull()) { + tlvReader.getUShort(ContextSpecificTag(TAG_ENDPOINT)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_ENDPOINT)) + null + } + val deviceType = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_DEVICE_TYPE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_DEVICE_TYPE)) + null + } + tlvReader.exitContainer() return AccessControlClusterAccessControlTargetStruct(cluster, endpoint, deviceType) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ActionsClusterActionStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ActionsClusterActionStruct.kt index 27aa124836e16d..43a6ed963d8b52 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ActionsClusterActionStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ActionsClusterActionStruct.kt @@ -17,23 +17,20 @@ package matter.devicecontroller.cluster.structs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ActionsClusterActionStruct ( - val actionID: UShort, - val name: String, - val type: UInt, - val endpointListID: UShort, - val supportedCommands: UInt, - val state: UInt) { - override fun toString(): String = buildString { +class ActionsClusterActionStruct( + val actionID: UShort, + val name: String, + val type: UInt, + val endpointListID: UShort, + val supportedCommands: UInt, + val state: UInt +) { + override fun toString(): String = buildString { append("ActionsClusterActionStruct {\n") append("\tactionID : $actionID\n") append("\tname : $name\n") @@ -65,7 +62,7 @@ class ActionsClusterActionStruct ( private const val TAG_SUPPORTED_COMMANDS = 4 private const val TAG_STATE = 5 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ActionsClusterActionStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ActionsClusterActionStruct { tlvReader.enterStructure(tlvTag) val actionID = tlvReader.getUShort(ContextSpecificTag(TAG_ACTION_I_D)) val name = tlvReader.getString(ContextSpecificTag(TAG_NAME)) @@ -73,10 +70,17 @@ class ActionsClusterActionStruct ( val endpointListID = tlvReader.getUShort(ContextSpecificTag(TAG_ENDPOINT_LIST_I_D)) val supportedCommands = tlvReader.getUInt(ContextSpecificTag(TAG_SUPPORTED_COMMANDS)) val state = tlvReader.getUInt(ContextSpecificTag(TAG_STATE)) - + tlvReader.exitContainer() - return ActionsClusterActionStruct(actionID, name, type, endpointListID, supportedCommands, state) + return ActionsClusterActionStruct( + actionID, + name, + type, + endpointListID, + supportedCommands, + state + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ActionsClusterEndpointListStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ActionsClusterEndpointListStruct.kt index 7a9bdeec4aad76..7b0f6a5616f52f 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ActionsClusterEndpointListStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ActionsClusterEndpointListStruct.kt @@ -20,18 +20,16 @@ import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ActionsClusterEndpointListStruct ( - val endpointListID: UShort, - val name: String, - val type: UInt, - val endpoints: List) { - override fun toString(): String = buildString { +class ActionsClusterEndpointListStruct( + val endpointListID: UShort, + val name: String, + val type: UInt, + val endpoints: List +) { + override fun toString(): String = buildString { append("ActionsClusterEndpointListStruct {\n") append("\tendpointListID : $endpointListID\n") append("\tname : $name\n") @@ -61,19 +59,20 @@ class ActionsClusterEndpointListStruct ( private const val TAG_TYPE = 2 private const val TAG_ENDPOINTS = 3 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ActionsClusterEndpointListStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ActionsClusterEndpointListStruct { tlvReader.enterStructure(tlvTag) val endpointListID = tlvReader.getUShort(ContextSpecificTag(TAG_ENDPOINT_LIST_I_D)) val name = tlvReader.getString(ContextSpecificTag(TAG_NAME)) val type = tlvReader.getUInt(ContextSpecificTag(TAG_TYPE)) - val endpoints = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_ENDPOINTS)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUShort(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val endpoints = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_ENDPOINTS)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUShort(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return ActionsClusterEndpointListStruct(endpointListID, name, type, endpoints) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ActivatedCarbonFilterMonitoringClusterReplacementProductStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ActivatedCarbonFilterMonitoringClusterReplacementProductStruct.kt index 7c19bd2698027a..3f3b66764532b4 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ActivatedCarbonFilterMonitoringClusterReplacementProductStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ActivatedCarbonFilterMonitoringClusterReplacementProductStruct.kt @@ -17,19 +17,16 @@ package matter.devicecontroller.cluster.structs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ActivatedCarbonFilterMonitoringClusterReplacementProductStruct ( - val productIdentifierType: UInt, - val productIdentifierValue: String) { - override fun toString(): String = buildString { +class ActivatedCarbonFilterMonitoringClusterReplacementProductStruct( + val productIdentifierType: UInt, + val productIdentifierValue: String +) { + override fun toString(): String = buildString { append("ActivatedCarbonFilterMonitoringClusterReplacementProductStruct {\n") append("\tproductIdentifierType : $productIdentifierType\n") append("\tproductIdentifierValue : $productIdentifierValue\n") @@ -49,14 +46,21 @@ class ActivatedCarbonFilterMonitoringClusterReplacementProductStruct ( private const val TAG_PRODUCT_IDENTIFIER_TYPE = 0 private const val TAG_PRODUCT_IDENTIFIER_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ActivatedCarbonFilterMonitoringClusterReplacementProductStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): ActivatedCarbonFilterMonitoringClusterReplacementProductStruct { tlvReader.enterStructure(tlvTag) val productIdentifierType = tlvReader.getUInt(ContextSpecificTag(TAG_PRODUCT_IDENTIFIER_TYPE)) - val productIdentifierValue = tlvReader.getString(ContextSpecificTag(TAG_PRODUCT_IDENTIFIER_VALUE)) - + val productIdentifierValue = + tlvReader.getString(ContextSpecificTag(TAG_PRODUCT_IDENTIFIER_VALUE)) + tlvReader.exitContainer() - return ActivatedCarbonFilterMonitoringClusterReplacementProductStruct(productIdentifierType, productIdentifierValue) + return ActivatedCarbonFilterMonitoringClusterReplacementProductStruct( + productIdentifierType, + productIdentifierValue + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ApplicationBasicClusterApplicationStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ApplicationBasicClusterApplicationStruct.kt index 831dcca2179554..90dae8f1054f47 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ApplicationBasicClusterApplicationStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ApplicationBasicClusterApplicationStruct.kt @@ -17,19 +17,16 @@ package matter.devicecontroller.cluster.structs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ApplicationBasicClusterApplicationStruct ( - val catalogVendorID: UShort, - val applicationID: String) { - override fun toString(): String = buildString { +class ApplicationBasicClusterApplicationStruct( + val catalogVendorID: UShort, + val applicationID: String +) { + override fun toString(): String = buildString { append("ApplicationBasicClusterApplicationStruct {\n") append("\tcatalogVendorID : $catalogVendorID\n") append("\tapplicationID : $applicationID\n") @@ -49,11 +46,11 @@ class ApplicationBasicClusterApplicationStruct ( private const val TAG_CATALOG_VENDOR_I_D = 0 private const val TAG_APPLICATION_I_D = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ApplicationBasicClusterApplicationStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ApplicationBasicClusterApplicationStruct { tlvReader.enterStructure(tlvTag) val catalogVendorID = tlvReader.getUShort(ContextSpecificTag(TAG_CATALOG_VENDOR_I_D)) val applicationID = tlvReader.getString(ContextSpecificTag(TAG_APPLICATION_I_D)) - + tlvReader.exitContainer() return ApplicationBasicClusterApplicationStruct(catalogVendorID, applicationID) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationEPStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationEPStruct.kt index 032e5935a4c374..62fc820b748084 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationEPStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationEPStruct.kt @@ -16,20 +16,18 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ApplicationLauncherClusterApplicationEPStruct ( - val application: ApplicationLauncherClusterApplicationStruct, - val endpoint: Optional) { - override fun toString(): String = buildString { +class ApplicationLauncherClusterApplicationEPStruct( + val application: ApplicationLauncherClusterApplicationStruct, + val endpoint: Optional +) { + override fun toString(): String = buildString { append("ApplicationLauncherClusterApplicationEPStruct {\n") append("\tapplication : $application\n") append("\tendpoint : $endpoint\n") @@ -41,9 +39,9 @@ class ApplicationLauncherClusterApplicationEPStruct ( startStructure(tlvTag) application.toTlv(ContextSpecificTag(TAG_APPLICATION), this) if (endpoint.isPresent) { - val optendpoint = endpoint.get() - put(ContextSpecificTag(TAG_ENDPOINT), optendpoint) - } + val optendpoint = endpoint.get() + put(ContextSpecificTag(TAG_ENDPOINT), optendpoint) + } endStructure() } } @@ -52,15 +50,20 @@ class ApplicationLauncherClusterApplicationEPStruct ( private const val TAG_APPLICATION = 0 private const val TAG_ENDPOINT = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ApplicationLauncherClusterApplicationEPStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ApplicationLauncherClusterApplicationEPStruct { tlvReader.enterStructure(tlvTag) - val application = ApplicationLauncherClusterApplicationStruct.fromTlv(ContextSpecificTag(TAG_APPLICATION), tlvReader) - val endpoint = if (tlvReader.isNextTag(ContextSpecificTag(TAG_ENDPOINT))) { - Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_ENDPOINT))) - } else { - Optional.empty() - } - + val application = + ApplicationLauncherClusterApplicationStruct.fromTlv( + ContextSpecificTag(TAG_APPLICATION), + tlvReader + ) + val endpoint = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_ENDPOINT))) { + Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_ENDPOINT))) + } else { + Optional.empty() + } + tlvReader.exitContainer() return ApplicationLauncherClusterApplicationEPStruct(application, endpoint) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationStruct.kt index df2b52daba8a95..39fa26c5279bbc 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationStruct.kt @@ -17,19 +17,16 @@ package matter.devicecontroller.cluster.structs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ApplicationLauncherClusterApplicationStruct ( - val catalogVendorID: UShort, - val applicationID: String) { - override fun toString(): String = buildString { +class ApplicationLauncherClusterApplicationStruct( + val catalogVendorID: UShort, + val applicationID: String +) { + override fun toString(): String = buildString { append("ApplicationLauncherClusterApplicationStruct {\n") append("\tcatalogVendorID : $catalogVendorID\n") append("\tapplicationID : $applicationID\n") @@ -49,11 +46,11 @@ class ApplicationLauncherClusterApplicationStruct ( private const val TAG_CATALOG_VENDOR_I_D = 0 private const val TAG_APPLICATION_I_D = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ApplicationLauncherClusterApplicationStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ApplicationLauncherClusterApplicationStruct { tlvReader.enterStructure(tlvTag) val catalogVendorID = tlvReader.getUShort(ContextSpecificTag(TAG_CATALOG_VENDOR_I_D)) val applicationID = tlvReader.getString(ContextSpecificTag(TAG_APPLICATION_I_D)) - + tlvReader.exitContainer() return ApplicationLauncherClusterApplicationStruct(catalogVendorID, applicationID) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AudioOutputClusterOutputInfoStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AudioOutputClusterOutputInfoStruct.kt index 66f2ff7d68467b..07c6c02e0e16af 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AudioOutputClusterOutputInfoStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AudioOutputClusterOutputInfoStruct.kt @@ -17,20 +17,13 @@ package matter.devicecontroller.cluster.structs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class AudioOutputClusterOutputInfoStruct ( - val index: UByte, - val outputType: UInt, - val name: String) { - override fun toString(): String = buildString { +class AudioOutputClusterOutputInfoStruct(val index: UByte, val outputType: UInt, val name: String) { + override fun toString(): String = buildString { append("AudioOutputClusterOutputInfoStruct {\n") append("\tindex : $index\n") append("\toutputType : $outputType\n") @@ -53,12 +46,12 @@ class AudioOutputClusterOutputInfoStruct ( private const val TAG_OUTPUT_TYPE = 1 private const val TAG_NAME = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : AudioOutputClusterOutputInfoStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): AudioOutputClusterOutputInfoStruct { tlvReader.enterStructure(tlvTag) val index = tlvReader.getUByte(ContextSpecificTag(TAG_INDEX)) val outputType = tlvReader.getUInt(ContextSpecificTag(TAG_OUTPUT_TYPE)) val name = tlvReader.getString(ContextSpecificTag(TAG_NAME)) - + tlvReader.exitContainer() return AudioOutputClusterOutputInfoStruct(index, outputType, name) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BasicInformationClusterCapabilityMinimaStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BasicInformationClusterCapabilityMinimaStruct.kt index b4374bc52cb33c..57ffe931e64877 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BasicInformationClusterCapabilityMinimaStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BasicInformationClusterCapabilityMinimaStruct.kt @@ -17,19 +17,16 @@ package matter.devicecontroller.cluster.structs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class BasicInformationClusterCapabilityMinimaStruct ( - val caseSessionsPerFabric: UShort, - val subscriptionsPerFabric: UShort) { - override fun toString(): String = buildString { +class BasicInformationClusterCapabilityMinimaStruct( + val caseSessionsPerFabric: UShort, + val subscriptionsPerFabric: UShort +) { + override fun toString(): String = buildString { append("BasicInformationClusterCapabilityMinimaStruct {\n") append("\tcaseSessionsPerFabric : $caseSessionsPerFabric\n") append("\tsubscriptionsPerFabric : $subscriptionsPerFabric\n") @@ -49,14 +46,19 @@ class BasicInformationClusterCapabilityMinimaStruct ( private const val TAG_CASE_SESSIONS_PER_FABRIC = 0 private const val TAG_SUBSCRIPTIONS_PER_FABRIC = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BasicInformationClusterCapabilityMinimaStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): BasicInformationClusterCapabilityMinimaStruct { tlvReader.enterStructure(tlvTag) - val caseSessionsPerFabric = tlvReader.getUShort(ContextSpecificTag(TAG_CASE_SESSIONS_PER_FABRIC)) - val subscriptionsPerFabric = tlvReader.getUShort(ContextSpecificTag(TAG_SUBSCRIPTIONS_PER_FABRIC)) - + val caseSessionsPerFabric = + tlvReader.getUShort(ContextSpecificTag(TAG_CASE_SESSIONS_PER_FABRIC)) + val subscriptionsPerFabric = + tlvReader.getUShort(ContextSpecificTag(TAG_SUBSCRIPTIONS_PER_FABRIC)) + tlvReader.exitContainer() - return BasicInformationClusterCapabilityMinimaStruct(caseSessionsPerFabric, subscriptionsPerFabric) + return BasicInformationClusterCapabilityMinimaStruct( + caseSessionsPerFabric, + subscriptionsPerFabric + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BasicInformationClusterProductAppearanceStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BasicInformationClusterProductAppearanceStruct.kt index 58f70797a90c24..b1bd7ea2c5599b 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BasicInformationClusterProductAppearanceStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BasicInformationClusterProductAppearanceStruct.kt @@ -17,19 +17,13 @@ package matter.devicecontroller.cluster.structs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class BasicInformationClusterProductAppearanceStruct ( - val finish: UInt, - val primaryColor: UInt?) { - override fun toString(): String = buildString { +class BasicInformationClusterProductAppearanceStruct(val finish: UInt, val primaryColor: UInt?) { + override fun toString(): String = buildString { append("BasicInformationClusterProductAppearanceStruct {\n") append("\tfinish : $finish\n") append("\tprimaryColor : $primaryColor\n") @@ -41,10 +35,10 @@ class BasicInformationClusterProductAppearanceStruct ( startStructure(tlvTag) put(ContextSpecificTag(TAG_FINISH), finish) if (primaryColor != null) { - put(ContextSpecificTag(TAG_PRIMARY_COLOR), primaryColor) - } else { - putNull(ContextSpecificTag(TAG_PRIMARY_COLOR)) - } + put(ContextSpecificTag(TAG_PRIMARY_COLOR), primaryColor) + } else { + putNull(ContextSpecificTag(TAG_PRIMARY_COLOR)) + } endStructure() } } @@ -53,16 +47,17 @@ class BasicInformationClusterProductAppearanceStruct ( private const val TAG_FINISH = 0 private const val TAG_PRIMARY_COLOR = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BasicInformationClusterProductAppearanceStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): BasicInformationClusterProductAppearanceStruct { tlvReader.enterStructure(tlvTag) val finish = tlvReader.getUInt(ContextSpecificTag(TAG_FINISH)) - val primaryColor = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_PRIMARY_COLOR)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_PRIMARY_COLOR)) - null - } - + val primaryColor = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_PRIMARY_COLOR)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PRIMARY_COLOR)) + null + } + tlvReader.exitContainer() return BasicInformationClusterProductAppearanceStruct(finish, primaryColor) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BindingClusterTargetStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BindingClusterTargetStruct.kt index e30c3fee7080b5..2f41f19897474b 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BindingClusterTargetStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BindingClusterTargetStruct.kt @@ -16,23 +16,21 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class BindingClusterTargetStruct ( - val node: Optional, - val group: Optional, - val endpoint: Optional, - val cluster: Optional, - val fabricIndex: UByte) { - override fun toString(): String = buildString { +class BindingClusterTargetStruct( + val node: Optional, + val group: Optional, + val endpoint: Optional, + val cluster: Optional, + val fabricIndex: UByte +) { + override fun toString(): String = buildString { append("BindingClusterTargetStruct {\n") append("\tnode : $node\n") append("\tgroup : $group\n") @@ -46,21 +44,21 @@ class BindingClusterTargetStruct ( tlvWriter.apply { startStructure(tlvTag) if (node.isPresent) { - val optnode = node.get() - put(ContextSpecificTag(TAG_NODE), optnode) - } + val optnode = node.get() + put(ContextSpecificTag(TAG_NODE), optnode) + } if (group.isPresent) { - val optgroup = group.get() - put(ContextSpecificTag(TAG_GROUP), optgroup) - } + val optgroup = group.get() + put(ContextSpecificTag(TAG_GROUP), optgroup) + } if (endpoint.isPresent) { - val optendpoint = endpoint.get() - put(ContextSpecificTag(TAG_ENDPOINT), optendpoint) - } + val optendpoint = endpoint.get() + put(ContextSpecificTag(TAG_ENDPOINT), optendpoint) + } if (cluster.isPresent) { - val optcluster = cluster.get() - put(ContextSpecificTag(TAG_CLUSTER), optcluster) - } + val optcluster = cluster.get() + put(ContextSpecificTag(TAG_CLUSTER), optcluster) + } put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) endStructure() } @@ -73,30 +71,34 @@ class BindingClusterTargetStruct ( private const val TAG_CLUSTER = 4 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BindingClusterTargetStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): BindingClusterTargetStruct { tlvReader.enterStructure(tlvTag) - val node = if (tlvReader.isNextTag(ContextSpecificTag(TAG_NODE))) { - Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_NODE))) - } else { - Optional.empty() - } - val group = if (tlvReader.isNextTag(ContextSpecificTag(TAG_GROUP))) { - Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_GROUP))) - } else { - Optional.empty() - } - val endpoint = if (tlvReader.isNextTag(ContextSpecificTag(TAG_ENDPOINT))) { - Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_ENDPOINT))) - } else { - Optional.empty() - } - val cluster = if (tlvReader.isNextTag(ContextSpecificTag(TAG_CLUSTER))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_CLUSTER))) - } else { - Optional.empty() - } + val node = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NODE))) { + Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_NODE))) + } else { + Optional.empty() + } + val group = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_GROUP))) { + Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_GROUP))) + } else { + Optional.empty() + } + val endpoint = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_ENDPOINT))) { + Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_ENDPOINT))) + } else { + Optional.empty() + } + val cluster = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_CLUSTER))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_CLUSTER))) + } else { + Optional.empty() + } val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() return BindingClusterTargetStruct(node, group, endpoint, cluster, fabricIndex) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BridgedDeviceBasicInformationClusterProductAppearanceStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BridgedDeviceBasicInformationClusterProductAppearanceStruct.kt index 2454f3078205bc..c6b0dea505512d 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BridgedDeviceBasicInformationClusterProductAppearanceStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BridgedDeviceBasicInformationClusterProductAppearanceStruct.kt @@ -17,19 +17,16 @@ package matter.devicecontroller.cluster.structs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class BridgedDeviceBasicInformationClusterProductAppearanceStruct ( - val finish: UInt, - val primaryColor: UInt?) { - override fun toString(): String = buildString { +class BridgedDeviceBasicInformationClusterProductAppearanceStruct( + val finish: UInt, + val primaryColor: UInt? +) { + override fun toString(): String = buildString { append("BridgedDeviceBasicInformationClusterProductAppearanceStruct {\n") append("\tfinish : $finish\n") append("\tprimaryColor : $primaryColor\n") @@ -41,10 +38,10 @@ class BridgedDeviceBasicInformationClusterProductAppearanceStruct ( startStructure(tlvTag) put(ContextSpecificTag(TAG_FINISH), finish) if (primaryColor != null) { - put(ContextSpecificTag(TAG_PRIMARY_COLOR), primaryColor) - } else { - putNull(ContextSpecificTag(TAG_PRIMARY_COLOR)) - } + put(ContextSpecificTag(TAG_PRIMARY_COLOR), primaryColor) + } else { + putNull(ContextSpecificTag(TAG_PRIMARY_COLOR)) + } endStructure() } } @@ -53,16 +50,20 @@ class BridgedDeviceBasicInformationClusterProductAppearanceStruct ( private const val TAG_FINISH = 0 private const val TAG_PRIMARY_COLOR = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BridgedDeviceBasicInformationClusterProductAppearanceStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): BridgedDeviceBasicInformationClusterProductAppearanceStruct { tlvReader.enterStructure(tlvTag) val finish = tlvReader.getUInt(ContextSpecificTag(TAG_FINISH)) - val primaryColor = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_PRIMARY_COLOR)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_PRIMARY_COLOR)) - null - } - + val primaryColor = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_PRIMARY_COLOR)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PRIMARY_COLOR)) + null + } + tlvReader.exitContainer() return BridgedDeviceBasicInformationClusterProductAppearanceStruct(finish, primaryColor) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ChannelClusterChannelInfoStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ChannelClusterChannelInfoStruct.kt index 77bdc999af6917..78dbdfba00b026 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ChannelClusterChannelInfoStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ChannelClusterChannelInfoStruct.kt @@ -16,23 +16,21 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ChannelClusterChannelInfoStruct ( - val majorNumber: UShort, - val minorNumber: UShort, - val name: Optional, - val callSign: Optional, - val affiliateCallSign: Optional) { - override fun toString(): String = buildString { +class ChannelClusterChannelInfoStruct( + val majorNumber: UShort, + val minorNumber: UShort, + val name: Optional, + val callSign: Optional, + val affiliateCallSign: Optional +) { + override fun toString(): String = buildString { append("ChannelClusterChannelInfoStruct {\n") append("\tmajorNumber : $majorNumber\n") append("\tminorNumber : $minorNumber\n") @@ -48,17 +46,17 @@ class ChannelClusterChannelInfoStruct ( put(ContextSpecificTag(TAG_MAJOR_NUMBER), majorNumber) put(ContextSpecificTag(TAG_MINOR_NUMBER), minorNumber) if (name.isPresent) { - val optname = name.get() - put(ContextSpecificTag(TAG_NAME), optname) - } + val optname = name.get() + put(ContextSpecificTag(TAG_NAME), optname) + } if (callSign.isPresent) { - val optcallSign = callSign.get() - put(ContextSpecificTag(TAG_CALL_SIGN), optcallSign) - } + val optcallSign = callSign.get() + put(ContextSpecificTag(TAG_CALL_SIGN), optcallSign) + } if (affiliateCallSign.isPresent) { - val optaffiliateCallSign = affiliateCallSign.get() - put(ContextSpecificTag(TAG_AFFILIATE_CALL_SIGN), optaffiliateCallSign) - } + val optaffiliateCallSign = affiliateCallSign.get() + put(ContextSpecificTag(TAG_AFFILIATE_CALL_SIGN), optaffiliateCallSign) + } endStructure() } } @@ -70,29 +68,38 @@ class ChannelClusterChannelInfoStruct ( private const val TAG_CALL_SIGN = 3 private const val TAG_AFFILIATE_CALL_SIGN = 4 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ChannelClusterChannelInfoStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ChannelClusterChannelInfoStruct { tlvReader.enterStructure(tlvTag) val majorNumber = tlvReader.getUShort(ContextSpecificTag(TAG_MAJOR_NUMBER)) val minorNumber = tlvReader.getUShort(ContextSpecificTag(TAG_MINOR_NUMBER)) - val name = if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) - } else { - Optional.empty() - } - val callSign = if (tlvReader.isNextTag(ContextSpecificTag(TAG_CALL_SIGN))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_CALL_SIGN))) - } else { - Optional.empty() - } - val affiliateCallSign = if (tlvReader.isNextTag(ContextSpecificTag(TAG_AFFILIATE_CALL_SIGN))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_AFFILIATE_CALL_SIGN))) - } else { - Optional.empty() - } - + val name = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) + } else { + Optional.empty() + } + val callSign = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_CALL_SIGN))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_CALL_SIGN))) + } else { + Optional.empty() + } + val affiliateCallSign = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_AFFILIATE_CALL_SIGN))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_AFFILIATE_CALL_SIGN))) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return ChannelClusterChannelInfoStruct(majorNumber, minorNumber, name, callSign, affiliateCallSign) + return ChannelClusterChannelInfoStruct( + majorNumber, + minorNumber, + name, + callSign, + affiliateCallSign + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ChannelClusterLineupInfoStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ChannelClusterLineupInfoStruct.kt index d51d22a47f82b9..cb1ab50c1e95db 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ChannelClusterLineupInfoStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ChannelClusterLineupInfoStruct.kt @@ -16,22 +16,20 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ChannelClusterLineupInfoStruct ( - val operatorName: String, - val lineupName: Optional, - val postalCode: Optional, - val lineupInfoType: UInt) { - override fun toString(): String = buildString { +class ChannelClusterLineupInfoStruct( + val operatorName: String, + val lineupName: Optional, + val postalCode: Optional, + val lineupInfoType: UInt +) { + override fun toString(): String = buildString { append("ChannelClusterLineupInfoStruct {\n") append("\toperatorName : $operatorName\n") append("\tlineupName : $lineupName\n") @@ -45,13 +43,13 @@ class ChannelClusterLineupInfoStruct ( startStructure(tlvTag) put(ContextSpecificTag(TAG_OPERATOR_NAME), operatorName) if (lineupName.isPresent) { - val optlineupName = lineupName.get() - put(ContextSpecificTag(TAG_LINEUP_NAME), optlineupName) - } + val optlineupName = lineupName.get() + put(ContextSpecificTag(TAG_LINEUP_NAME), optlineupName) + } if (postalCode.isPresent) { - val optpostalCode = postalCode.get() - put(ContextSpecificTag(TAG_POSTAL_CODE), optpostalCode) - } + val optpostalCode = postalCode.get() + put(ContextSpecificTag(TAG_POSTAL_CODE), optpostalCode) + } put(ContextSpecificTag(TAG_LINEUP_INFO_TYPE), lineupInfoType) endStructure() } @@ -63,21 +61,23 @@ class ChannelClusterLineupInfoStruct ( private const val TAG_POSTAL_CODE = 2 private const val TAG_LINEUP_INFO_TYPE = 3 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ChannelClusterLineupInfoStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ChannelClusterLineupInfoStruct { tlvReader.enterStructure(tlvTag) val operatorName = tlvReader.getString(ContextSpecificTag(TAG_OPERATOR_NAME)) - val lineupName = if (tlvReader.isNextTag(ContextSpecificTag(TAG_LINEUP_NAME))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_LINEUP_NAME))) - } else { - Optional.empty() - } - val postalCode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_POSTAL_CODE))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_POSTAL_CODE))) - } else { - Optional.empty() - } + val lineupName = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_LINEUP_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_LINEUP_NAME))) + } else { + Optional.empty() + } + val postalCode = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_POSTAL_CODE))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_POSTAL_CODE))) + } else { + Optional.empty() + } val lineupInfoType = tlvReader.getUInt(ContextSpecificTag(TAG_LINEUP_INFO_TYPE)) - + tlvReader.exitContainer() return ChannelClusterLineupInfoStruct(operatorName, lineupName, postalCode, lineupInfoType) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterAdditionalInfoStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterAdditionalInfoStruct.kt index c7ce3c5d7f1556..e58a8923415e3b 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterAdditionalInfoStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterAdditionalInfoStruct.kt @@ -17,19 +17,13 @@ package matter.devicecontroller.cluster.structs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ContentLauncherClusterAdditionalInfoStruct ( - val name: String, - val value: String) { - override fun toString(): String = buildString { +class ContentLauncherClusterAdditionalInfoStruct(val name: String, val value: String) { + override fun toString(): String = buildString { append("ContentLauncherClusterAdditionalInfoStruct {\n") append("\tname : $name\n") append("\tvalue : $value\n") @@ -49,11 +43,11 @@ class ContentLauncherClusterAdditionalInfoStruct ( private const val TAG_NAME = 0 private const val TAG_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ContentLauncherClusterAdditionalInfoStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ContentLauncherClusterAdditionalInfoStruct { tlvReader.enterStructure(tlvTag) val name = tlvReader.getString(ContextSpecificTag(TAG_NAME)) val value = tlvReader.getString(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return ContentLauncherClusterAdditionalInfoStruct(name, value) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterBrandingInformationStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterBrandingInformationStruct.kt index abf7846e2a84ed..7fc9456852969f 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterBrandingInformationStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterBrandingInformationStruct.kt @@ -16,24 +16,22 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ContentLauncherClusterBrandingInformationStruct ( - val providerName: String, - val background: Optional, - val logo: Optional, - val progressBar: Optional, - val splash: Optional, - val waterMark: Optional) { - override fun toString(): String = buildString { +class ContentLauncherClusterBrandingInformationStruct( + val providerName: String, + val background: Optional, + val logo: Optional, + val progressBar: Optional, + val splash: Optional, + val waterMark: Optional +) { + override fun toString(): String = buildString { append("ContentLauncherClusterBrandingInformationStruct {\n") append("\tproviderName : $providerName\n") append("\tbackground : $background\n") @@ -49,25 +47,25 @@ class ContentLauncherClusterBrandingInformationStruct ( startStructure(tlvTag) put(ContextSpecificTag(TAG_PROVIDER_NAME), providerName) if (background.isPresent) { - val optbackground = background.get() - optbackground.toTlv(ContextSpecificTag(TAG_BACKGROUND), this) - } + val optbackground = background.get() + optbackground.toTlv(ContextSpecificTag(TAG_BACKGROUND), this) + } if (logo.isPresent) { - val optlogo = logo.get() - optlogo.toTlv(ContextSpecificTag(TAG_LOGO), this) - } + val optlogo = logo.get() + optlogo.toTlv(ContextSpecificTag(TAG_LOGO), this) + } if (progressBar.isPresent) { - val optprogressBar = progressBar.get() - optprogressBar.toTlv(ContextSpecificTag(TAG_PROGRESS_BAR), this) - } + val optprogressBar = progressBar.get() + optprogressBar.toTlv(ContextSpecificTag(TAG_PROGRESS_BAR), this) + } if (splash.isPresent) { - val optsplash = splash.get() - optsplash.toTlv(ContextSpecificTag(TAG_SPLASH), this) - } + val optsplash = splash.get() + optsplash.toTlv(ContextSpecificTag(TAG_SPLASH), this) + } if (waterMark.isPresent) { - val optwaterMark = waterMark.get() - optwaterMark.toTlv(ContextSpecificTag(TAG_WATER_MARK), this) - } + val optwaterMark = waterMark.get() + optwaterMark.toTlv(ContextSpecificTag(TAG_WATER_MARK), this) + } endStructure() } } @@ -80,38 +78,78 @@ class ContentLauncherClusterBrandingInformationStruct ( private const val TAG_SPLASH = 4 private const val TAG_WATER_MARK = 5 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ContentLauncherClusterBrandingInformationStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): ContentLauncherClusterBrandingInformationStruct { tlvReader.enterStructure(tlvTag) val providerName = tlvReader.getString(ContextSpecificTag(TAG_PROVIDER_NAME)) - val background = if (tlvReader.isNextTag(ContextSpecificTag(TAG_BACKGROUND))) { - Optional.of(ContentLauncherClusterStyleInformationStruct.fromTlv(ContextSpecificTag(TAG_BACKGROUND), tlvReader)) - } else { - Optional.empty() - } - val logo = if (tlvReader.isNextTag(ContextSpecificTag(TAG_LOGO))) { - Optional.of(ContentLauncherClusterStyleInformationStruct.fromTlv(ContextSpecificTag(TAG_LOGO), tlvReader)) - } else { - Optional.empty() - } - val progressBar = if (tlvReader.isNextTag(ContextSpecificTag(TAG_PROGRESS_BAR))) { - Optional.of(ContentLauncherClusterStyleInformationStruct.fromTlv(ContextSpecificTag(TAG_PROGRESS_BAR), tlvReader)) - } else { - Optional.empty() - } - val splash = if (tlvReader.isNextTag(ContextSpecificTag(TAG_SPLASH))) { - Optional.of(ContentLauncherClusterStyleInformationStruct.fromTlv(ContextSpecificTag(TAG_SPLASH), tlvReader)) - } else { - Optional.empty() - } - val waterMark = if (tlvReader.isNextTag(ContextSpecificTag(TAG_WATER_MARK))) { - Optional.of(ContentLauncherClusterStyleInformationStruct.fromTlv(ContextSpecificTag(TAG_WATER_MARK), tlvReader)) - } else { - Optional.empty() - } - + val background = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_BACKGROUND))) { + Optional.of( + ContentLauncherClusterStyleInformationStruct.fromTlv( + ContextSpecificTag(TAG_BACKGROUND), + tlvReader + ) + ) + } else { + Optional.empty() + } + val logo = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_LOGO))) { + Optional.of( + ContentLauncherClusterStyleInformationStruct.fromTlv( + ContextSpecificTag(TAG_LOGO), + tlvReader + ) + ) + } else { + Optional.empty() + } + val progressBar = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_PROGRESS_BAR))) { + Optional.of( + ContentLauncherClusterStyleInformationStruct.fromTlv( + ContextSpecificTag(TAG_PROGRESS_BAR), + tlvReader + ) + ) + } else { + Optional.empty() + } + val splash = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_SPLASH))) { + Optional.of( + ContentLauncherClusterStyleInformationStruct.fromTlv( + ContextSpecificTag(TAG_SPLASH), + tlvReader + ) + ) + } else { + Optional.empty() + } + val waterMark = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_WATER_MARK))) { + Optional.of( + ContentLauncherClusterStyleInformationStruct.fromTlv( + ContextSpecificTag(TAG_WATER_MARK), + tlvReader + ) + ) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return ContentLauncherClusterBrandingInformationStruct(providerName, background, logo, progressBar, splash, waterMark) + return ContentLauncherClusterBrandingInformationStruct( + providerName, + background, + logo, + progressBar, + splash, + waterMark + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterContentSearchStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterContentSearchStruct.kt index 14f711bd887dd2..edb9b9abc81976 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterContentSearchStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterContentSearchStruct.kt @@ -20,15 +20,13 @@ import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ContentLauncherClusterContentSearchStruct ( - val parameterList: List) { - override fun toString(): String = buildString { +class ContentLauncherClusterContentSearchStruct( + val parameterList: List +) { + override fun toString(): String = buildString { append("ContentLauncherClusterContentSearchStruct {\n") append("\tparameterList : $parameterList\n") append("}\n") @@ -49,16 +47,17 @@ class ContentLauncherClusterContentSearchStruct ( companion object { private const val TAG_PARAMETER_LIST = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ContentLauncherClusterContentSearchStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ContentLauncherClusterContentSearchStruct { tlvReader.enterStructure(tlvTag) - val parameterList = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PARAMETER_LIST)) - while(!tlvReader.isEndOfContainer()) { - add(ContentLauncherClusterParameterStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val parameterList = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PARAMETER_LIST)) + while (!tlvReader.isEndOfContainer()) { + add(ContentLauncherClusterParameterStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return ContentLauncherClusterContentSearchStruct(parameterList) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterDimensionStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterDimensionStruct.kt index a2f31eb5f2b836..02b1322f5f9f17 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterDimensionStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterDimensionStruct.kt @@ -17,20 +17,17 @@ package matter.devicecontroller.cluster.structs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ContentLauncherClusterDimensionStruct ( - val width: Double, - val height: Double, - val metric: UInt) { - override fun toString(): String = buildString { +class ContentLauncherClusterDimensionStruct( + val width: Double, + val height: Double, + val metric: UInt +) { + override fun toString(): String = buildString { append("ContentLauncherClusterDimensionStruct {\n") append("\twidth : $width\n") append("\theight : $height\n") @@ -53,12 +50,12 @@ class ContentLauncherClusterDimensionStruct ( private const val TAG_HEIGHT = 1 private const val TAG_METRIC = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ContentLauncherClusterDimensionStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ContentLauncherClusterDimensionStruct { tlvReader.enterStructure(tlvTag) val width = tlvReader.getDouble(ContextSpecificTag(TAG_WIDTH)) val height = tlvReader.getDouble(ContextSpecificTag(TAG_HEIGHT)) val metric = tlvReader.getUInt(ContextSpecificTag(TAG_METRIC)) - + tlvReader.exitContainer() return ContentLauncherClusterDimensionStruct(width, height, metric) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterParameterStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterParameterStruct.kt index e55d7cbcbc3046..ee1efa7365917b 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterParameterStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterParameterStruct.kt @@ -16,21 +16,20 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ContentLauncherClusterParameterStruct ( - val type: UInt, - val value: String, - val externalIDList: Optional>) { - override fun toString(): String = buildString { +class ContentLauncherClusterParameterStruct( + val type: UInt, + val value: String, + val externalIDList: Optional> +) { + override fun toString(): String = buildString { append("ContentLauncherClusterParameterStruct {\n") append("\ttype : $type\n") append("\tvalue : $value\n") @@ -44,13 +43,13 @@ class ContentLauncherClusterParameterStruct ( put(ContextSpecificTag(TAG_TYPE), type) put(ContextSpecificTag(TAG_VALUE), value) if (externalIDList.isPresent) { - val optexternalIDList = externalIDList.get() - startArray(ContextSpecificTag(TAG_EXTERNAL_I_D_LIST)) - for (item in optexternalIDList.iterator()) { - item.toTlv(AnonymousTag, this) + val optexternalIDList = externalIDList.get() + startArray(ContextSpecificTag(TAG_EXTERNAL_I_D_LIST)) + for (item in optexternalIDList.iterator()) { + item.toTlv(AnonymousTag, this) + } + endArray() } - endArray() - } endStructure() } } @@ -60,22 +59,25 @@ class ContentLauncherClusterParameterStruct ( private const val TAG_VALUE = 1 private const val TAG_EXTERNAL_I_D_LIST = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ContentLauncherClusterParameterStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ContentLauncherClusterParameterStruct { tlvReader.enterStructure(tlvTag) val type = tlvReader.getUInt(ContextSpecificTag(TAG_TYPE)) val value = tlvReader.getString(ContextSpecificTag(TAG_VALUE)) - val externalIDList = if (tlvReader.isNextTag(ContextSpecificTag(TAG_EXTERNAL_I_D_LIST))) { - Optional.of(buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_EXTERNAL_I_D_LIST)) - while(!tlvReader.isEndOfContainer()) { - add(ContentLauncherClusterAdditionalInfoStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - }) - } else { - Optional.empty() - } - + val externalIDList = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_EXTERNAL_I_D_LIST))) { + Optional.of( + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_EXTERNAL_I_D_LIST)) + while (!tlvReader.isEndOfContainer()) { + add(ContentLauncherClusterAdditionalInfoStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + ) + } else { + Optional.empty() + } + tlvReader.exitContainer() return ContentLauncherClusterParameterStruct(type, value, externalIDList) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterStyleInformationStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterStyleInformationStruct.kt index 5b36ceb2ae500f..217d11a7712d03 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterStyleInformationStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterStyleInformationStruct.kt @@ -16,21 +16,19 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ContentLauncherClusterStyleInformationStruct ( - val imageURL: Optional, - val color: Optional, - val size: Optional) { - override fun toString(): String = buildString { +class ContentLauncherClusterStyleInformationStruct( + val imageURL: Optional, + val color: Optional, + val size: Optional +) { + override fun toString(): String = buildString { append("ContentLauncherClusterStyleInformationStruct {\n") append("\timageURL : $imageURL\n") append("\tcolor : $color\n") @@ -42,17 +40,17 @@ class ContentLauncherClusterStyleInformationStruct ( tlvWriter.apply { startStructure(tlvTag) if (imageURL.isPresent) { - val optimageURL = imageURL.get() - put(ContextSpecificTag(TAG_IMAGE_U_R_L), optimageURL) - } + val optimageURL = imageURL.get() + put(ContextSpecificTag(TAG_IMAGE_U_R_L), optimageURL) + } if (color.isPresent) { - val optcolor = color.get() - put(ContextSpecificTag(TAG_COLOR), optcolor) - } + val optcolor = color.get() + put(ContextSpecificTag(TAG_COLOR), optcolor) + } if (size.isPresent) { - val optsize = size.get() - optsize.toTlv(ContextSpecificTag(TAG_SIZE), this) - } + val optsize = size.get() + optsize.toTlv(ContextSpecificTag(TAG_SIZE), this) + } endStructure() } } @@ -62,24 +60,29 @@ class ContentLauncherClusterStyleInformationStruct ( private const val TAG_COLOR = 1 private const val TAG_SIZE = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ContentLauncherClusterStyleInformationStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ContentLauncherClusterStyleInformationStruct { tlvReader.enterStructure(tlvTag) - val imageURL = if (tlvReader.isNextTag(ContextSpecificTag(TAG_IMAGE_U_R_L))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_IMAGE_U_R_L))) - } else { - Optional.empty() - } - val color = if (tlvReader.isNextTag(ContextSpecificTag(TAG_COLOR))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_COLOR))) - } else { - Optional.empty() - } - val size = if (tlvReader.isNextTag(ContextSpecificTag(TAG_SIZE))) { - Optional.of(ContentLauncherClusterDimensionStruct.fromTlv(ContextSpecificTag(TAG_SIZE), tlvReader)) - } else { - Optional.empty() - } - + val imageURL = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_IMAGE_U_R_L))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_IMAGE_U_R_L))) + } else { + Optional.empty() + } + val color = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_COLOR))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_COLOR))) + } else { + Optional.empty() + } + val size = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_SIZE))) { + Optional.of( + ContentLauncherClusterDimensionStruct.fromTlv(ContextSpecificTag(TAG_SIZE), tlvReader) + ) + } else { + Optional.empty() + } + tlvReader.exitContainer() return ContentLauncherClusterStyleInformationStruct(imageURL, color, size) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DescriptorClusterDeviceTypeStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DescriptorClusterDeviceTypeStruct.kt index 4b6bbfaf9119b1..b7b19082af7379 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DescriptorClusterDeviceTypeStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DescriptorClusterDeviceTypeStruct.kt @@ -17,19 +17,13 @@ package matter.devicecontroller.cluster.structs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class DescriptorClusterDeviceTypeStruct ( - val deviceType: UInt, - val revision: UShort) { - override fun toString(): String = buildString { +class DescriptorClusterDeviceTypeStruct(val deviceType: UInt, val revision: UShort) { + override fun toString(): String = buildString { append("DescriptorClusterDeviceTypeStruct {\n") append("\tdeviceType : $deviceType\n") append("\trevision : $revision\n") @@ -49,11 +43,11 @@ class DescriptorClusterDeviceTypeStruct ( private const val TAG_DEVICE_TYPE = 0 private const val TAG_REVISION = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DescriptorClusterDeviceTypeStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DescriptorClusterDeviceTypeStruct { tlvReader.enterStructure(tlvTag) val deviceType = tlvReader.getUInt(ContextSpecificTag(TAG_DEVICE_TYPE)) val revision = tlvReader.getUShort(ContextSpecificTag(TAG_REVISION)) - + tlvReader.exitContainer() return DescriptorClusterDeviceTypeStruct(deviceType, revision) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DescriptorClusterSemanticTagStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DescriptorClusterSemanticTagStruct.kt index 193d0d722ed173..2dd5869528c27f 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DescriptorClusterSemanticTagStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DescriptorClusterSemanticTagStruct.kt @@ -16,22 +16,20 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class DescriptorClusterSemanticTagStruct ( - val mfgCode: UShort?, - val namespaceID: UInt, - val tag: UInt, - val label: Optional?) { - override fun toString(): String = buildString { +class DescriptorClusterSemanticTagStruct( + val mfgCode: UShort?, + val namespaceID: UInt, + val tag: UInt, + val label: Optional? +) { + override fun toString(): String = buildString { append("DescriptorClusterSemanticTagStruct {\n") append("\tmfgCode : $mfgCode\n") append("\tnamespaceID : $namespaceID\n") @@ -44,20 +42,20 @@ class DescriptorClusterSemanticTagStruct ( tlvWriter.apply { startStructure(tlvTag) if (mfgCode != null) { - put(ContextSpecificTag(TAG_MFG_CODE), mfgCode) - } else { - putNull(ContextSpecificTag(TAG_MFG_CODE)) - } + put(ContextSpecificTag(TAG_MFG_CODE), mfgCode) + } else { + putNull(ContextSpecificTag(TAG_MFG_CODE)) + } put(ContextSpecificTag(TAG_NAMESPACE_I_D), namespaceID) put(ContextSpecificTag(TAG_TAG), tag) if (label != null) { - if (label.isPresent) { - val optlabel = label.get() - put(ContextSpecificTag(TAG_LABEL), optlabel) - } - } else { - putNull(ContextSpecificTag(TAG_LABEL)) - } + if (label.isPresent) { + val optlabel = label.get() + put(ContextSpecificTag(TAG_LABEL), optlabel) + } + } else { + putNull(ContextSpecificTag(TAG_LABEL)) + } endStructure() } } @@ -68,27 +66,29 @@ class DescriptorClusterSemanticTagStruct ( private const val TAG_TAG = 2 private const val TAG_LABEL = 3 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DescriptorClusterSemanticTagStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DescriptorClusterSemanticTagStruct { tlvReader.enterStructure(tlvTag) - val mfgCode = if (!tlvReader.isNull()) { - tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_MFG_CODE)) - null - } + val mfgCode = + if (!tlvReader.isNull()) { + tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_MFG_CODE)) + null + } val namespaceID = tlvReader.getUInt(ContextSpecificTag(TAG_NAMESPACE_I_D)) val tag = tlvReader.getUInt(ContextSpecificTag(TAG_TAG)) - val label = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_LABEL))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_LABEL))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_LABEL)) - null - } - + val label = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_LABEL))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_LABEL))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_LABEL)) + null + } + tlvReader.exitContainer() return DescriptorClusterSemanticTagStruct(mfgCode, namespaceID, tag, label) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DishwasherModeClusterModeOptionStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DishwasherModeClusterModeOptionStruct.kt index fa3b1f5ad0e855..d35df126ab13bd 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DishwasherModeClusterModeOptionStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DishwasherModeClusterModeOptionStruct.kt @@ -20,17 +20,15 @@ import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class DishwasherModeClusterModeOptionStruct ( - val label: String, - val mode: UByte, - val modeTags: List) { - override fun toString(): String = buildString { +class DishwasherModeClusterModeOptionStruct( + val label: String, + val mode: UByte, + val modeTags: List +) { + override fun toString(): String = buildString { append("DishwasherModeClusterModeOptionStruct {\n") append("\tlabel : $label\n") append("\tmode : $mode\n") @@ -57,18 +55,19 @@ class DishwasherModeClusterModeOptionStruct ( private const val TAG_MODE = 1 private const val TAG_MODE_TAGS = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DishwasherModeClusterModeOptionStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DishwasherModeClusterModeOptionStruct { tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val mode = tlvReader.getUByte(ContextSpecificTag(TAG_MODE)) - val modeTags = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) - while(!tlvReader.isEndOfContainer()) { - add(DishwasherModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val modeTags = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) + while (!tlvReader.isEndOfContainer()) { + add(DishwasherModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return DishwasherModeClusterModeOptionStruct(label, mode, modeTags) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DishwasherModeClusterModeTagStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DishwasherModeClusterModeTagStruct.kt index 582ba2c8a49de2..7e3d6bbe24ecdb 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DishwasherModeClusterModeTagStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DishwasherModeClusterModeTagStruct.kt @@ -16,20 +16,15 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class DishwasherModeClusterModeTagStruct ( - val mfgCode: Optional, - val value: UInt) { - override fun toString(): String = buildString { +class DishwasherModeClusterModeTagStruct(val mfgCode: Optional, val value: UInt) { + override fun toString(): String = buildString { append("DishwasherModeClusterModeTagStruct {\n") append("\tmfgCode : $mfgCode\n") append("\tvalue : $value\n") @@ -40,9 +35,9 @@ class DishwasherModeClusterModeTagStruct ( tlvWriter.apply { startStructure(tlvTag) if (mfgCode.isPresent) { - val optmfgCode = mfgCode.get() - put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) - } + val optmfgCode = mfgCode.get() + put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) + } put(ContextSpecificTag(TAG_VALUE), value) endStructure() } @@ -52,15 +47,16 @@ class DishwasherModeClusterModeTagStruct ( private const val TAG_MFG_CODE = 0 private const val TAG_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DishwasherModeClusterModeTagStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DishwasherModeClusterModeTagStruct { tlvReader.enterStructure(tlvTag) - val mfgCode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { - Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE))) - } else { - Optional.empty() - } + val mfgCode = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { + Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE))) + } else { + Optional.empty() + } val value = tlvReader.getUInt(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return DishwasherModeClusterModeTagStruct(mfgCode, value) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DoorLockClusterCredentialStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DoorLockClusterCredentialStruct.kt index b680865d5ca863..4ee0122fa76b0c 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DoorLockClusterCredentialStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DoorLockClusterCredentialStruct.kt @@ -17,19 +17,13 @@ package matter.devicecontroller.cluster.structs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class DoorLockClusterCredentialStruct ( - val credentialType: UInt, - val credentialIndex: UShort) { - override fun toString(): String = buildString { +class DoorLockClusterCredentialStruct(val credentialType: UInt, val credentialIndex: UShort) { + override fun toString(): String = buildString { append("DoorLockClusterCredentialStruct {\n") append("\tcredentialType : $credentialType\n") append("\tcredentialIndex : $credentialIndex\n") @@ -49,11 +43,11 @@ class DoorLockClusterCredentialStruct ( private const val TAG_CREDENTIAL_TYPE = 0 private const val TAG_CREDENTIAL_INDEX = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DoorLockClusterCredentialStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DoorLockClusterCredentialStruct { tlvReader.enterStructure(tlvTag) val credentialType = tlvReader.getUInt(ContextSpecificTag(TAG_CREDENTIAL_TYPE)) val credentialIndex = tlvReader.getUShort(ContextSpecificTag(TAG_CREDENTIAL_INDEX)) - + tlvReader.exitContainer() return DoorLockClusterCredentialStruct(credentialType, credentialIndex) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/FixedLabelClusterLabelStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/FixedLabelClusterLabelStruct.kt index 0346fc642ecbce..07a231555999fa 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/FixedLabelClusterLabelStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/FixedLabelClusterLabelStruct.kt @@ -17,19 +17,13 @@ package matter.devicecontroller.cluster.structs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class FixedLabelClusterLabelStruct ( - val label: String, - val value: String) { - override fun toString(): String = buildString { +class FixedLabelClusterLabelStruct(val label: String, val value: String) { + override fun toString(): String = buildString { append("FixedLabelClusterLabelStruct {\n") append("\tlabel : $label\n") append("\tvalue : $value\n") @@ -49,11 +43,11 @@ class FixedLabelClusterLabelStruct ( private const val TAG_LABEL = 0 private const val TAG_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : FixedLabelClusterLabelStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): FixedLabelClusterLabelStruct { tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val value = tlvReader.getString(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return FixedLabelClusterLabelStruct(label, value) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GeneralCommissioningClusterBasicCommissioningInfo.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GeneralCommissioningClusterBasicCommissioningInfo.kt index 1dac0cc26ef1e1..e8638055916ae0 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GeneralCommissioningClusterBasicCommissioningInfo.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GeneralCommissioningClusterBasicCommissioningInfo.kt @@ -17,19 +17,16 @@ package matter.devicecontroller.cluster.structs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class GeneralCommissioningClusterBasicCommissioningInfo ( - val failSafeExpiryLengthSeconds: UShort, - val maxCumulativeFailsafeSeconds: UShort) { - override fun toString(): String = buildString { +class GeneralCommissioningClusterBasicCommissioningInfo( + val failSafeExpiryLengthSeconds: UShort, + val maxCumulativeFailsafeSeconds: UShort +) { + override fun toString(): String = buildString { append("GeneralCommissioningClusterBasicCommissioningInfo {\n") append("\tfailSafeExpiryLengthSeconds : $failSafeExpiryLengthSeconds\n") append("\tmaxCumulativeFailsafeSeconds : $maxCumulativeFailsafeSeconds\n") @@ -49,14 +46,22 @@ class GeneralCommissioningClusterBasicCommissioningInfo ( private const val TAG_FAIL_SAFE_EXPIRY_LENGTH_SECONDS = 0 private const val TAG_MAX_CUMULATIVE_FAILSAFE_SECONDS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : GeneralCommissioningClusterBasicCommissioningInfo { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): GeneralCommissioningClusterBasicCommissioningInfo { tlvReader.enterStructure(tlvTag) - val failSafeExpiryLengthSeconds = tlvReader.getUShort(ContextSpecificTag(TAG_FAIL_SAFE_EXPIRY_LENGTH_SECONDS)) - val maxCumulativeFailsafeSeconds = tlvReader.getUShort(ContextSpecificTag(TAG_MAX_CUMULATIVE_FAILSAFE_SECONDS)) - + val failSafeExpiryLengthSeconds = + tlvReader.getUShort(ContextSpecificTag(TAG_FAIL_SAFE_EXPIRY_LENGTH_SECONDS)) + val maxCumulativeFailsafeSeconds = + tlvReader.getUShort(ContextSpecificTag(TAG_MAX_CUMULATIVE_FAILSAFE_SECONDS)) + tlvReader.exitContainer() - return GeneralCommissioningClusterBasicCommissioningInfo(failSafeExpiryLengthSeconds, maxCumulativeFailsafeSeconds) + return GeneralCommissioningClusterBasicCommissioningInfo( + failSafeExpiryLengthSeconds, + maxCumulativeFailsafeSeconds + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GeneralDiagnosticsClusterNetworkInterface.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GeneralDiagnosticsClusterNetworkInterface.kt index f4dcf9ac5f59c6..900e71adea7c6d 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GeneralDiagnosticsClusterNetworkInterface.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GeneralDiagnosticsClusterNetworkInterface.kt @@ -20,22 +20,20 @@ import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class GeneralDiagnosticsClusterNetworkInterface ( - val name: String, - val isOperational: Boolean, - val offPremiseServicesReachableIPv4: Boolean?, - val offPremiseServicesReachableIPv6: Boolean?, - val hardwareAddress: ByteArray, - val IPv4Addresses: List, - val IPv6Addresses: List, - val type: UInt) { - override fun toString(): String = buildString { +class GeneralDiagnosticsClusterNetworkInterface( + val name: String, + val isOperational: Boolean, + val offPremiseServicesReachableIPv4: Boolean?, + val offPremiseServicesReachableIPv6: Boolean?, + val hardwareAddress: ByteArray, + val IPv4Addresses: List, + val IPv6Addresses: List, + val type: UInt +) { + override fun toString(): String = buildString { append("GeneralDiagnosticsClusterNetworkInterface {\n") append("\tname : $name\n") append("\tisOperational : $isOperational\n") @@ -54,15 +52,21 @@ class GeneralDiagnosticsClusterNetworkInterface ( put(ContextSpecificTag(TAG_NAME), name) put(ContextSpecificTag(TAG_IS_OPERATIONAL), isOperational) if (offPremiseServicesReachableIPv4 != null) { - put(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV4), offPremiseServicesReachableIPv4) - } else { - putNull(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV4)) - } + put( + ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV4), + offPremiseServicesReachableIPv4 + ) + } else { + putNull(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV4)) + } if (offPremiseServicesReachableIPv6 != null) { - put(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV6), offPremiseServicesReachableIPv6) - } else { - putNull(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV6)) - } + put( + ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV6), + offPremiseServicesReachableIPv6 + ) + } else { + putNull(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV6)) + } put(ContextSpecificTag(TAG_HARDWARE_ADDRESS), hardwareAddress) startArray(ContextSpecificTag(TAG_I_PV4_ADDRESSES)) for (item in IPv4Addresses.iterator()) { @@ -89,42 +93,55 @@ class GeneralDiagnosticsClusterNetworkInterface ( private const val TAG_I_PV6_ADDRESSES = 6 private const val TAG_TYPE = 7 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : GeneralDiagnosticsClusterNetworkInterface { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): GeneralDiagnosticsClusterNetworkInterface { tlvReader.enterStructure(tlvTag) val name = tlvReader.getString(ContextSpecificTag(TAG_NAME)) val isOperational = tlvReader.getBoolean(ContextSpecificTag(TAG_IS_OPERATIONAL)) - val offPremiseServicesReachableIPv4 = if (!tlvReader.isNull()) { - tlvReader.getBoolean(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV4)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV4)) - null - } - val offPremiseServicesReachableIPv6 = if (!tlvReader.isNull()) { - tlvReader.getBoolean(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV6)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV6)) - null - } + val offPremiseServicesReachableIPv4 = + if (!tlvReader.isNull()) { + tlvReader.getBoolean(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV4)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV4)) + null + } + val offPremiseServicesReachableIPv6 = + if (!tlvReader.isNull()) { + tlvReader.getBoolean(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV6)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV6)) + null + } val hardwareAddress = tlvReader.getByteArray(ContextSpecificTag(TAG_HARDWARE_ADDRESS)) - val IPv4Addresses = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_I_PV4_ADDRESSES)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getByteArray(AnonymousTag)) - } - tlvReader.exitContainer() - } - val IPv6Addresses = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_I_PV6_ADDRESSES)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getByteArray(AnonymousTag)) - } - tlvReader.exitContainer() - } + val IPv4Addresses = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_I_PV4_ADDRESSES)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getByteArray(AnonymousTag)) + } + tlvReader.exitContainer() + } + val IPv6Addresses = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_I_PV6_ADDRESSES)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getByteArray(AnonymousTag)) + } + tlvReader.exitContainer() + } val type = tlvReader.getUInt(ContextSpecificTag(TAG_TYPE)) - + tlvReader.exitContainer() - return GeneralDiagnosticsClusterNetworkInterface(name, isOperational, offPremiseServicesReachableIPv4, offPremiseServicesReachableIPv6, hardwareAddress, IPv4Addresses, IPv6Addresses, type) + return GeneralDiagnosticsClusterNetworkInterface( + name, + isOperational, + offPremiseServicesReachableIPv4, + offPremiseServicesReachableIPv6, + hardwareAddress, + IPv4Addresses, + IPv6Addresses, + type + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupInfoMapStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupInfoMapStruct.kt index 1b72101199becc..cfa9eb7e88060c 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupInfoMapStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupInfoMapStruct.kt @@ -16,22 +16,21 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class GroupKeyManagementClusterGroupInfoMapStruct ( - val groupId: UShort, - val endpoints: List, - val groupName: Optional, - val fabricIndex: UByte) { - override fun toString(): String = buildString { +class GroupKeyManagementClusterGroupInfoMapStruct( + val groupId: UShort, + val endpoints: List, + val groupName: Optional, + val fabricIndex: UByte +) { + override fun toString(): String = buildString { append("GroupKeyManagementClusterGroupInfoMapStruct {\n") append("\tgroupId : $groupId\n") append("\tendpoints : $endpoints\n") @@ -50,9 +49,9 @@ class GroupKeyManagementClusterGroupInfoMapStruct ( } endArray() if (groupName.isPresent) { - val optgroupName = groupName.get() - put(ContextSpecificTag(TAG_GROUP_NAME), optgroupName) - } + val optgroupName = groupName.get() + put(ContextSpecificTag(TAG_GROUP_NAME), optgroupName) + } put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) endStructure() } @@ -64,23 +63,25 @@ class GroupKeyManagementClusterGroupInfoMapStruct ( private const val TAG_GROUP_NAME = 3 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : GroupKeyManagementClusterGroupInfoMapStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): GroupKeyManagementClusterGroupInfoMapStruct { tlvReader.enterStructure(tlvTag) val groupId = tlvReader.getUShort(ContextSpecificTag(TAG_GROUP_ID)) - val endpoints = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_ENDPOINTS)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUShort(AnonymousTag)) - } - tlvReader.exitContainer() - } - val groupName = if (tlvReader.isNextTag(ContextSpecificTag(TAG_GROUP_NAME))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_GROUP_NAME))) - } else { - Optional.empty() - } + val endpoints = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_ENDPOINTS)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUShort(AnonymousTag)) + } + tlvReader.exitContainer() + } + val groupName = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_GROUP_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_GROUP_NAME))) + } else { + Optional.empty() + } val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() return GroupKeyManagementClusterGroupInfoMapStruct(groupId, endpoints, groupName, fabricIndex) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeyMapStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeyMapStruct.kt index 992486cd579cfe..96460161128bbe 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeyMapStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeyMapStruct.kt @@ -17,20 +17,17 @@ package matter.devicecontroller.cluster.structs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class GroupKeyManagementClusterGroupKeyMapStruct ( - val groupId: UShort, - val groupKeySetID: UShort, - val fabricIndex: UByte) { - override fun toString(): String = buildString { +class GroupKeyManagementClusterGroupKeyMapStruct( + val groupId: UShort, + val groupKeySetID: UShort, + val fabricIndex: UByte +) { + override fun toString(): String = buildString { append("GroupKeyManagementClusterGroupKeyMapStruct {\n") append("\tgroupId : $groupId\n") append("\tgroupKeySetID : $groupKeySetID\n") @@ -53,12 +50,12 @@ class GroupKeyManagementClusterGroupKeyMapStruct ( private const val TAG_GROUP_KEY_SET_I_D = 2 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : GroupKeyManagementClusterGroupKeyMapStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): GroupKeyManagementClusterGroupKeyMapStruct { tlvReader.enterStructure(tlvTag) val groupId = tlvReader.getUShort(ContextSpecificTag(TAG_GROUP_ID)) val groupKeySetID = tlvReader.getUShort(ContextSpecificTag(TAG_GROUP_KEY_SET_I_D)) val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() return GroupKeyManagementClusterGroupKeyMapStruct(groupId, groupKeySetID, fabricIndex) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeySetStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeySetStruct.kt index 8dd759dd8f9681..2c8d334a4cffd9 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeySetStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeySetStruct.kt @@ -17,25 +17,22 @@ package matter.devicecontroller.cluster.structs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class GroupKeyManagementClusterGroupKeySetStruct ( - val groupKeySetID: UShort, - val groupKeySecurityPolicy: UInt, - val epochKey0: ByteArray?, - val epochStartTime0: ULong?, - val epochKey1: ByteArray?, - val epochStartTime1: ULong?, - val epochKey2: ByteArray?, - val epochStartTime2: ULong?) { - override fun toString(): String = buildString { +class GroupKeyManagementClusterGroupKeySetStruct( + val groupKeySetID: UShort, + val groupKeySecurityPolicy: UInt, + val epochKey0: ByteArray?, + val epochStartTime0: ULong?, + val epochKey1: ByteArray?, + val epochStartTime1: ULong?, + val epochKey2: ByteArray?, + val epochStartTime2: ULong? +) { + override fun toString(): String = buildString { append("GroupKeyManagementClusterGroupKeySetStruct {\n") append("\tgroupKeySetID : $groupKeySetID\n") append("\tgroupKeySecurityPolicy : $groupKeySecurityPolicy\n") @@ -54,35 +51,35 @@ class GroupKeyManagementClusterGroupKeySetStruct ( put(ContextSpecificTag(TAG_GROUP_KEY_SET_I_D), groupKeySetID) put(ContextSpecificTag(TAG_GROUP_KEY_SECURITY_POLICY), groupKeySecurityPolicy) if (epochKey0 != null) { - put(ContextSpecificTag(TAG_EPOCH_KEY0), epochKey0) - } else { - putNull(ContextSpecificTag(TAG_EPOCH_KEY0)) - } + put(ContextSpecificTag(TAG_EPOCH_KEY0), epochKey0) + } else { + putNull(ContextSpecificTag(TAG_EPOCH_KEY0)) + } if (epochStartTime0 != null) { - put(ContextSpecificTag(TAG_EPOCH_START_TIME0), epochStartTime0) - } else { - putNull(ContextSpecificTag(TAG_EPOCH_START_TIME0)) - } + put(ContextSpecificTag(TAG_EPOCH_START_TIME0), epochStartTime0) + } else { + putNull(ContextSpecificTag(TAG_EPOCH_START_TIME0)) + } if (epochKey1 != null) { - put(ContextSpecificTag(TAG_EPOCH_KEY1), epochKey1) - } else { - putNull(ContextSpecificTag(TAG_EPOCH_KEY1)) - } + put(ContextSpecificTag(TAG_EPOCH_KEY1), epochKey1) + } else { + putNull(ContextSpecificTag(TAG_EPOCH_KEY1)) + } if (epochStartTime1 != null) { - put(ContextSpecificTag(TAG_EPOCH_START_TIME1), epochStartTime1) - } else { - putNull(ContextSpecificTag(TAG_EPOCH_START_TIME1)) - } + put(ContextSpecificTag(TAG_EPOCH_START_TIME1), epochStartTime1) + } else { + putNull(ContextSpecificTag(TAG_EPOCH_START_TIME1)) + } if (epochKey2 != null) { - put(ContextSpecificTag(TAG_EPOCH_KEY2), epochKey2) - } else { - putNull(ContextSpecificTag(TAG_EPOCH_KEY2)) - } + put(ContextSpecificTag(TAG_EPOCH_KEY2), epochKey2) + } else { + putNull(ContextSpecificTag(TAG_EPOCH_KEY2)) + } if (epochStartTime2 != null) { - put(ContextSpecificTag(TAG_EPOCH_START_TIME2), epochStartTime2) - } else { - putNull(ContextSpecificTag(TAG_EPOCH_START_TIME2)) - } + put(ContextSpecificTag(TAG_EPOCH_START_TIME2), epochStartTime2) + } else { + putNull(ContextSpecificTag(TAG_EPOCH_START_TIME2)) + } endStructure() } } @@ -97,50 +94,66 @@ class GroupKeyManagementClusterGroupKeySetStruct ( private const val TAG_EPOCH_KEY2 = 6 private const val TAG_EPOCH_START_TIME2 = 7 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : GroupKeyManagementClusterGroupKeySetStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): GroupKeyManagementClusterGroupKeySetStruct { tlvReader.enterStructure(tlvTag) val groupKeySetID = tlvReader.getUShort(ContextSpecificTag(TAG_GROUP_KEY_SET_I_D)) - val groupKeySecurityPolicy = tlvReader.getUInt(ContextSpecificTag(TAG_GROUP_KEY_SECURITY_POLICY)) - val epochKey0 = if (!tlvReader.isNull()) { - tlvReader.getByteArray(ContextSpecificTag(TAG_EPOCH_KEY0)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_KEY0)) - null - } - val epochStartTime0 = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_EPOCH_START_TIME0)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_START_TIME0)) - null - } - val epochKey1 = if (!tlvReader.isNull()) { - tlvReader.getByteArray(ContextSpecificTag(TAG_EPOCH_KEY1)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_KEY1)) - null - } - val epochStartTime1 = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_EPOCH_START_TIME1)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_START_TIME1)) - null - } - val epochKey2 = if (!tlvReader.isNull()) { - tlvReader.getByteArray(ContextSpecificTag(TAG_EPOCH_KEY2)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_KEY2)) - null - } - val epochStartTime2 = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_EPOCH_START_TIME2)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_START_TIME2)) - null - } - + val groupKeySecurityPolicy = + tlvReader.getUInt(ContextSpecificTag(TAG_GROUP_KEY_SECURITY_POLICY)) + val epochKey0 = + if (!tlvReader.isNull()) { + tlvReader.getByteArray(ContextSpecificTag(TAG_EPOCH_KEY0)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_KEY0)) + null + } + val epochStartTime0 = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_EPOCH_START_TIME0)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_START_TIME0)) + null + } + val epochKey1 = + if (!tlvReader.isNull()) { + tlvReader.getByteArray(ContextSpecificTag(TAG_EPOCH_KEY1)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_KEY1)) + null + } + val epochStartTime1 = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_EPOCH_START_TIME1)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_START_TIME1)) + null + } + val epochKey2 = + if (!tlvReader.isNull()) { + tlvReader.getByteArray(ContextSpecificTag(TAG_EPOCH_KEY2)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_KEY2)) + null + } + val epochStartTime2 = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_EPOCH_START_TIME2)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_START_TIME2)) + null + } + tlvReader.exitContainer() - return GroupKeyManagementClusterGroupKeySetStruct(groupKeySetID, groupKeySecurityPolicy, epochKey0, epochStartTime0, epochKey1, epochStartTime1, epochKey2, epochStartTime2) + return GroupKeyManagementClusterGroupKeySetStruct( + groupKeySetID, + groupKeySecurityPolicy, + epochKey0, + epochStartTime0, + epochKey1, + epochStartTime1, + epochKey2, + epochStartTime2 + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/HepaFilterMonitoringClusterReplacementProductStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/HepaFilterMonitoringClusterReplacementProductStruct.kt index 405dc1f6eeac0a..32ce0e6298f485 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/HepaFilterMonitoringClusterReplacementProductStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/HepaFilterMonitoringClusterReplacementProductStruct.kt @@ -17,19 +17,16 @@ package matter.devicecontroller.cluster.structs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class HepaFilterMonitoringClusterReplacementProductStruct ( - val productIdentifierType: UInt, - val productIdentifierValue: String) { - override fun toString(): String = buildString { +class HepaFilterMonitoringClusterReplacementProductStruct( + val productIdentifierType: UInt, + val productIdentifierValue: String +) { + override fun toString(): String = buildString { append("HepaFilterMonitoringClusterReplacementProductStruct {\n") append("\tproductIdentifierType : $productIdentifierType\n") append("\tproductIdentifierValue : $productIdentifierValue\n") @@ -49,14 +46,21 @@ class HepaFilterMonitoringClusterReplacementProductStruct ( private const val TAG_PRODUCT_IDENTIFIER_TYPE = 0 private const val TAG_PRODUCT_IDENTIFIER_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : HepaFilterMonitoringClusterReplacementProductStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): HepaFilterMonitoringClusterReplacementProductStruct { tlvReader.enterStructure(tlvTag) val productIdentifierType = tlvReader.getUInt(ContextSpecificTag(TAG_PRODUCT_IDENTIFIER_TYPE)) - val productIdentifierValue = tlvReader.getString(ContextSpecificTag(TAG_PRODUCT_IDENTIFIER_VALUE)) - + val productIdentifierValue = + tlvReader.getString(ContextSpecificTag(TAG_PRODUCT_IDENTIFIER_VALUE)) + tlvReader.exitContainer() - return HepaFilterMonitoringClusterReplacementProductStruct(productIdentifierType, productIdentifierValue) + return HepaFilterMonitoringClusterReplacementProductStruct( + productIdentifierType, + productIdentifierValue + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/IcdManagementClusterMonitoringRegistrationStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/IcdManagementClusterMonitoringRegistrationStruct.kt index 3486870490a56b..2a7a56c9a650dd 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/IcdManagementClusterMonitoringRegistrationStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/IcdManagementClusterMonitoringRegistrationStruct.kt @@ -17,20 +17,17 @@ package matter.devicecontroller.cluster.structs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class IcdManagementClusterMonitoringRegistrationStruct ( - val checkInNodeID: ULong, - val monitoredSubject: ULong, - val fabricIndex: UByte) { - override fun toString(): String = buildString { +class IcdManagementClusterMonitoringRegistrationStruct( + val checkInNodeID: ULong, + val monitoredSubject: ULong, + val fabricIndex: UByte +) { + override fun toString(): String = buildString { append("IcdManagementClusterMonitoringRegistrationStruct {\n") append("\tcheckInNodeID : $checkInNodeID\n") append("\tmonitoredSubject : $monitoredSubject\n") @@ -53,15 +50,22 @@ class IcdManagementClusterMonitoringRegistrationStruct ( private const val TAG_MONITORED_SUBJECT = 2 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : IcdManagementClusterMonitoringRegistrationStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): IcdManagementClusterMonitoringRegistrationStruct { tlvReader.enterStructure(tlvTag) val checkInNodeID = tlvReader.getULong(ContextSpecificTag(TAG_CHECK_IN_NODE_I_D)) val monitoredSubject = tlvReader.getULong(ContextSpecificTag(TAG_MONITORED_SUBJECT)) val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() - return IcdManagementClusterMonitoringRegistrationStruct(checkInNodeID, monitoredSubject, fabricIndex) + return IcdManagementClusterMonitoringRegistrationStruct( + checkInNodeID, + monitoredSubject, + fabricIndex + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/LaundryWasherModeClusterModeOptionStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/LaundryWasherModeClusterModeOptionStruct.kt index 76de0e987ec993..08988b2b2dfa27 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/LaundryWasherModeClusterModeOptionStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/LaundryWasherModeClusterModeOptionStruct.kt @@ -20,17 +20,15 @@ import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class LaundryWasherModeClusterModeOptionStruct ( - val label: String, - val mode: UByte, - val modeTags: List) { - override fun toString(): String = buildString { +class LaundryWasherModeClusterModeOptionStruct( + val label: String, + val mode: UByte, + val modeTags: List +) { + override fun toString(): String = buildString { append("LaundryWasherModeClusterModeOptionStruct {\n") append("\tlabel : $label\n") append("\tmode : $mode\n") @@ -57,18 +55,19 @@ class LaundryWasherModeClusterModeOptionStruct ( private const val TAG_MODE = 1 private const val TAG_MODE_TAGS = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : LaundryWasherModeClusterModeOptionStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): LaundryWasherModeClusterModeOptionStruct { tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val mode = tlvReader.getUByte(ContextSpecificTag(TAG_MODE)) - val modeTags = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) - while(!tlvReader.isEndOfContainer()) { - add(LaundryWasherModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val modeTags = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) + while (!tlvReader.isEndOfContainer()) { + add(LaundryWasherModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return LaundryWasherModeClusterModeOptionStruct(label, mode, modeTags) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/LaundryWasherModeClusterModeTagStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/LaundryWasherModeClusterModeTagStruct.kt index f61d5e4de724a5..0284a239b9b610 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/LaundryWasherModeClusterModeTagStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/LaundryWasherModeClusterModeTagStruct.kt @@ -16,20 +16,15 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class LaundryWasherModeClusterModeTagStruct ( - val mfgCode: Optional, - val value: UInt) { - override fun toString(): String = buildString { +class LaundryWasherModeClusterModeTagStruct(val mfgCode: Optional, val value: UInt) { + override fun toString(): String = buildString { append("LaundryWasherModeClusterModeTagStruct {\n") append("\tmfgCode : $mfgCode\n") append("\tvalue : $value\n") @@ -40,9 +35,9 @@ class LaundryWasherModeClusterModeTagStruct ( tlvWriter.apply { startStructure(tlvTag) if (mfgCode.isPresent) { - val optmfgCode = mfgCode.get() - put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) - } + val optmfgCode = mfgCode.get() + put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) + } put(ContextSpecificTag(TAG_VALUE), value) endStructure() } @@ -52,15 +47,16 @@ class LaundryWasherModeClusterModeTagStruct ( private const val TAG_MFG_CODE = 0 private const val TAG_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : LaundryWasherModeClusterModeTagStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): LaundryWasherModeClusterModeTagStruct { tlvReader.enterStructure(tlvTag) - val mfgCode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { - Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE))) - } else { - Optional.empty() - } + val mfgCode = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { + Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE))) + } else { + Optional.empty() + } val value = tlvReader.getUInt(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return LaundryWasherModeClusterModeTagStruct(mfgCode, value) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MediaInputClusterInputInfoStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MediaInputClusterInputInfoStruct.kt index d72dc62aebe79e..ef3a028b680b8a 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MediaInputClusterInputInfoStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MediaInputClusterInputInfoStruct.kt @@ -17,21 +17,18 @@ package matter.devicecontroller.cluster.structs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class MediaInputClusterInputInfoStruct ( - val index: UByte, - val inputType: UInt, - val name: String, - val description: String) { - override fun toString(): String = buildString { +class MediaInputClusterInputInfoStruct( + val index: UByte, + val inputType: UInt, + val name: String, + val description: String +) { + override fun toString(): String = buildString { append("MediaInputClusterInputInfoStruct {\n") append("\tindex : $index\n") append("\tinputType : $inputType\n") @@ -57,13 +54,13 @@ class MediaInputClusterInputInfoStruct ( private const val TAG_NAME = 2 private const val TAG_DESCRIPTION = 3 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : MediaInputClusterInputInfoStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): MediaInputClusterInputInfoStruct { tlvReader.enterStructure(tlvTag) val index = tlvReader.getUByte(ContextSpecificTag(TAG_INDEX)) val inputType = tlvReader.getUInt(ContextSpecificTag(TAG_INPUT_TYPE)) val name = tlvReader.getString(ContextSpecificTag(TAG_NAME)) val description = tlvReader.getString(ContextSpecificTag(TAG_DESCRIPTION)) - + tlvReader.exitContainer() return MediaInputClusterInputInfoStruct(index, inputType, name, description) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MediaPlaybackClusterPlaybackPositionStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MediaPlaybackClusterPlaybackPositionStruct.kt index 4b0b17eba82fc6..3052f1984c2412 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MediaPlaybackClusterPlaybackPositionStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MediaPlaybackClusterPlaybackPositionStruct.kt @@ -17,19 +17,13 @@ package matter.devicecontroller.cluster.structs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class MediaPlaybackClusterPlaybackPositionStruct ( - val updatedAt: ULong, - val position: ULong?) { - override fun toString(): String = buildString { +class MediaPlaybackClusterPlaybackPositionStruct(val updatedAt: ULong, val position: ULong?) { + override fun toString(): String = buildString { append("MediaPlaybackClusterPlaybackPositionStruct {\n") append("\tupdatedAt : $updatedAt\n") append("\tposition : $position\n") @@ -41,10 +35,10 @@ class MediaPlaybackClusterPlaybackPositionStruct ( startStructure(tlvTag) put(ContextSpecificTag(TAG_UPDATED_AT), updatedAt) if (position != null) { - put(ContextSpecificTag(TAG_POSITION), position) - } else { - putNull(ContextSpecificTag(TAG_POSITION)) - } + put(ContextSpecificTag(TAG_POSITION), position) + } else { + putNull(ContextSpecificTag(TAG_POSITION)) + } endStructure() } } @@ -53,16 +47,17 @@ class MediaPlaybackClusterPlaybackPositionStruct ( private const val TAG_UPDATED_AT = 0 private const val TAG_POSITION = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : MediaPlaybackClusterPlaybackPositionStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): MediaPlaybackClusterPlaybackPositionStruct { tlvReader.enterStructure(tlvTag) val updatedAt = tlvReader.getULong(ContextSpecificTag(TAG_UPDATED_AT)) - val position = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_POSITION)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_POSITION)) - null - } - + val position = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_POSITION)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_POSITION)) + null + } + tlvReader.exitContainer() return MediaPlaybackClusterPlaybackPositionStruct(updatedAt, position) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeOptionStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeOptionStruct.kt index f7ba0988caa5cf..481ae34118a03b 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeOptionStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeOptionStruct.kt @@ -20,17 +20,15 @@ import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class MicrowaveOvenModeClusterModeOptionStruct ( - val label: String, - val mode: UByte, - val modeTags: List) { - override fun toString(): String = buildString { +class MicrowaveOvenModeClusterModeOptionStruct( + val label: String, + val mode: UByte, + val modeTags: List +) { + override fun toString(): String = buildString { append("MicrowaveOvenModeClusterModeOptionStruct {\n") append("\tlabel : $label\n") append("\tmode : $mode\n") @@ -57,18 +55,19 @@ class MicrowaveOvenModeClusterModeOptionStruct ( private const val TAG_MODE = 1 private const val TAG_MODE_TAGS = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : MicrowaveOvenModeClusterModeOptionStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): MicrowaveOvenModeClusterModeOptionStruct { tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val mode = tlvReader.getUByte(ContextSpecificTag(TAG_MODE)) - val modeTags = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) - while(!tlvReader.isEndOfContainer()) { - add(MicrowaveOvenModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val modeTags = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) + while (!tlvReader.isEndOfContainer()) { + add(MicrowaveOvenModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return MicrowaveOvenModeClusterModeOptionStruct(label, mode, modeTags) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeTagStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeTagStruct.kt index f8b81bc48faac0..d0d088a1d77b42 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeTagStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeTagStruct.kt @@ -16,20 +16,15 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class MicrowaveOvenModeClusterModeTagStruct ( - val mfgCode: Optional, - val value: UInt) { - override fun toString(): String = buildString { +class MicrowaveOvenModeClusterModeTagStruct(val mfgCode: Optional, val value: UInt) { + override fun toString(): String = buildString { append("MicrowaveOvenModeClusterModeTagStruct {\n") append("\tmfgCode : $mfgCode\n") append("\tvalue : $value\n") @@ -40,9 +35,9 @@ class MicrowaveOvenModeClusterModeTagStruct ( tlvWriter.apply { startStructure(tlvTag) if (mfgCode.isPresent) { - val optmfgCode = mfgCode.get() - put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) - } + val optmfgCode = mfgCode.get() + put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) + } put(ContextSpecificTag(TAG_VALUE), value) endStructure() } @@ -52,15 +47,16 @@ class MicrowaveOvenModeClusterModeTagStruct ( private const val TAG_MFG_CODE = 0 private const val TAG_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : MicrowaveOvenModeClusterModeTagStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): MicrowaveOvenModeClusterModeTagStruct { tlvReader.enterStructure(tlvTag) - val mfgCode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { - Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE))) - } else { - Optional.empty() - } + val mfgCode = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { + Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE))) + } else { + Optional.empty() + } val value = tlvReader.getUInt(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return MicrowaveOvenModeClusterModeTagStruct(mfgCode, value) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ModeSelectClusterModeOptionStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ModeSelectClusterModeOptionStruct.kt index 238aa7936f43d2..8cb331e77ade86 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ModeSelectClusterModeOptionStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ModeSelectClusterModeOptionStruct.kt @@ -20,17 +20,15 @@ import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ModeSelectClusterModeOptionStruct ( - val label: String, - val mode: UByte, - val semanticTags: List) { - override fun toString(): String = buildString { +class ModeSelectClusterModeOptionStruct( + val label: String, + val mode: UByte, + val semanticTags: List +) { + override fun toString(): String = buildString { append("ModeSelectClusterModeOptionStruct {\n") append("\tlabel : $label\n") append("\tmode : $mode\n") @@ -57,18 +55,19 @@ class ModeSelectClusterModeOptionStruct ( private const val TAG_MODE = 1 private const val TAG_SEMANTIC_TAGS = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ModeSelectClusterModeOptionStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ModeSelectClusterModeOptionStruct { tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val mode = tlvReader.getUByte(ContextSpecificTag(TAG_MODE)) - val semanticTags = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_SEMANTIC_TAGS)) - while(!tlvReader.isEndOfContainer()) { - add(ModeSelectClusterSemanticTagStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val semanticTags = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_SEMANTIC_TAGS)) + while (!tlvReader.isEndOfContainer()) { + add(ModeSelectClusterSemanticTagStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return ModeSelectClusterModeOptionStruct(label, mode, semanticTags) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ModeSelectClusterSemanticTagStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ModeSelectClusterSemanticTagStruct.kt index 9dba7c6dc0ca4e..5b6d1ae0fb71f0 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ModeSelectClusterSemanticTagStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ModeSelectClusterSemanticTagStruct.kt @@ -17,19 +17,13 @@ package matter.devicecontroller.cluster.structs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ModeSelectClusterSemanticTagStruct ( - val mfgCode: UShort, - val value: UInt) { - override fun toString(): String = buildString { +class ModeSelectClusterSemanticTagStruct(val mfgCode: UShort, val value: UInt) { + override fun toString(): String = buildString { append("ModeSelectClusterSemanticTagStruct {\n") append("\tmfgCode : $mfgCode\n") append("\tvalue : $value\n") @@ -49,11 +43,11 @@ class ModeSelectClusterSemanticTagStruct ( private const val TAG_MFG_CODE = 0 private const val TAG_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ModeSelectClusterSemanticTagStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ModeSelectClusterSemanticTagStruct { tlvReader.enterStructure(tlvTag) val mfgCode = tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE)) val value = tlvReader.getUInt(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return ModeSelectClusterSemanticTagStruct(mfgCode, value) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/NetworkCommissioningClusterNetworkInfoStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/NetworkCommissioningClusterNetworkInfoStruct.kt index f97cd74c912353..856ed9943059b0 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/NetworkCommissioningClusterNetworkInfoStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/NetworkCommissioningClusterNetworkInfoStruct.kt @@ -17,19 +17,16 @@ package matter.devicecontroller.cluster.structs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class NetworkCommissioningClusterNetworkInfoStruct ( - val networkID: ByteArray, - val connected: Boolean) { - override fun toString(): String = buildString { +class NetworkCommissioningClusterNetworkInfoStruct( + val networkID: ByteArray, + val connected: Boolean +) { + override fun toString(): String = buildString { append("NetworkCommissioningClusterNetworkInfoStruct {\n") append("\tnetworkID : $networkID\n") append("\tconnected : $connected\n") @@ -49,11 +46,11 @@ class NetworkCommissioningClusterNetworkInfoStruct ( private const val TAG_NETWORK_I_D = 0 private const val TAG_CONNECTED = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : NetworkCommissioningClusterNetworkInfoStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): NetworkCommissioningClusterNetworkInfoStruct { tlvReader.enterStructure(tlvTag) val networkID = tlvReader.getByteArray(ContextSpecificTag(TAG_NETWORK_I_D)) val connected = tlvReader.getBoolean(ContextSpecificTag(TAG_CONNECTED)) - + tlvReader.exitContainer() return NetworkCommissioningClusterNetworkInfoStruct(networkID, connected) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/NetworkCommissioningClusterThreadInterfaceScanResultStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/NetworkCommissioningClusterThreadInterfaceScanResultStruct.kt index 04ba5adfc046a2..5057fa34bc1cbe 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/NetworkCommissioningClusterThreadInterfaceScanResultStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/NetworkCommissioningClusterThreadInterfaceScanResultStruct.kt @@ -17,25 +17,22 @@ package matter.devicecontroller.cluster.structs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class NetworkCommissioningClusterThreadInterfaceScanResultStruct ( - val panId: UShort, - val extendedPanId: ULong, - val networkName: String, - val channel: UShort, - val version: UByte, - val extendedAddress: ByteArray, - val rssi: Byte, - val lqi: UByte) { - override fun toString(): String = buildString { +class NetworkCommissioningClusterThreadInterfaceScanResultStruct( + val panId: UShort, + val extendedPanId: ULong, + val networkName: String, + val channel: UShort, + val version: UByte, + val extendedAddress: ByteArray, + val rssi: Byte, + val lqi: UByte +) { + override fun toString(): String = buildString { append("NetworkCommissioningClusterThreadInterfaceScanResultStruct {\n") append("\tpanId : $panId\n") append("\textendedPanId : $extendedPanId\n") @@ -73,7 +70,10 @@ class NetworkCommissioningClusterThreadInterfaceScanResultStruct ( private const val TAG_RSSI = 6 private const val TAG_LQI = 7 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : NetworkCommissioningClusterThreadInterfaceScanResultStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): NetworkCommissioningClusterThreadInterfaceScanResultStruct { tlvReader.enterStructure(tlvTag) val panId = tlvReader.getUShort(ContextSpecificTag(TAG_PAN_ID)) val extendedPanId = tlvReader.getULong(ContextSpecificTag(TAG_EXTENDED_PAN_ID)) @@ -83,10 +83,19 @@ class NetworkCommissioningClusterThreadInterfaceScanResultStruct ( val extendedAddress = tlvReader.getByteArray(ContextSpecificTag(TAG_EXTENDED_ADDRESS)) val rssi = tlvReader.getByte(ContextSpecificTag(TAG_RSSI)) val lqi = tlvReader.getUByte(ContextSpecificTag(TAG_LQI)) - + tlvReader.exitContainer() - return NetworkCommissioningClusterThreadInterfaceScanResultStruct(panId, extendedPanId, networkName, channel, version, extendedAddress, rssi, lqi) + return NetworkCommissioningClusterThreadInterfaceScanResultStruct( + panId, + extendedPanId, + networkName, + channel, + version, + extendedAddress, + rssi, + lqi + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/NetworkCommissioningClusterWiFiInterfaceScanResultStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/NetworkCommissioningClusterWiFiInterfaceScanResultStruct.kt index 3983c8c7352ecf..3d2c8ea65a32bd 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/NetworkCommissioningClusterWiFiInterfaceScanResultStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/NetworkCommissioningClusterWiFiInterfaceScanResultStruct.kt @@ -17,23 +17,20 @@ package matter.devicecontroller.cluster.structs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class NetworkCommissioningClusterWiFiInterfaceScanResultStruct ( - val security: UInt, - val ssid: ByteArray, - val bssid: ByteArray, - val channel: UShort, - val wiFiBand: UInt, - val rssi: Byte) { - override fun toString(): String = buildString { +class NetworkCommissioningClusterWiFiInterfaceScanResultStruct( + val security: UInt, + val ssid: ByteArray, + val bssid: ByteArray, + val channel: UShort, + val wiFiBand: UInt, + val rssi: Byte +) { + override fun toString(): String = buildString { append("NetworkCommissioningClusterWiFiInterfaceScanResultStruct {\n") append("\tsecurity : $security\n") append("\tssid : $ssid\n") @@ -65,7 +62,10 @@ class NetworkCommissioningClusterWiFiInterfaceScanResultStruct ( private const val TAG_WI_FI_BAND = 4 private const val TAG_RSSI = 5 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : NetworkCommissioningClusterWiFiInterfaceScanResultStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): NetworkCommissioningClusterWiFiInterfaceScanResultStruct { tlvReader.enterStructure(tlvTag) val security = tlvReader.getUInt(ContextSpecificTag(TAG_SECURITY)) val ssid = tlvReader.getByteArray(ContextSpecificTag(TAG_SSID)) @@ -73,10 +73,17 @@ class NetworkCommissioningClusterWiFiInterfaceScanResultStruct ( val channel = tlvReader.getUShort(ContextSpecificTag(TAG_CHANNEL)) val wiFiBand = tlvReader.getUInt(ContextSpecificTag(TAG_WI_FI_BAND)) val rssi = tlvReader.getByte(ContextSpecificTag(TAG_RSSI)) - + tlvReader.exitContainer() - return NetworkCommissioningClusterWiFiInterfaceScanResultStruct(security, ssid, bssid, channel, wiFiBand, rssi) + return NetworkCommissioningClusterWiFiInterfaceScanResultStruct( + security, + ssid, + bssid, + channel, + wiFiBand, + rssi + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalCredentialsClusterFabricDescriptorStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalCredentialsClusterFabricDescriptorStruct.kt index 2d704861660cab..66de75d6e3efc1 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalCredentialsClusterFabricDescriptorStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalCredentialsClusterFabricDescriptorStruct.kt @@ -17,23 +17,20 @@ package matter.devicecontroller.cluster.structs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class OperationalCredentialsClusterFabricDescriptorStruct ( - val rootPublicKey: ByteArray, - val vendorID: UShort, - val fabricID: ULong, - val nodeID: ULong, - val label: String, - val fabricIndex: UByte) { - override fun toString(): String = buildString { +class OperationalCredentialsClusterFabricDescriptorStruct( + val rootPublicKey: ByteArray, + val vendorID: UShort, + val fabricID: ULong, + val nodeID: ULong, + val label: String, + val fabricIndex: UByte +) { + override fun toString(): String = buildString { append("OperationalCredentialsClusterFabricDescriptorStruct {\n") append("\trootPublicKey : $rootPublicKey\n") append("\tvendorID : $vendorID\n") @@ -65,7 +62,10 @@ class OperationalCredentialsClusterFabricDescriptorStruct ( private const val TAG_LABEL = 5 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OperationalCredentialsClusterFabricDescriptorStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): OperationalCredentialsClusterFabricDescriptorStruct { tlvReader.enterStructure(tlvTag) val rootPublicKey = tlvReader.getByteArray(ContextSpecificTag(TAG_ROOT_PUBLIC_KEY)) val vendorID = tlvReader.getUShort(ContextSpecificTag(TAG_VENDOR_I_D)) @@ -73,10 +73,17 @@ class OperationalCredentialsClusterFabricDescriptorStruct ( val nodeID = tlvReader.getULong(ContextSpecificTag(TAG_NODE_I_D)) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() - return OperationalCredentialsClusterFabricDescriptorStruct(rootPublicKey, vendorID, fabricID, nodeID, label, fabricIndex) + return OperationalCredentialsClusterFabricDescriptorStruct( + rootPublicKey, + vendorID, + fabricID, + nodeID, + label, + fabricIndex + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalCredentialsClusterNOCStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalCredentialsClusterNOCStruct.kt index 7e3b7f51f23ce1..ab86611164d93d 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalCredentialsClusterNOCStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalCredentialsClusterNOCStruct.kt @@ -17,20 +17,17 @@ package matter.devicecontroller.cluster.structs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class OperationalCredentialsClusterNOCStruct ( - val noc: ByteArray, - val icac: ByteArray?, - val fabricIndex: UByte) { - override fun toString(): String = buildString { +class OperationalCredentialsClusterNOCStruct( + val noc: ByteArray, + val icac: ByteArray?, + val fabricIndex: UByte +) { + override fun toString(): String = buildString { append("OperationalCredentialsClusterNOCStruct {\n") append("\tnoc : $noc\n") append("\ticac : $icac\n") @@ -43,10 +40,10 @@ class OperationalCredentialsClusterNOCStruct ( startStructure(tlvTag) put(ContextSpecificTag(TAG_NOC), noc) if (icac != null) { - put(ContextSpecificTag(TAG_ICAC), icac) - } else { - putNull(ContextSpecificTag(TAG_ICAC)) - } + put(ContextSpecificTag(TAG_ICAC), icac) + } else { + putNull(ContextSpecificTag(TAG_ICAC)) + } put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) endStructure() } @@ -57,17 +54,18 @@ class OperationalCredentialsClusterNOCStruct ( private const val TAG_ICAC = 2 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OperationalCredentialsClusterNOCStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): OperationalCredentialsClusterNOCStruct { tlvReader.enterStructure(tlvTag) val noc = tlvReader.getByteArray(ContextSpecificTag(TAG_NOC)) - val icac = if (!tlvReader.isNull()) { - tlvReader.getByteArray(ContextSpecificTag(TAG_ICAC)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_ICAC)) - null - } + val icac = + if (!tlvReader.isNull()) { + tlvReader.getByteArray(ContextSpecificTag(TAG_ICAC)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_ICAC)) + null + } val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() return OperationalCredentialsClusterNOCStruct(noc, icac, fabricIndex) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalStateClusterErrorStateStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalStateClusterErrorStateStruct.kt index 2451f848646f45..f49646d015d186 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalStateClusterErrorStateStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalStateClusterErrorStateStruct.kt @@ -16,21 +16,19 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class OperationalStateClusterErrorStateStruct ( - val errorStateID: UInt, - val errorStateLabel: Optional, - val errorStateDetails: Optional) { - override fun toString(): String = buildString { +class OperationalStateClusterErrorStateStruct( + val errorStateID: UInt, + val errorStateLabel: Optional, + val errorStateDetails: Optional +) { + override fun toString(): String = buildString { append("OperationalStateClusterErrorStateStruct {\n") append("\terrorStateID : $errorStateID\n") append("\terrorStateLabel : $errorStateLabel\n") @@ -43,13 +41,13 @@ class OperationalStateClusterErrorStateStruct ( startStructure(tlvTag) put(ContextSpecificTag(TAG_ERROR_STATE_I_D), errorStateID) if (errorStateLabel.isPresent) { - val opterrorStateLabel = errorStateLabel.get() - put(ContextSpecificTag(TAG_ERROR_STATE_LABEL), opterrorStateLabel) - } + val opterrorStateLabel = errorStateLabel.get() + put(ContextSpecificTag(TAG_ERROR_STATE_LABEL), opterrorStateLabel) + } if (errorStateDetails.isPresent) { - val opterrorStateDetails = errorStateDetails.get() - put(ContextSpecificTag(TAG_ERROR_STATE_DETAILS), opterrorStateDetails) - } + val opterrorStateDetails = errorStateDetails.get() + put(ContextSpecificTag(TAG_ERROR_STATE_DETAILS), opterrorStateDetails) + } endStructure() } } @@ -59,23 +57,29 @@ class OperationalStateClusterErrorStateStruct ( private const val TAG_ERROR_STATE_LABEL = 1 private const val TAG_ERROR_STATE_DETAILS = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OperationalStateClusterErrorStateStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): OperationalStateClusterErrorStateStruct { tlvReader.enterStructure(tlvTag) val errorStateID = tlvReader.getUInt(ContextSpecificTag(TAG_ERROR_STATE_I_D)) - val errorStateLabel = if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) - } else { - Optional.empty() - } - val errorStateDetails = if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) - } else { - Optional.empty() - } - + val errorStateLabel = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) + } else { + Optional.empty() + } + val errorStateDetails = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return OperationalStateClusterErrorStateStruct(errorStateID, errorStateLabel, errorStateDetails) + return OperationalStateClusterErrorStateStruct( + errorStateID, + errorStateLabel, + errorStateDetails + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalStateClusterOperationalStateStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalStateClusterOperationalStateStruct.kt index 9979d52ecec403..238035d38a060e 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalStateClusterOperationalStateStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalStateClusterOperationalStateStruct.kt @@ -16,20 +16,18 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class OperationalStateClusterOperationalStateStruct ( - val operationalStateID: UInt, - val operationalStateLabel: Optional) { - override fun toString(): String = buildString { +class OperationalStateClusterOperationalStateStruct( + val operationalStateID: UInt, + val operationalStateLabel: Optional +) { + override fun toString(): String = buildString { append("OperationalStateClusterOperationalStateStruct {\n") append("\toperationalStateID : $operationalStateID\n") append("\toperationalStateLabel : $operationalStateLabel\n") @@ -41,9 +39,9 @@ class OperationalStateClusterOperationalStateStruct ( startStructure(tlvTag) put(ContextSpecificTag(TAG_OPERATIONAL_STATE_I_D), operationalStateID) if (operationalStateLabel.isPresent) { - val optoperationalStateLabel = operationalStateLabel.get() - put(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL), optoperationalStateLabel) - } + val optoperationalStateLabel = operationalStateLabel.get() + put(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL), optoperationalStateLabel) + } endStructure() } } @@ -52,18 +50,22 @@ class OperationalStateClusterOperationalStateStruct ( private const val TAG_OPERATIONAL_STATE_I_D = 0 private const val TAG_OPERATIONAL_STATE_LABEL = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OperationalStateClusterOperationalStateStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): OperationalStateClusterOperationalStateStruct { tlvReader.enterStructure(tlvTag) val operationalStateID = tlvReader.getUInt(ContextSpecificTag(TAG_OPERATIONAL_STATE_I_D)) - val operationalStateLabel = if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) - } else { - Optional.empty() - } - + val operationalStateLabel = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return OperationalStateClusterOperationalStateStruct(operationalStateID, operationalStateLabel) + return OperationalStateClusterOperationalStateStruct( + operationalStateID, + operationalStateLabel + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OtaSoftwareUpdateRequestorClusterProviderLocation.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OtaSoftwareUpdateRequestorClusterProviderLocation.kt index 56ab4b1347d7ad..1fe882a3da1674 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OtaSoftwareUpdateRequestorClusterProviderLocation.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OtaSoftwareUpdateRequestorClusterProviderLocation.kt @@ -17,20 +17,17 @@ package matter.devicecontroller.cluster.structs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class OtaSoftwareUpdateRequestorClusterProviderLocation ( - val providerNodeID: ULong, - val endpoint: UShort, - val fabricIndex: UByte) { - override fun toString(): String = buildString { +class OtaSoftwareUpdateRequestorClusterProviderLocation( + val providerNodeID: ULong, + val endpoint: UShort, + val fabricIndex: UByte +) { + override fun toString(): String = buildString { append("OtaSoftwareUpdateRequestorClusterProviderLocation {\n") append("\tproviderNodeID : $providerNodeID\n") append("\tendpoint : $endpoint\n") @@ -53,15 +50,22 @@ class OtaSoftwareUpdateRequestorClusterProviderLocation ( private const val TAG_ENDPOINT = 2 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OtaSoftwareUpdateRequestorClusterProviderLocation { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): OtaSoftwareUpdateRequestorClusterProviderLocation { tlvReader.enterStructure(tlvTag) val providerNodeID = tlvReader.getULong(ContextSpecificTag(TAG_PROVIDER_NODE_I_D)) val endpoint = tlvReader.getUShort(ContextSpecificTag(TAG_ENDPOINT)) val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() - return OtaSoftwareUpdateRequestorClusterProviderLocation(providerNodeID, endpoint, fabricIndex) + return OtaSoftwareUpdateRequestorClusterProviderLocation( + providerNodeID, + endpoint, + fabricIndex + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/PowerSourceClusterBatChargeFaultChangeType.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/PowerSourceClusterBatChargeFaultChangeType.kt index 3b560e961bf91d..b052cd4bd801ed 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/PowerSourceClusterBatChargeFaultChangeType.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/PowerSourceClusterBatChargeFaultChangeType.kt @@ -20,16 +20,14 @@ import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class PowerSourceClusterBatChargeFaultChangeType ( - val current: List, - val previous: List) { - override fun toString(): String = buildString { +class PowerSourceClusterBatChargeFaultChangeType( + val current: List, + val previous: List +) { + override fun toString(): String = buildString { append("PowerSourceClusterBatChargeFaultChangeType {\n") append("\tcurrent : $current\n") append("\tprevious : $previous\n") @@ -57,23 +55,25 @@ class PowerSourceClusterBatChargeFaultChangeType ( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : PowerSourceClusterBatChargeFaultChangeType { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): PowerSourceClusterBatChargeFaultChangeType { tlvReader.enterStructure(tlvTag) - val current = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val previous = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val current = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val previous = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return PowerSourceClusterBatChargeFaultChangeType(current, previous) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/PowerSourceClusterBatFaultChangeType.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/PowerSourceClusterBatFaultChangeType.kt index 802d2ac6633eb9..e6ed2093eea21a 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/PowerSourceClusterBatFaultChangeType.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/PowerSourceClusterBatFaultChangeType.kt @@ -20,16 +20,11 @@ import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class PowerSourceClusterBatFaultChangeType ( - val current: List, - val previous: List) { - override fun toString(): String = buildString { +class PowerSourceClusterBatFaultChangeType(val current: List, val previous: List) { + override fun toString(): String = buildString { append("PowerSourceClusterBatFaultChangeType {\n") append("\tcurrent : $current\n") append("\tprevious : $previous\n") @@ -57,23 +52,25 @@ class PowerSourceClusterBatFaultChangeType ( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : PowerSourceClusterBatFaultChangeType { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): PowerSourceClusterBatFaultChangeType { tlvReader.enterStructure(tlvTag) - val current = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val previous = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val current = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val previous = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return PowerSourceClusterBatFaultChangeType(current, previous) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/PowerSourceClusterWiredFaultChangeType.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/PowerSourceClusterWiredFaultChangeType.kt index fe3bed36789df3..e2849017a263c9 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/PowerSourceClusterWiredFaultChangeType.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/PowerSourceClusterWiredFaultChangeType.kt @@ -20,16 +20,11 @@ import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class PowerSourceClusterWiredFaultChangeType ( - val current: List, - val previous: List) { - override fun toString(): String = buildString { +class PowerSourceClusterWiredFaultChangeType(val current: List, val previous: List) { + override fun toString(): String = buildString { append("PowerSourceClusterWiredFaultChangeType {\n") append("\tcurrent : $current\n") append("\tprevious : $previous\n") @@ -57,23 +52,25 @@ class PowerSourceClusterWiredFaultChangeType ( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : PowerSourceClusterWiredFaultChangeType { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): PowerSourceClusterWiredFaultChangeType { tlvReader.enterStructure(tlvTag) - val current = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val previous = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val current = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val previous = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return PowerSourceClusterWiredFaultChangeType(current, previous) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct.kt index b0fbe5df7976a0..41c4276b72942a 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct.kt @@ -20,17 +20,15 @@ import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct ( - val label: String, - val mode: UByte, - val modeTags: List) { - override fun toString(): String = buildString { +class RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct( + val label: String, + val mode: UByte, + val modeTags: List +) { + override fun toString(): String = buildString { append("RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct {\n") append("\tlabel : $label\n") append("\tmode : $mode\n") @@ -57,21 +55,34 @@ class RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct ( private const val TAG_MODE = 1 private const val TAG_MODE_TAGS = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct { tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val mode = tlvReader.getUByte(ContextSpecificTag(TAG_MODE)) - val modeTags = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) - while(!tlvReader.isEndOfContainer()) { - add(RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val modeTags = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) + while (!tlvReader.isEndOfContainer()) { + add( + RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct.fromTlv( + AnonymousTag, + tlvReader + ) + ) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() - return RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct(label, mode, modeTags) + return RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct( + label, + mode, + modeTags + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct.kt index 72032d47a817c2..66ac75104984a2 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct.kt @@ -16,20 +16,18 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct ( - val mfgCode: Optional, - val value: UInt) { - override fun toString(): String = buildString { +class RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct( + val mfgCode: Optional, + val value: UInt +) { + override fun toString(): String = buildString { append("RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct {\n") append("\tmfgCode : $mfgCode\n") append("\tvalue : $value\n") @@ -40,9 +38,9 @@ class RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct ( tlvWriter.apply { startStructure(tlvTag) if (mfgCode.isPresent) { - val optmfgCode = mfgCode.get() - put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) - } + val optmfgCode = mfgCode.get() + put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) + } put(ContextSpecificTag(TAG_VALUE), value) endStructure() } @@ -52,15 +50,19 @@ class RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct ( private const val TAG_MFG_CODE = 0 private const val TAG_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct { tlvReader.enterStructure(tlvTag) - val mfgCode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { - Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE))) - } else { - Optional.empty() - } + val mfgCode = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { + Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE))) + } else { + Optional.empty() + } val value = tlvReader.getUInt(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct(mfgCode, value) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcCleanModeClusterModeOptionStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcCleanModeClusterModeOptionStruct.kt index afaf6647718b60..b718ee935b7990 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcCleanModeClusterModeOptionStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcCleanModeClusterModeOptionStruct.kt @@ -20,17 +20,15 @@ import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class RvcCleanModeClusterModeOptionStruct ( - val label: String, - val mode: UByte, - val modeTags: List) { - override fun toString(): String = buildString { +class RvcCleanModeClusterModeOptionStruct( + val label: String, + val mode: UByte, + val modeTags: List +) { + override fun toString(): String = buildString { append("RvcCleanModeClusterModeOptionStruct {\n") append("\tlabel : $label\n") append("\tmode : $mode\n") @@ -57,18 +55,19 @@ class RvcCleanModeClusterModeOptionStruct ( private const val TAG_MODE = 1 private const val TAG_MODE_TAGS = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RvcCleanModeClusterModeOptionStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): RvcCleanModeClusterModeOptionStruct { tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val mode = tlvReader.getUByte(ContextSpecificTag(TAG_MODE)) - val modeTags = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) - while(!tlvReader.isEndOfContainer()) { - add(RvcCleanModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val modeTags = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) + while (!tlvReader.isEndOfContainer()) { + add(RvcCleanModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return RvcCleanModeClusterModeOptionStruct(label, mode, modeTags) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcCleanModeClusterModeTagStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcCleanModeClusterModeTagStruct.kt index e9192582a031a7..b6670bdcd7b955 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcCleanModeClusterModeTagStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcCleanModeClusterModeTagStruct.kt @@ -16,20 +16,15 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class RvcCleanModeClusterModeTagStruct ( - val mfgCode: Optional, - val value: UInt) { - override fun toString(): String = buildString { +class RvcCleanModeClusterModeTagStruct(val mfgCode: Optional, val value: UInt) { + override fun toString(): String = buildString { append("RvcCleanModeClusterModeTagStruct {\n") append("\tmfgCode : $mfgCode\n") append("\tvalue : $value\n") @@ -40,9 +35,9 @@ class RvcCleanModeClusterModeTagStruct ( tlvWriter.apply { startStructure(tlvTag) if (mfgCode.isPresent) { - val optmfgCode = mfgCode.get() - put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) - } + val optmfgCode = mfgCode.get() + put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) + } put(ContextSpecificTag(TAG_VALUE), value) endStructure() } @@ -52,15 +47,16 @@ class RvcCleanModeClusterModeTagStruct ( private const val TAG_MFG_CODE = 0 private const val TAG_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RvcCleanModeClusterModeTagStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): RvcCleanModeClusterModeTagStruct { tlvReader.enterStructure(tlvTag) - val mfgCode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { - Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE))) - } else { - Optional.empty() - } + val mfgCode = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { + Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE))) + } else { + Optional.empty() + } val value = tlvReader.getUInt(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return RvcCleanModeClusterModeTagStruct(mfgCode, value) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcOperationalStateClusterErrorStateStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcOperationalStateClusterErrorStateStruct.kt index 87f1c02f6b2ab2..4907820103b662 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcOperationalStateClusterErrorStateStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcOperationalStateClusterErrorStateStruct.kt @@ -16,21 +16,19 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class RvcOperationalStateClusterErrorStateStruct ( - val errorStateID: UInt, - val errorStateLabel: Optional, - val errorStateDetails: Optional) { - override fun toString(): String = buildString { +class RvcOperationalStateClusterErrorStateStruct( + val errorStateID: UInt, + val errorStateLabel: Optional, + val errorStateDetails: Optional +) { + override fun toString(): String = buildString { append("RvcOperationalStateClusterErrorStateStruct {\n") append("\terrorStateID : $errorStateID\n") append("\terrorStateLabel : $errorStateLabel\n") @@ -43,13 +41,13 @@ class RvcOperationalStateClusterErrorStateStruct ( startStructure(tlvTag) put(ContextSpecificTag(TAG_ERROR_STATE_I_D), errorStateID) if (errorStateLabel.isPresent) { - val opterrorStateLabel = errorStateLabel.get() - put(ContextSpecificTag(TAG_ERROR_STATE_LABEL), opterrorStateLabel) - } + val opterrorStateLabel = errorStateLabel.get() + put(ContextSpecificTag(TAG_ERROR_STATE_LABEL), opterrorStateLabel) + } if (errorStateDetails.isPresent) { - val opterrorStateDetails = errorStateDetails.get() - put(ContextSpecificTag(TAG_ERROR_STATE_DETAILS), opterrorStateDetails) - } + val opterrorStateDetails = errorStateDetails.get() + put(ContextSpecificTag(TAG_ERROR_STATE_DETAILS), opterrorStateDetails) + } endStructure() } } @@ -59,23 +57,29 @@ class RvcOperationalStateClusterErrorStateStruct ( private const val TAG_ERROR_STATE_LABEL = 1 private const val TAG_ERROR_STATE_DETAILS = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RvcOperationalStateClusterErrorStateStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): RvcOperationalStateClusterErrorStateStruct { tlvReader.enterStructure(tlvTag) val errorStateID = tlvReader.getUInt(ContextSpecificTag(TAG_ERROR_STATE_I_D)) - val errorStateLabel = if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) - } else { - Optional.empty() - } - val errorStateDetails = if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) - } else { - Optional.empty() - } - + val errorStateLabel = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) + } else { + Optional.empty() + } + val errorStateDetails = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return RvcOperationalStateClusterErrorStateStruct(errorStateID, errorStateLabel, errorStateDetails) + return RvcOperationalStateClusterErrorStateStruct( + errorStateID, + errorStateLabel, + errorStateDetails + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcOperationalStateClusterOperationalStateStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcOperationalStateClusterOperationalStateStruct.kt index fb72fa8dcc8da8..1e5548ff7677a9 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcOperationalStateClusterOperationalStateStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcOperationalStateClusterOperationalStateStruct.kt @@ -16,20 +16,18 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class RvcOperationalStateClusterOperationalStateStruct ( - val operationalStateID: UInt, - val operationalStateLabel: Optional) { - override fun toString(): String = buildString { +class RvcOperationalStateClusterOperationalStateStruct( + val operationalStateID: UInt, + val operationalStateLabel: Optional +) { + override fun toString(): String = buildString { append("RvcOperationalStateClusterOperationalStateStruct {\n") append("\toperationalStateID : $operationalStateID\n") append("\toperationalStateLabel : $operationalStateLabel\n") @@ -41,9 +39,9 @@ class RvcOperationalStateClusterOperationalStateStruct ( startStructure(tlvTag) put(ContextSpecificTag(TAG_OPERATIONAL_STATE_I_D), operationalStateID) if (operationalStateLabel.isPresent) { - val optoperationalStateLabel = operationalStateLabel.get() - put(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL), optoperationalStateLabel) - } + val optoperationalStateLabel = operationalStateLabel.get() + put(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL), optoperationalStateLabel) + } endStructure() } } @@ -52,18 +50,25 @@ class RvcOperationalStateClusterOperationalStateStruct ( private const val TAG_OPERATIONAL_STATE_I_D = 0 private const val TAG_OPERATIONAL_STATE_LABEL = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RvcOperationalStateClusterOperationalStateStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): RvcOperationalStateClusterOperationalStateStruct { tlvReader.enterStructure(tlvTag) val operationalStateID = tlvReader.getUInt(ContextSpecificTag(TAG_OPERATIONAL_STATE_I_D)) - val operationalStateLabel = if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) - } else { - Optional.empty() - } - + val operationalStateLabel = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return RvcOperationalStateClusterOperationalStateStruct(operationalStateID, operationalStateLabel) + return RvcOperationalStateClusterOperationalStateStruct( + operationalStateID, + operationalStateLabel + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcRunModeClusterModeOptionStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcRunModeClusterModeOptionStruct.kt index 308398d0d9526e..937a0303a98b04 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcRunModeClusterModeOptionStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcRunModeClusterModeOptionStruct.kt @@ -20,17 +20,15 @@ import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class RvcRunModeClusterModeOptionStruct ( - val label: String, - val mode: UByte, - val modeTags: List) { - override fun toString(): String = buildString { +class RvcRunModeClusterModeOptionStruct( + val label: String, + val mode: UByte, + val modeTags: List +) { + override fun toString(): String = buildString { append("RvcRunModeClusterModeOptionStruct {\n") append("\tlabel : $label\n") append("\tmode : $mode\n") @@ -57,18 +55,19 @@ class RvcRunModeClusterModeOptionStruct ( private const val TAG_MODE = 1 private const val TAG_MODE_TAGS = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RvcRunModeClusterModeOptionStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): RvcRunModeClusterModeOptionStruct { tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val mode = tlvReader.getUByte(ContextSpecificTag(TAG_MODE)) - val modeTags = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) - while(!tlvReader.isEndOfContainer()) { - add(RvcRunModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val modeTags = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) + while (!tlvReader.isEndOfContainer()) { + add(RvcRunModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return RvcRunModeClusterModeOptionStruct(label, mode, modeTags) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcRunModeClusterModeTagStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcRunModeClusterModeTagStruct.kt index f40e98d5b556e5..055336e7a1e250 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcRunModeClusterModeTagStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcRunModeClusterModeTagStruct.kt @@ -16,20 +16,15 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class RvcRunModeClusterModeTagStruct ( - val mfgCode: Optional, - val value: UInt) { - override fun toString(): String = buildString { +class RvcRunModeClusterModeTagStruct(val mfgCode: Optional, val value: UInt) { + override fun toString(): String = buildString { append("RvcRunModeClusterModeTagStruct {\n") append("\tmfgCode : $mfgCode\n") append("\tvalue : $value\n") @@ -40,9 +35,9 @@ class RvcRunModeClusterModeTagStruct ( tlvWriter.apply { startStructure(tlvTag) if (mfgCode.isPresent) { - val optmfgCode = mfgCode.get() - put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) - } + val optmfgCode = mfgCode.get() + put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) + } put(ContextSpecificTag(TAG_VALUE), value) endStructure() } @@ -52,15 +47,16 @@ class RvcRunModeClusterModeTagStruct ( private const val TAG_MFG_CODE = 0 private const val TAG_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RvcRunModeClusterModeTagStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): RvcRunModeClusterModeTagStruct { tlvReader.enterStructure(tlvTag) - val mfgCode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { - Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE))) - } else { - Optional.empty() - } + val mfgCode = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { + Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE))) + } else { + Optional.empty() + } val value = tlvReader.getUInt(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return RvcRunModeClusterModeTagStruct(mfgCode, value) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ScenesClusterAttributeValuePair.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ScenesClusterAttributeValuePair.kt index 2cf89328f652e4..df599d883e82ca 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ScenesClusterAttributeValuePair.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ScenesClusterAttributeValuePair.kt @@ -17,19 +17,13 @@ package matter.devicecontroller.cluster.structs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ScenesClusterAttributeValuePair ( - val attributeID: UInt, - val attributeValue: UInt) { - override fun toString(): String = buildString { +class ScenesClusterAttributeValuePair(val attributeID: UInt, val attributeValue: UInt) { + override fun toString(): String = buildString { append("ScenesClusterAttributeValuePair {\n") append("\tattributeID : $attributeID\n") append("\tattributeValue : $attributeValue\n") @@ -49,11 +43,11 @@ class ScenesClusterAttributeValuePair ( private const val TAG_ATTRIBUTE_I_D = 0 private const val TAG_ATTRIBUTE_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ScenesClusterAttributeValuePair { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ScenesClusterAttributeValuePair { tlvReader.enterStructure(tlvTag) val attributeID = tlvReader.getUInt(ContextSpecificTag(TAG_ATTRIBUTE_I_D)) val attributeValue = tlvReader.getUInt(ContextSpecificTag(TAG_ATTRIBUTE_VALUE)) - + tlvReader.exitContainer() return ScenesClusterAttributeValuePair(attributeID, attributeValue) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ScenesClusterExtensionFieldSet.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ScenesClusterExtensionFieldSet.kt index 2b1c26448e517b..88d60856d7460b 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ScenesClusterExtensionFieldSet.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ScenesClusterExtensionFieldSet.kt @@ -20,16 +20,14 @@ import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ScenesClusterExtensionFieldSet ( - val clusterID: UInt, - val attributeValueList: List) { - override fun toString(): String = buildString { +class ScenesClusterExtensionFieldSet( + val clusterID: UInt, + val attributeValueList: List +) { + override fun toString(): String = buildString { append("ScenesClusterExtensionFieldSet {\n") append("\tclusterID : $clusterID\n") append("\tattributeValueList : $attributeValueList\n") @@ -53,17 +51,18 @@ class ScenesClusterExtensionFieldSet ( private const val TAG_CLUSTER_I_D = 0 private const val TAG_ATTRIBUTE_VALUE_LIST = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ScenesClusterExtensionFieldSet { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ScenesClusterExtensionFieldSet { tlvReader.enterStructure(tlvTag) val clusterID = tlvReader.getUInt(ContextSpecificTag(TAG_CLUSTER_I_D)) - val attributeValueList = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_ATTRIBUTE_VALUE_LIST)) - while(!tlvReader.isEndOfContainer()) { - add(ScenesClusterAttributeValuePair.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val attributeValueList = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_ATTRIBUTE_VALUE_LIST)) + while (!tlvReader.isEndOfContainer()) { + add(ScenesClusterAttributeValuePair.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return ScenesClusterExtensionFieldSet(clusterID, attributeValueList) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/SoftwareDiagnosticsClusterThreadMetricsStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/SoftwareDiagnosticsClusterThreadMetricsStruct.kt index d1444a9d3b9f25..c5f2429f4af83b 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/SoftwareDiagnosticsClusterThreadMetricsStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/SoftwareDiagnosticsClusterThreadMetricsStruct.kt @@ -16,23 +16,21 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class SoftwareDiagnosticsClusterThreadMetricsStruct ( - val id: ULong, - val name: Optional, - val stackFreeCurrent: Optional, - val stackFreeMinimum: Optional, - val stackSize: Optional) { - override fun toString(): String = buildString { +class SoftwareDiagnosticsClusterThreadMetricsStruct( + val id: ULong, + val name: Optional, + val stackFreeCurrent: Optional, + val stackFreeMinimum: Optional, + val stackSize: Optional +) { + override fun toString(): String = buildString { append("SoftwareDiagnosticsClusterThreadMetricsStruct {\n") append("\tid : $id\n") append("\tname : $name\n") @@ -47,21 +45,21 @@ class SoftwareDiagnosticsClusterThreadMetricsStruct ( startStructure(tlvTag) put(ContextSpecificTag(TAG_ID), id) if (name.isPresent) { - val optname = name.get() - put(ContextSpecificTag(TAG_NAME), optname) - } + val optname = name.get() + put(ContextSpecificTag(TAG_NAME), optname) + } if (stackFreeCurrent.isPresent) { - val optstackFreeCurrent = stackFreeCurrent.get() - put(ContextSpecificTag(TAG_STACK_FREE_CURRENT), optstackFreeCurrent) - } + val optstackFreeCurrent = stackFreeCurrent.get() + put(ContextSpecificTag(TAG_STACK_FREE_CURRENT), optstackFreeCurrent) + } if (stackFreeMinimum.isPresent) { - val optstackFreeMinimum = stackFreeMinimum.get() - put(ContextSpecificTag(TAG_STACK_FREE_MINIMUM), optstackFreeMinimum) - } + val optstackFreeMinimum = stackFreeMinimum.get() + put(ContextSpecificTag(TAG_STACK_FREE_MINIMUM), optstackFreeMinimum) + } if (stackSize.isPresent) { - val optstackSize = stackSize.get() - put(ContextSpecificTag(TAG_STACK_SIZE), optstackSize) - } + val optstackSize = stackSize.get() + put(ContextSpecificTag(TAG_STACK_SIZE), optstackSize) + } endStructure() } } @@ -73,33 +71,43 @@ class SoftwareDiagnosticsClusterThreadMetricsStruct ( private const val TAG_STACK_FREE_MINIMUM = 3 private const val TAG_STACK_SIZE = 4 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SoftwareDiagnosticsClusterThreadMetricsStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SoftwareDiagnosticsClusterThreadMetricsStruct { tlvReader.enterStructure(tlvTag) val id = tlvReader.getULong(ContextSpecificTag(TAG_ID)) - val name = if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) - } else { - Optional.empty() - } - val stackFreeCurrent = if (tlvReader.isNextTag(ContextSpecificTag(TAG_STACK_FREE_CURRENT))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_STACK_FREE_CURRENT))) - } else { - Optional.empty() - } - val stackFreeMinimum = if (tlvReader.isNextTag(ContextSpecificTag(TAG_STACK_FREE_MINIMUM))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_STACK_FREE_MINIMUM))) - } else { - Optional.empty() - } - val stackSize = if (tlvReader.isNextTag(ContextSpecificTag(TAG_STACK_SIZE))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_STACK_SIZE))) - } else { - Optional.empty() - } - + val name = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) + } else { + Optional.empty() + } + val stackFreeCurrent = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_STACK_FREE_CURRENT))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_STACK_FREE_CURRENT))) + } else { + Optional.empty() + } + val stackFreeMinimum = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_STACK_FREE_MINIMUM))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_STACK_FREE_MINIMUM))) + } else { + Optional.empty() + } + val stackSize = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_STACK_SIZE))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_STACK_SIZE))) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return SoftwareDiagnosticsClusterThreadMetricsStruct(id, name, stackFreeCurrent, stackFreeMinimum, stackSize) + return SoftwareDiagnosticsClusterThreadMetricsStruct( + id, + name, + stackFreeCurrent, + stackFreeMinimum, + stackSize + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TargetNavigatorClusterTargetInfoStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TargetNavigatorClusterTargetInfoStruct.kt index afa01368c10f61..14c27a55df4da9 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TargetNavigatorClusterTargetInfoStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TargetNavigatorClusterTargetInfoStruct.kt @@ -17,19 +17,13 @@ package matter.devicecontroller.cluster.structs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class TargetNavigatorClusterTargetInfoStruct ( - val identifier: UByte, - val name: String) { - override fun toString(): String = buildString { +class TargetNavigatorClusterTargetInfoStruct(val identifier: UByte, val name: String) { + override fun toString(): String = buildString { append("TargetNavigatorClusterTargetInfoStruct {\n") append("\tidentifier : $identifier\n") append("\tname : $name\n") @@ -49,11 +43,11 @@ class TargetNavigatorClusterTargetInfoStruct ( private const val TAG_IDENTIFIER = 0 private const val TAG_NAME = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : TargetNavigatorClusterTargetInfoStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): TargetNavigatorClusterTargetInfoStruct { tlvReader.enterStructure(tlvTag) val identifier = tlvReader.getUByte(ContextSpecificTag(TAG_IDENTIFIER)) val name = tlvReader.getString(ContextSpecificTag(TAG_NAME)) - + tlvReader.exitContainer() return TargetNavigatorClusterTargetInfoStruct(identifier, name) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterThermostatScheduleTransition.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterThermostatScheduleTransition.kt index 45bd137900ea82..ecd2bf08eb8fcb 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterThermostatScheduleTransition.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterThermostatScheduleTransition.kt @@ -17,20 +17,17 @@ package matter.devicecontroller.cluster.structs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ThermostatClusterThermostatScheduleTransition ( - val transitionTime: UShort, - val heatSetpoint: Short?, - val coolSetpoint: Short?) { - override fun toString(): String = buildString { +class ThermostatClusterThermostatScheduleTransition( + val transitionTime: UShort, + val heatSetpoint: Short?, + val coolSetpoint: Short? +) { + override fun toString(): String = buildString { append("ThermostatClusterThermostatScheduleTransition {\n") append("\ttransitionTime : $transitionTime\n") append("\theatSetpoint : $heatSetpoint\n") @@ -43,15 +40,15 @@ class ThermostatClusterThermostatScheduleTransition ( startStructure(tlvTag) put(ContextSpecificTag(TAG_TRANSITION_TIME), transitionTime) if (heatSetpoint != null) { - put(ContextSpecificTag(TAG_HEAT_SETPOINT), heatSetpoint) - } else { - putNull(ContextSpecificTag(TAG_HEAT_SETPOINT)) - } + put(ContextSpecificTag(TAG_HEAT_SETPOINT), heatSetpoint) + } else { + putNull(ContextSpecificTag(TAG_HEAT_SETPOINT)) + } if (coolSetpoint != null) { - put(ContextSpecificTag(TAG_COOL_SETPOINT), coolSetpoint) - } else { - putNull(ContextSpecificTag(TAG_COOL_SETPOINT)) - } + put(ContextSpecificTag(TAG_COOL_SETPOINT), coolSetpoint) + } else { + putNull(ContextSpecificTag(TAG_COOL_SETPOINT)) + } endStructure() } } @@ -61,25 +58,31 @@ class ThermostatClusterThermostatScheduleTransition ( private const val TAG_HEAT_SETPOINT = 1 private const val TAG_COOL_SETPOINT = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ThermostatClusterThermostatScheduleTransition { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ThermostatClusterThermostatScheduleTransition { tlvReader.enterStructure(tlvTag) val transitionTime = tlvReader.getUShort(ContextSpecificTag(TAG_TRANSITION_TIME)) - val heatSetpoint = if (!tlvReader.isNull()) { - tlvReader.getShort(ContextSpecificTag(TAG_HEAT_SETPOINT)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_HEAT_SETPOINT)) - null - } - val coolSetpoint = if (!tlvReader.isNull()) { - tlvReader.getShort(ContextSpecificTag(TAG_COOL_SETPOINT)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_COOL_SETPOINT)) - null - } - + val heatSetpoint = + if (!tlvReader.isNull()) { + tlvReader.getShort(ContextSpecificTag(TAG_HEAT_SETPOINT)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_HEAT_SETPOINT)) + null + } + val coolSetpoint = + if (!tlvReader.isNull()) { + tlvReader.getShort(ContextSpecificTag(TAG_COOL_SETPOINT)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_COOL_SETPOINT)) + null + } + tlvReader.exitContainer() - return ThermostatClusterThermostatScheduleTransition(transitionTime, heatSetpoint, coolSetpoint) + return ThermostatClusterThermostatScheduleTransition( + transitionTime, + heatSetpoint, + coolSetpoint + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterNeighborTableStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterNeighborTableStruct.kt index c0a9916206a3d1..001698e66b5dce 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterNeighborTableStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterNeighborTableStruct.kt @@ -17,31 +17,28 @@ package matter.devicecontroller.cluster.structs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ThreadNetworkDiagnosticsClusterNeighborTableStruct ( - val extAddress: ULong, - val age: UInt, - val rloc16: UShort, - val linkFrameCounter: UInt, - val mleFrameCounter: UInt, - val lqi: UByte, - val averageRssi: Byte?, - val lastRssi: Byte?, - val frameErrorRate: UByte, - val messageErrorRate: UByte, - val rxOnWhenIdle: Boolean, - val fullThreadDevice: Boolean, - val fullNetworkData: Boolean, - val isChild: Boolean) { - override fun toString(): String = buildString { +class ThreadNetworkDiagnosticsClusterNeighborTableStruct( + val extAddress: ULong, + val age: UInt, + val rloc16: UShort, + val linkFrameCounter: UInt, + val mleFrameCounter: UInt, + val lqi: UByte, + val averageRssi: Byte?, + val lastRssi: Byte?, + val frameErrorRate: UByte, + val messageErrorRate: UByte, + val rxOnWhenIdle: Boolean, + val fullThreadDevice: Boolean, + val fullNetworkData: Boolean, + val isChild: Boolean +) { + override fun toString(): String = buildString { append("ThreadNetworkDiagnosticsClusterNeighborTableStruct {\n") append("\textAddress : $extAddress\n") append("\tage : $age\n") @@ -70,15 +67,15 @@ class ThreadNetworkDiagnosticsClusterNeighborTableStruct ( put(ContextSpecificTag(TAG_MLE_FRAME_COUNTER), mleFrameCounter) put(ContextSpecificTag(TAG_LQI), lqi) if (averageRssi != null) { - put(ContextSpecificTag(TAG_AVERAGE_RSSI), averageRssi) - } else { - putNull(ContextSpecificTag(TAG_AVERAGE_RSSI)) - } + put(ContextSpecificTag(TAG_AVERAGE_RSSI), averageRssi) + } else { + putNull(ContextSpecificTag(TAG_AVERAGE_RSSI)) + } if (lastRssi != null) { - put(ContextSpecificTag(TAG_LAST_RSSI), lastRssi) - } else { - putNull(ContextSpecificTag(TAG_LAST_RSSI)) - } + put(ContextSpecificTag(TAG_LAST_RSSI), lastRssi) + } else { + putNull(ContextSpecificTag(TAG_LAST_RSSI)) + } put(ContextSpecificTag(TAG_FRAME_ERROR_RATE), frameErrorRate) put(ContextSpecificTag(TAG_MESSAGE_ERROR_RATE), messageErrorRate) put(ContextSpecificTag(TAG_RX_ON_WHEN_IDLE), rxOnWhenIdle) @@ -105,7 +102,10 @@ class ThreadNetworkDiagnosticsClusterNeighborTableStruct ( private const val TAG_FULL_NETWORK_DATA = 12 private const val TAG_IS_CHILD = 13 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ThreadNetworkDiagnosticsClusterNeighborTableStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): ThreadNetworkDiagnosticsClusterNeighborTableStruct { tlvReader.enterStructure(tlvTag) val extAddress = tlvReader.getULong(ContextSpecificTag(TAG_EXT_ADDRESS)) val age = tlvReader.getUInt(ContextSpecificTag(TAG_AGE)) @@ -113,28 +113,45 @@ class ThreadNetworkDiagnosticsClusterNeighborTableStruct ( val linkFrameCounter = tlvReader.getUInt(ContextSpecificTag(TAG_LINK_FRAME_COUNTER)) val mleFrameCounter = tlvReader.getUInt(ContextSpecificTag(TAG_MLE_FRAME_COUNTER)) val lqi = tlvReader.getUByte(ContextSpecificTag(TAG_LQI)) - val averageRssi = if (!tlvReader.isNull()) { - tlvReader.getByte(ContextSpecificTag(TAG_AVERAGE_RSSI)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_AVERAGE_RSSI)) - null - } - val lastRssi = if (!tlvReader.isNull()) { - tlvReader.getByte(ContextSpecificTag(TAG_LAST_RSSI)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_LAST_RSSI)) - null - } + val averageRssi = + if (!tlvReader.isNull()) { + tlvReader.getByte(ContextSpecificTag(TAG_AVERAGE_RSSI)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_AVERAGE_RSSI)) + null + } + val lastRssi = + if (!tlvReader.isNull()) { + tlvReader.getByte(ContextSpecificTag(TAG_LAST_RSSI)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_LAST_RSSI)) + null + } val frameErrorRate = tlvReader.getUByte(ContextSpecificTag(TAG_FRAME_ERROR_RATE)) val messageErrorRate = tlvReader.getUByte(ContextSpecificTag(TAG_MESSAGE_ERROR_RATE)) val rxOnWhenIdle = tlvReader.getBoolean(ContextSpecificTag(TAG_RX_ON_WHEN_IDLE)) val fullThreadDevice = tlvReader.getBoolean(ContextSpecificTag(TAG_FULL_THREAD_DEVICE)) val fullNetworkData = tlvReader.getBoolean(ContextSpecificTag(TAG_FULL_NETWORK_DATA)) val isChild = tlvReader.getBoolean(ContextSpecificTag(TAG_IS_CHILD)) - + tlvReader.exitContainer() - return ThreadNetworkDiagnosticsClusterNeighborTableStruct(extAddress, age, rloc16, linkFrameCounter, mleFrameCounter, lqi, averageRssi, lastRssi, frameErrorRate, messageErrorRate, rxOnWhenIdle, fullThreadDevice, fullNetworkData, isChild) + return ThreadNetworkDiagnosticsClusterNeighborTableStruct( + extAddress, + age, + rloc16, + linkFrameCounter, + mleFrameCounter, + lqi, + averageRssi, + lastRssi, + frameErrorRate, + messageErrorRate, + rxOnWhenIdle, + fullThreadDevice, + fullNetworkData, + isChild + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterOperationalDatasetComponents.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterOperationalDatasetComponents.kt index 24f32f48545881..7aa8d606fbcc21 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterOperationalDatasetComponents.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterOperationalDatasetComponents.kt @@ -17,29 +17,26 @@ package matter.devicecontroller.cluster.structs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ThreadNetworkDiagnosticsClusterOperationalDatasetComponents ( - val activeTimestampPresent: Boolean, - val pendingTimestampPresent: Boolean, - val masterKeyPresent: Boolean, - val networkNamePresent: Boolean, - val extendedPanIdPresent: Boolean, - val meshLocalPrefixPresent: Boolean, - val delayPresent: Boolean, - val panIdPresent: Boolean, - val channelPresent: Boolean, - val pskcPresent: Boolean, - val securityPolicyPresent: Boolean, - val channelMaskPresent: Boolean) { - override fun toString(): String = buildString { +class ThreadNetworkDiagnosticsClusterOperationalDatasetComponents( + val activeTimestampPresent: Boolean, + val pendingTimestampPresent: Boolean, + val masterKeyPresent: Boolean, + val networkNamePresent: Boolean, + val extendedPanIdPresent: Boolean, + val meshLocalPrefixPresent: Boolean, + val delayPresent: Boolean, + val panIdPresent: Boolean, + val channelPresent: Boolean, + val pskcPresent: Boolean, + val securityPolicyPresent: Boolean, + val channelMaskPresent: Boolean +) { + override fun toString(): String = buildString { append("ThreadNetworkDiagnosticsClusterOperationalDatasetComponents {\n") append("\tactiveTimestampPresent : $activeTimestampPresent\n") append("\tpendingTimestampPresent : $pendingTimestampPresent\n") @@ -89,24 +86,45 @@ class ThreadNetworkDiagnosticsClusterOperationalDatasetComponents ( private const val TAG_SECURITY_POLICY_PRESENT = 10 private const val TAG_CHANNEL_MASK_PRESENT = 11 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ThreadNetworkDiagnosticsClusterOperationalDatasetComponents { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): ThreadNetworkDiagnosticsClusterOperationalDatasetComponents { tlvReader.enterStructure(tlvTag) - val activeTimestampPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_ACTIVE_TIMESTAMP_PRESENT)) - val pendingTimestampPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_PENDING_TIMESTAMP_PRESENT)) + val activeTimestampPresent = + tlvReader.getBoolean(ContextSpecificTag(TAG_ACTIVE_TIMESTAMP_PRESENT)) + val pendingTimestampPresent = + tlvReader.getBoolean(ContextSpecificTag(TAG_PENDING_TIMESTAMP_PRESENT)) val masterKeyPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_MASTER_KEY_PRESENT)) val networkNamePresent = tlvReader.getBoolean(ContextSpecificTag(TAG_NETWORK_NAME_PRESENT)) - val extendedPanIdPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_EXTENDED_PAN_ID_PRESENT)) - val meshLocalPrefixPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_MESH_LOCAL_PREFIX_PRESENT)) + val extendedPanIdPresent = + tlvReader.getBoolean(ContextSpecificTag(TAG_EXTENDED_PAN_ID_PRESENT)) + val meshLocalPrefixPresent = + tlvReader.getBoolean(ContextSpecificTag(TAG_MESH_LOCAL_PREFIX_PRESENT)) val delayPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_DELAY_PRESENT)) val panIdPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_PAN_ID_PRESENT)) val channelPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_CHANNEL_PRESENT)) val pskcPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_PSKC_PRESENT)) - val securityPolicyPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_SECURITY_POLICY_PRESENT)) + val securityPolicyPresent = + tlvReader.getBoolean(ContextSpecificTag(TAG_SECURITY_POLICY_PRESENT)) val channelMaskPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_CHANNEL_MASK_PRESENT)) - + tlvReader.exitContainer() - return ThreadNetworkDiagnosticsClusterOperationalDatasetComponents(activeTimestampPresent, pendingTimestampPresent, masterKeyPresent, networkNamePresent, extendedPanIdPresent, meshLocalPrefixPresent, delayPresent, panIdPresent, channelPresent, pskcPresent, securityPolicyPresent, channelMaskPresent) + return ThreadNetworkDiagnosticsClusterOperationalDatasetComponents( + activeTimestampPresent, + pendingTimestampPresent, + masterKeyPresent, + networkNamePresent, + extendedPanIdPresent, + meshLocalPrefixPresent, + delayPresent, + panIdPresent, + channelPresent, + pskcPresent, + securityPolicyPresent, + channelMaskPresent + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterRouteTableStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterRouteTableStruct.kt index 149391370fbcfc..58a9599025b985 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterRouteTableStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterRouteTableStruct.kt @@ -17,27 +17,24 @@ package matter.devicecontroller.cluster.structs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ThreadNetworkDiagnosticsClusterRouteTableStruct ( - val extAddress: ULong, - val rloc16: UShort, - val routerId: UByte, - val nextHop: UByte, - val pathCost: UByte, - val LQIIn: UByte, - val LQIOut: UByte, - val age: UByte, - val allocated: Boolean, - val linkEstablished: Boolean) { - override fun toString(): String = buildString { +class ThreadNetworkDiagnosticsClusterRouteTableStruct( + val extAddress: ULong, + val rloc16: UShort, + val routerId: UByte, + val nextHop: UByte, + val pathCost: UByte, + val LQIIn: UByte, + val LQIOut: UByte, + val age: UByte, + val allocated: Boolean, + val linkEstablished: Boolean +) { + override fun toString(): String = buildString { append("ThreadNetworkDiagnosticsClusterRouteTableStruct {\n") append("\textAddress : $extAddress\n") append("\trloc16 : $rloc16\n") @@ -81,7 +78,10 @@ class ThreadNetworkDiagnosticsClusterRouteTableStruct ( private const val TAG_ALLOCATED = 8 private const val TAG_LINK_ESTABLISHED = 9 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ThreadNetworkDiagnosticsClusterRouteTableStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): ThreadNetworkDiagnosticsClusterRouteTableStruct { tlvReader.enterStructure(tlvTag) val extAddress = tlvReader.getULong(ContextSpecificTag(TAG_EXT_ADDRESS)) val rloc16 = tlvReader.getUShort(ContextSpecificTag(TAG_RLOC16)) @@ -93,10 +93,21 @@ class ThreadNetworkDiagnosticsClusterRouteTableStruct ( val age = tlvReader.getUByte(ContextSpecificTag(TAG_AGE)) val allocated = tlvReader.getBoolean(ContextSpecificTag(TAG_ALLOCATED)) val linkEstablished = tlvReader.getBoolean(ContextSpecificTag(TAG_LINK_ESTABLISHED)) - + tlvReader.exitContainer() - return ThreadNetworkDiagnosticsClusterRouteTableStruct(extAddress, rloc16, routerId, nextHop, pathCost, LQIIn, LQIOut, age, allocated, linkEstablished) + return ThreadNetworkDiagnosticsClusterRouteTableStruct( + extAddress, + rloc16, + routerId, + nextHop, + pathCost, + LQIIn, + LQIOut, + age, + allocated, + linkEstablished + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterSecurityPolicy.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterSecurityPolicy.kt index 5c83b8e32bd738..313ac3dda11319 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterSecurityPolicy.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterSecurityPolicy.kt @@ -17,19 +17,13 @@ package matter.devicecontroller.cluster.structs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ThreadNetworkDiagnosticsClusterSecurityPolicy ( - val rotationTime: UShort, - val flags: UShort) { - override fun toString(): String = buildString { +class ThreadNetworkDiagnosticsClusterSecurityPolicy(val rotationTime: UShort, val flags: UShort) { + override fun toString(): String = buildString { append("ThreadNetworkDiagnosticsClusterSecurityPolicy {\n") append("\trotationTime : $rotationTime\n") append("\tflags : $flags\n") @@ -49,11 +43,11 @@ class ThreadNetworkDiagnosticsClusterSecurityPolicy ( private const val TAG_ROTATION_TIME = 0 private const val TAG_FLAGS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ThreadNetworkDiagnosticsClusterSecurityPolicy { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ThreadNetworkDiagnosticsClusterSecurityPolicy { tlvReader.enterStructure(tlvTag) val rotationTime = tlvReader.getUShort(ContextSpecificTag(TAG_ROTATION_TIME)) val flags = tlvReader.getUShort(ContextSpecificTag(TAG_FLAGS)) - + tlvReader.exitContainer() return ThreadNetworkDiagnosticsClusterSecurityPolicy(rotationTime, flags) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterDSTOffsetStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterDSTOffsetStruct.kt index 8ac18e76559c14..a3b6fd3d55188f 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterDSTOffsetStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterDSTOffsetStruct.kt @@ -17,20 +17,17 @@ package matter.devicecontroller.cluster.structs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class TimeSynchronizationClusterDSTOffsetStruct ( - val offset: Int, - val validStarting: ULong, - val validUntil: ULong?) { - override fun toString(): String = buildString { +class TimeSynchronizationClusterDSTOffsetStruct( + val offset: Int, + val validStarting: ULong, + val validUntil: ULong? +) { + override fun toString(): String = buildString { append("TimeSynchronizationClusterDSTOffsetStruct {\n") append("\toffset : $offset\n") append("\tvalidStarting : $validStarting\n") @@ -44,10 +41,10 @@ class TimeSynchronizationClusterDSTOffsetStruct ( put(ContextSpecificTag(TAG_OFFSET), offset) put(ContextSpecificTag(TAG_VALID_STARTING), validStarting) if (validUntil != null) { - put(ContextSpecificTag(TAG_VALID_UNTIL), validUntil) - } else { - putNull(ContextSpecificTag(TAG_VALID_UNTIL)) - } + put(ContextSpecificTag(TAG_VALID_UNTIL), validUntil) + } else { + putNull(ContextSpecificTag(TAG_VALID_UNTIL)) + } endStructure() } } @@ -57,17 +54,18 @@ class TimeSynchronizationClusterDSTOffsetStruct ( private const val TAG_VALID_STARTING = 1 private const val TAG_VALID_UNTIL = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : TimeSynchronizationClusterDSTOffsetStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): TimeSynchronizationClusterDSTOffsetStruct { tlvReader.enterStructure(tlvTag) val offset = tlvReader.getInt(ContextSpecificTag(TAG_OFFSET)) val validStarting = tlvReader.getULong(ContextSpecificTag(TAG_VALID_STARTING)) - val validUntil = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_VALID_UNTIL)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_VALID_UNTIL)) - null - } - + val validUntil = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_VALID_UNTIL)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_VALID_UNTIL)) + null + } + tlvReader.exitContainer() return TimeSynchronizationClusterDSTOffsetStruct(offset, validStarting, validUntil) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct.kt index 2a0a73b1392920..152f42081f7ab8 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct.kt @@ -17,19 +17,16 @@ package matter.devicecontroller.cluster.structs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct ( - val nodeID: ULong, - val endpoint: UShort) { - override fun toString(): String = buildString { +class TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct( + val nodeID: ULong, + val endpoint: UShort +) { + override fun toString(): String = buildString { append("TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct {\n") append("\tnodeID : $nodeID\n") append("\tendpoint : $endpoint\n") @@ -49,11 +46,14 @@ class TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct ( private const val TAG_NODE_I_D = 0 private const val TAG_ENDPOINT = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct { tlvReader.enterStructure(tlvTag) val nodeID = tlvReader.getULong(ContextSpecificTag(TAG_NODE_I_D)) val endpoint = tlvReader.getUShort(ContextSpecificTag(TAG_ENDPOINT)) - + tlvReader.exitContainer() return TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct(nodeID, endpoint) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterTimeZoneStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterTimeZoneStruct.kt index c04b0eb839d981..4dd53317007f70 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterTimeZoneStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterTimeZoneStruct.kt @@ -16,21 +16,19 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class TimeSynchronizationClusterTimeZoneStruct ( - val offset: Int, - val validAt: ULong, - val name: Optional) { - override fun toString(): String = buildString { +class TimeSynchronizationClusterTimeZoneStruct( + val offset: Int, + val validAt: ULong, + val name: Optional +) { + override fun toString(): String = buildString { append("TimeSynchronizationClusterTimeZoneStruct {\n") append("\toffset : $offset\n") append("\tvalidAt : $validAt\n") @@ -44,9 +42,9 @@ class TimeSynchronizationClusterTimeZoneStruct ( put(ContextSpecificTag(TAG_OFFSET), offset) put(ContextSpecificTag(TAG_VALID_AT), validAt) if (name.isPresent) { - val optname = name.get() - put(ContextSpecificTag(TAG_NAME), optname) - } + val optname = name.get() + put(ContextSpecificTag(TAG_NAME), optname) + } endStructure() } } @@ -56,16 +54,17 @@ class TimeSynchronizationClusterTimeZoneStruct ( private const val TAG_VALID_AT = 1 private const val TAG_NAME = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : TimeSynchronizationClusterTimeZoneStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): TimeSynchronizationClusterTimeZoneStruct { tlvReader.enterStructure(tlvTag) val offset = tlvReader.getInt(ContextSpecificTag(TAG_OFFSET)) val validAt = tlvReader.getULong(ContextSpecificTag(TAG_VALID_AT)) - val name = if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) - } else { - Optional.empty() - } - + val name = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) + } else { + Optional.empty() + } + tlvReader.exitContainer() return TimeSynchronizationClusterTimeZoneStruct(offset, validAt, name) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterTrustedTimeSourceStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterTrustedTimeSourceStruct.kt index ca6ed652d1be62..034d6d0d7e21e3 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterTrustedTimeSourceStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterTrustedTimeSourceStruct.kt @@ -17,20 +17,17 @@ package matter.devicecontroller.cluster.structs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class TimeSynchronizationClusterTrustedTimeSourceStruct ( - val fabricIndex: UByte, - val nodeID: ULong, - val endpoint: UShort) { - override fun toString(): String = buildString { +class TimeSynchronizationClusterTrustedTimeSourceStruct( + val fabricIndex: UByte, + val nodeID: ULong, + val endpoint: UShort +) { + override fun toString(): String = buildString { append("TimeSynchronizationClusterTrustedTimeSourceStruct {\n") append("\tfabricIndex : $fabricIndex\n") append("\tnodeID : $nodeID\n") @@ -53,12 +50,15 @@ class TimeSynchronizationClusterTrustedTimeSourceStruct ( private const val TAG_NODE_I_D = 1 private const val TAG_ENDPOINT = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : TimeSynchronizationClusterTrustedTimeSourceStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): TimeSynchronizationClusterTrustedTimeSourceStruct { tlvReader.enterStructure(tlvTag) val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) val nodeID = tlvReader.getULong(ContextSpecificTag(TAG_NODE_I_D)) val endpoint = tlvReader.getUShort(ContextSpecificTag(TAG_ENDPOINT)) - + tlvReader.exitContainer() return TimeSynchronizationClusterTrustedTimeSourceStruct(fabricIndex, nodeID, endpoint) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterDoubleNestedStructList.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterDoubleNestedStructList.kt index 3716afe19d1723..546255c64a2d1b 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterDoubleNestedStructList.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterDoubleNestedStructList.kt @@ -20,15 +20,11 @@ import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class UnitTestingClusterDoubleNestedStructList ( - val a: List) { - override fun toString(): String = buildString { +class UnitTestingClusterDoubleNestedStructList(val a: List) { + override fun toString(): String = buildString { append("UnitTestingClusterDoubleNestedStructList {\n") append("\ta : $a\n") append("}\n") @@ -49,16 +45,17 @@ class UnitTestingClusterDoubleNestedStructList ( companion object { private const val TAG_A = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : UnitTestingClusterDoubleNestedStructList { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UnitTestingClusterDoubleNestedStructList { tlvReader.enterStructure(tlvTag) - val a = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_A)) - while(!tlvReader.isEndOfContainer()) { - add(UnitTestingClusterNestedStructList.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val a = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_A)) + while (!tlvReader.isEndOfContainer()) { + add(UnitTestingClusterNestedStructList.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return UnitTestingClusterDoubleNestedStructList(a) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterNestedStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterNestedStruct.kt index 6b09620eae770e..0891c3106fbadf 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterNestedStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterNestedStruct.kt @@ -17,20 +17,17 @@ package matter.devicecontroller.cluster.structs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class UnitTestingClusterNestedStruct ( - val a: UByte, - val b: Boolean, - val c: UnitTestingClusterSimpleStruct) { - override fun toString(): String = buildString { +class UnitTestingClusterNestedStruct( + val a: UByte, + val b: Boolean, + val c: UnitTestingClusterSimpleStruct +) { + override fun toString(): String = buildString { append("UnitTestingClusterNestedStruct {\n") append("\ta : $a\n") append("\tb : $b\n") @@ -53,12 +50,12 @@ class UnitTestingClusterNestedStruct ( private const val TAG_B = 1 private const val TAG_C = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : UnitTestingClusterNestedStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UnitTestingClusterNestedStruct { tlvReader.enterStructure(tlvTag) val a = tlvReader.getUByte(ContextSpecificTag(TAG_A)) val b = tlvReader.getBoolean(ContextSpecificTag(TAG_B)) val c = UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_C), tlvReader) - + tlvReader.exitContainer() return UnitTestingClusterNestedStruct(a, b, c) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterNestedStructList.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterNestedStructList.kt index 7719f747ca5580..b22100fdf31dda 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterNestedStructList.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterNestedStructList.kt @@ -20,21 +20,19 @@ import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class UnitTestingClusterNestedStructList ( - val a: UByte, - val b: Boolean, - val c: UnitTestingClusterSimpleStruct, - val d: List, - val e: List, - val f: List, - val g: List) { - override fun toString(): String = buildString { +class UnitTestingClusterNestedStructList( + val a: UByte, + val b: Boolean, + val c: UnitTestingClusterSimpleStruct, + val d: List, + val e: List, + val f: List, + val g: List +) { + override fun toString(): String = buildString { append("UnitTestingClusterNestedStructList {\n") append("\ta : $a\n") append("\tb : $b\n") @@ -85,40 +83,44 @@ class UnitTestingClusterNestedStructList ( private const val TAG_F = 5 private const val TAG_G = 6 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : UnitTestingClusterNestedStructList { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UnitTestingClusterNestedStructList { tlvReader.enterStructure(tlvTag) val a = tlvReader.getUByte(ContextSpecificTag(TAG_A)) val b = tlvReader.getBoolean(ContextSpecificTag(TAG_B)) val c = UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_C), tlvReader) - val d = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_D)) - while(!tlvReader.isEndOfContainer()) { - add(UnitTestingClusterSimpleStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - val e = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_E)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val f = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_F)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getByteArray(AnonymousTag)) - } - tlvReader.exitContainer() - } - val g = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_G)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUByte(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val d = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_D)) + while (!tlvReader.isEndOfContainer()) { + add(UnitTestingClusterSimpleStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + val e = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_E)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val f = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_F)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getByteArray(AnonymousTag)) + } + tlvReader.exitContainer() + } + val g = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_G)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUByte(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return UnitTestingClusterNestedStructList(a, b, c, d, e, f, g) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterNullablesAndOptionalsStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterNullablesAndOptionalsStruct.kt index 3a5f222ba4cec6..5098411f07e58d 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterNullablesAndOptionalsStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterNullablesAndOptionalsStruct.kt @@ -16,30 +16,29 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class UnitTestingClusterNullablesAndOptionalsStruct ( - val nullableInt: UShort?, - val optionalInt: Optional, - val nullableOptionalInt: Optional?, - val nullableString: String?, - val optionalString: Optional, - val nullableOptionalString: Optional?, - val nullableStruct: UnitTestingClusterSimpleStruct?, - val optionalStruct: Optional, - val nullableOptionalStruct: Optional?, - val nullableList: List?, - val optionalList: Optional>, - val nullableOptionalList: Optional>?) { - override fun toString(): String = buildString { +class UnitTestingClusterNullablesAndOptionalsStruct( + val nullableInt: UShort?, + val optionalInt: Optional, + val nullableOptionalInt: Optional?, + val nullableString: String?, + val optionalString: Optional, + val nullableOptionalString: Optional?, + val nullableStruct: UnitTestingClusterSimpleStruct?, + val optionalStruct: Optional, + val nullableOptionalStruct: Optional?, + val nullableList: List?, + val optionalList: Optional>, + val nullableOptionalList: Optional>? +) { + override fun toString(): String = buildString { append("UnitTestingClusterNullablesAndOptionalsStruct {\n") append("\tnullableInt : $nullableInt\n") append("\toptionalInt : $optionalInt\n") @@ -60,85 +59,85 @@ class UnitTestingClusterNullablesAndOptionalsStruct ( tlvWriter.apply { startStructure(tlvTag) if (nullableInt != null) { - put(ContextSpecificTag(TAG_NULLABLE_INT), nullableInt) - } else { - putNull(ContextSpecificTag(TAG_NULLABLE_INT)) - } + put(ContextSpecificTag(TAG_NULLABLE_INT), nullableInt) + } else { + putNull(ContextSpecificTag(TAG_NULLABLE_INT)) + } if (optionalInt.isPresent) { - val optoptionalInt = optionalInt.get() - put(ContextSpecificTag(TAG_OPTIONAL_INT), optoptionalInt) - } + val optoptionalInt = optionalInt.get() + put(ContextSpecificTag(TAG_OPTIONAL_INT), optoptionalInt) + } if (nullableOptionalInt != null) { - if (nullableOptionalInt.isPresent) { - val optnullableOptionalInt = nullableOptionalInt.get() - put(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT), optnullableOptionalInt) - } - } else { - putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT)) - } + if (nullableOptionalInt.isPresent) { + val optnullableOptionalInt = nullableOptionalInt.get() + put(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT), optnullableOptionalInt) + } + } else { + putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT)) + } if (nullableString != null) { - put(ContextSpecificTag(TAG_NULLABLE_STRING), nullableString) - } else { - putNull(ContextSpecificTag(TAG_NULLABLE_STRING)) - } + put(ContextSpecificTag(TAG_NULLABLE_STRING), nullableString) + } else { + putNull(ContextSpecificTag(TAG_NULLABLE_STRING)) + } if (optionalString.isPresent) { - val optoptionalString = optionalString.get() - put(ContextSpecificTag(TAG_OPTIONAL_STRING), optoptionalString) - } + val optoptionalString = optionalString.get() + put(ContextSpecificTag(TAG_OPTIONAL_STRING), optoptionalString) + } if (nullableOptionalString != null) { - if (nullableOptionalString.isPresent) { - val optnullableOptionalString = nullableOptionalString.get() - put(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING), optnullableOptionalString) - } - } else { - putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING)) - } + if (nullableOptionalString.isPresent) { + val optnullableOptionalString = nullableOptionalString.get() + put(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING), optnullableOptionalString) + } + } else { + putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING)) + } if (nullableStruct != null) { - nullableStruct.toTlv(ContextSpecificTag(TAG_NULLABLE_STRUCT), this) - } else { - putNull(ContextSpecificTag(TAG_NULLABLE_STRUCT)) - } + nullableStruct.toTlv(ContextSpecificTag(TAG_NULLABLE_STRUCT), this) + } else { + putNull(ContextSpecificTag(TAG_NULLABLE_STRUCT)) + } if (optionalStruct.isPresent) { - val optoptionalStruct = optionalStruct.get() - optoptionalStruct.toTlv(ContextSpecificTag(TAG_OPTIONAL_STRUCT), this) - } + val optoptionalStruct = optionalStruct.get() + optoptionalStruct.toTlv(ContextSpecificTag(TAG_OPTIONAL_STRUCT), this) + } if (nullableOptionalStruct != null) { - if (nullableOptionalStruct.isPresent) { - val optnullableOptionalStruct = nullableOptionalStruct.get() - optnullableOptionalStruct.toTlv(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT), this) - } - } else { - putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT)) - } + if (nullableOptionalStruct.isPresent) { + val optnullableOptionalStruct = nullableOptionalStruct.get() + optnullableOptionalStruct.toTlv(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT), this) + } + } else { + putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT)) + } if (nullableList != null) { - startArray(ContextSpecificTag(TAG_NULLABLE_LIST)) - for (item in nullableList.iterator()) { - put(AnonymousTag, item) + startArray(ContextSpecificTag(TAG_NULLABLE_LIST)) + for (item in nullableList.iterator()) { + put(AnonymousTag, item) + } + endArray() + } else { + putNull(ContextSpecificTag(TAG_NULLABLE_LIST)) } - endArray() - } else { - putNull(ContextSpecificTag(TAG_NULLABLE_LIST)) - } if (optionalList.isPresent) { - val optoptionalList = optionalList.get() - startArray(ContextSpecificTag(TAG_OPTIONAL_LIST)) - for (item in optoptionalList.iterator()) { - put(AnonymousTag, item) + val optoptionalList = optionalList.get() + startArray(ContextSpecificTag(TAG_OPTIONAL_LIST)) + for (item in optoptionalList.iterator()) { + put(AnonymousTag, item) + } + endArray() } - endArray() - } if (nullableOptionalList != null) { - if (nullableOptionalList.isPresent) { - val optnullableOptionalList = nullableOptionalList.get() - startArray(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST)) - for (item in optnullableOptionalList.iterator()) { - put(AnonymousTag, item) + if (nullableOptionalList.isPresent) { + val optnullableOptionalList = nullableOptionalList.get() + startArray(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST)) + for (item in optnullableOptionalList.iterator()) { + put(AnonymousTag, item) + } + endArray() + } + } else { + putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST)) } - endArray() - } - } else { - putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST)) - } endStructure() } } @@ -157,114 +156,153 @@ class UnitTestingClusterNullablesAndOptionalsStruct ( private const val TAG_OPTIONAL_LIST = 10 private const val TAG_NULLABLE_OPTIONAL_LIST = 11 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : UnitTestingClusterNullablesAndOptionalsStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UnitTestingClusterNullablesAndOptionalsStruct { tlvReader.enterStructure(tlvTag) - val nullableInt = if (!tlvReader.isNull()) { - tlvReader.getUShort(ContextSpecificTag(TAG_NULLABLE_INT)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_INT)) - null - } - val optionalInt = if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_INT))) { - Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_OPTIONAL_INT))) - } else { - Optional.empty() - } - val nullableOptionalInt = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT))) { - Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT)) - null - } - val nullableString = if (!tlvReader.isNull()) { - tlvReader.getString(ContextSpecificTag(TAG_NULLABLE_STRING)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_STRING)) - null - } - val optionalString = if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_STRING))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_OPTIONAL_STRING))) - } else { - Optional.empty() - } - val nullableOptionalString = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING)) - null - } - val nullableStruct = if (!tlvReader.isNull()) { - UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_NULLABLE_STRUCT), tlvReader) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_STRUCT)) - null - } - val optionalStruct = if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_STRUCT))) { - Optional.of(UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_OPTIONAL_STRUCT), tlvReader)) - } else { - Optional.empty() - } - val nullableOptionalStruct = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT))) { - Optional.of(UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT), tlvReader)) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT)) - null - } - val nullableList = if (!tlvReader.isNull()) { - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_NULLABLE_LIST)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_LIST)) - null - } - val optionalList = if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_LIST))) { - Optional.of(buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_OPTIONAL_LIST)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - }) - } else { - Optional.empty() - } - val nullableOptionalList = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST))) { - Optional.of(buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - }) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST)) - null - } - + val nullableInt = + if (!tlvReader.isNull()) { + tlvReader.getUShort(ContextSpecificTag(TAG_NULLABLE_INT)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_INT)) + null + } + val optionalInt = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_INT))) { + Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_OPTIONAL_INT))) + } else { + Optional.empty() + } + val nullableOptionalInt = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT))) { + Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT)) + null + } + val nullableString = + if (!tlvReader.isNull()) { + tlvReader.getString(ContextSpecificTag(TAG_NULLABLE_STRING)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_STRING)) + null + } + val optionalString = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_STRING))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_OPTIONAL_STRING))) + } else { + Optional.empty() + } + val nullableOptionalString = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING)) + null + } + val nullableStruct = + if (!tlvReader.isNull()) { + UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_NULLABLE_STRUCT), tlvReader) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_STRUCT)) + null + } + val optionalStruct = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_STRUCT))) { + Optional.of( + UnitTestingClusterSimpleStruct.fromTlv( + ContextSpecificTag(TAG_OPTIONAL_STRUCT), + tlvReader + ) + ) + } else { + Optional.empty() + } + val nullableOptionalStruct = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT))) { + Optional.of( + UnitTestingClusterSimpleStruct.fromTlv( + ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT), + tlvReader + ) + ) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT)) + null + } + val nullableList = + if (!tlvReader.isNull()) { + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_NULLABLE_LIST)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_LIST)) + null + } + val optionalList = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_LIST))) { + Optional.of( + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_OPTIONAL_LIST)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + ) + } else { + Optional.empty() + } + val nullableOptionalList = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST))) { + Optional.of( + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + ) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST)) + null + } + tlvReader.exitContainer() - return UnitTestingClusterNullablesAndOptionalsStruct(nullableInt, optionalInt, nullableOptionalInt, nullableString, optionalString, nullableOptionalString, nullableStruct, optionalStruct, nullableOptionalStruct, nullableList, optionalList, nullableOptionalList) + return UnitTestingClusterNullablesAndOptionalsStruct( + nullableInt, + optionalInt, + nullableOptionalInt, + nullableString, + optionalString, + nullableOptionalString, + nullableStruct, + optionalStruct, + nullableOptionalStruct, + nullableList, + optionalList, + nullableOptionalList + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterSimpleStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterSimpleStruct.kt index 1133ec335e821f..4c1dfe9e93b76e 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterSimpleStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterSimpleStruct.kt @@ -17,25 +17,22 @@ package matter.devicecontroller.cluster.structs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class UnitTestingClusterSimpleStruct ( - val a: UByte, - val b: Boolean, - val c: UInt, - val d: ByteArray, - val e: String, - val f: UInt, - val g: Float, - val h: Double) { - override fun toString(): String = buildString { +class UnitTestingClusterSimpleStruct( + val a: UByte, + val b: Boolean, + val c: UInt, + val d: ByteArray, + val e: String, + val f: UInt, + val g: Float, + val h: Double +) { + override fun toString(): String = buildString { append("UnitTestingClusterSimpleStruct {\n") append("\ta : $a\n") append("\tb : $b\n") @@ -73,7 +70,7 @@ class UnitTestingClusterSimpleStruct ( private const val TAG_G = 6 private const val TAG_H = 7 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : UnitTestingClusterSimpleStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UnitTestingClusterSimpleStruct { tlvReader.enterStructure(tlvTag) val a = tlvReader.getUByte(ContextSpecificTag(TAG_A)) val b = tlvReader.getBoolean(ContextSpecificTag(TAG_B)) @@ -83,7 +80,7 @@ class UnitTestingClusterSimpleStruct ( val f = tlvReader.getUInt(ContextSpecificTag(TAG_F)) val g = tlvReader.getFloat(ContextSpecificTag(TAG_G)) val h = tlvReader.getDouble(ContextSpecificTag(TAG_H)) - + tlvReader.exitContainer() return UnitTestingClusterSimpleStruct(a, b, c, d, e, f, g, h) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterTestFabricScoped.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterTestFabricScoped.kt index 50e64c0b2130e5..0fae66d5d86dc0 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterTestFabricScoped.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterTestFabricScoped.kt @@ -16,26 +16,25 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class UnitTestingClusterTestFabricScoped ( - val fabricSensitiveInt8u: UByte, - val optionalFabricSensitiveInt8u: Optional, - val nullableFabricSensitiveInt8u: UByte?, - val nullableOptionalFabricSensitiveInt8u: Optional?, - val fabricSensitiveCharString: String, - val fabricSensitiveStruct: UnitTestingClusterSimpleStruct, - val fabricSensitiveInt8uList: List, - val fabricIndex: UByte) { - override fun toString(): String = buildString { +class UnitTestingClusterTestFabricScoped( + val fabricSensitiveInt8u: UByte, + val optionalFabricSensitiveInt8u: Optional, + val nullableFabricSensitiveInt8u: UByte?, + val nullableOptionalFabricSensitiveInt8u: Optional?, + val fabricSensitiveCharString: String, + val fabricSensitiveStruct: UnitTestingClusterSimpleStruct, + val fabricSensitiveInt8uList: List, + val fabricIndex: UByte +) { + override fun toString(): String = buildString { append("UnitTestingClusterTestFabricScoped {\n") append("\tfabricSensitiveInt8u : $fabricSensitiveInt8u\n") append("\toptionalFabricSensitiveInt8u : $optionalFabricSensitiveInt8u\n") @@ -53,22 +52,28 @@ class UnitTestingClusterTestFabricScoped ( startStructure(tlvTag) put(ContextSpecificTag(TAG_FABRIC_SENSITIVE_INT8U), fabricSensitiveInt8u) if (optionalFabricSensitiveInt8u.isPresent) { - val optoptionalFabricSensitiveInt8u = optionalFabricSensitiveInt8u.get() - put(ContextSpecificTag(TAG_OPTIONAL_FABRIC_SENSITIVE_INT8U), optoptionalFabricSensitiveInt8u) - } + val optoptionalFabricSensitiveInt8u = optionalFabricSensitiveInt8u.get() + put( + ContextSpecificTag(TAG_OPTIONAL_FABRIC_SENSITIVE_INT8U), + optoptionalFabricSensitiveInt8u + ) + } if (nullableFabricSensitiveInt8u != null) { - put(ContextSpecificTag(TAG_NULLABLE_FABRIC_SENSITIVE_INT8U), nullableFabricSensitiveInt8u) - } else { - putNull(ContextSpecificTag(TAG_NULLABLE_FABRIC_SENSITIVE_INT8U)) - } + put(ContextSpecificTag(TAG_NULLABLE_FABRIC_SENSITIVE_INT8U), nullableFabricSensitiveInt8u) + } else { + putNull(ContextSpecificTag(TAG_NULLABLE_FABRIC_SENSITIVE_INT8U)) + } if (nullableOptionalFabricSensitiveInt8u != null) { - if (nullableOptionalFabricSensitiveInt8u.isPresent) { - val optnullableOptionalFabricSensitiveInt8u = nullableOptionalFabricSensitiveInt8u.get() - put(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U), optnullableOptionalFabricSensitiveInt8u) - } - } else { - putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U)) - } + if (nullableOptionalFabricSensitiveInt8u.isPresent) { + val optnullableOptionalFabricSensitiveInt8u = nullableOptionalFabricSensitiveInt8u.get() + put( + ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U), + optnullableOptionalFabricSensitiveInt8u + ) + } + } else { + putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U)) + } put(ContextSpecificTag(TAG_FABRIC_SENSITIVE_CHAR_STRING), fabricSensitiveCharString) fabricSensitiveStruct.toTlv(ContextSpecificTag(TAG_FABRIC_SENSITIVE_STRUCT), this) startArray(ContextSpecificTag(TAG_FABRIC_SENSITIVE_INT8U_LIST)) @@ -91,44 +96,66 @@ class UnitTestingClusterTestFabricScoped ( private const val TAG_FABRIC_SENSITIVE_INT8U_LIST = 7 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : UnitTestingClusterTestFabricScoped { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UnitTestingClusterTestFabricScoped { tlvReader.enterStructure(tlvTag) val fabricSensitiveInt8u = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_SENSITIVE_INT8U)) - val optionalFabricSensitiveInt8u = if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_FABRIC_SENSITIVE_INT8U))) { - Optional.of(tlvReader.getUByte(ContextSpecificTag(TAG_OPTIONAL_FABRIC_SENSITIVE_INT8U))) - } else { - Optional.empty() - } - val nullableFabricSensitiveInt8u = if (!tlvReader.isNull()) { - tlvReader.getUByte(ContextSpecificTag(TAG_NULLABLE_FABRIC_SENSITIVE_INT8U)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_FABRIC_SENSITIVE_INT8U)) - null - } - val nullableOptionalFabricSensitiveInt8u = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U))) { - Optional.of(tlvReader.getUByte(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U)) - null - } - val fabricSensitiveCharString = tlvReader.getString(ContextSpecificTag(TAG_FABRIC_SENSITIVE_CHAR_STRING)) - val fabricSensitiveStruct = UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_FABRIC_SENSITIVE_STRUCT), tlvReader) - val fabricSensitiveInt8uList = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_FABRIC_SENSITIVE_INT8U_LIST)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUByte(AnonymousTag)) - } - tlvReader.exitContainer() - } + val optionalFabricSensitiveInt8u = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_FABRIC_SENSITIVE_INT8U))) { + Optional.of(tlvReader.getUByte(ContextSpecificTag(TAG_OPTIONAL_FABRIC_SENSITIVE_INT8U))) + } else { + Optional.empty() + } + val nullableFabricSensitiveInt8u = + if (!tlvReader.isNull()) { + tlvReader.getUByte(ContextSpecificTag(TAG_NULLABLE_FABRIC_SENSITIVE_INT8U)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_FABRIC_SENSITIVE_INT8U)) + null + } + val nullableOptionalFabricSensitiveInt8u = + if (!tlvReader.isNull()) { + if ( + tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U)) + ) { + Optional.of( + tlvReader.getUByte(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U)) + ) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U)) + null + } + val fabricSensitiveCharString = + tlvReader.getString(ContextSpecificTag(TAG_FABRIC_SENSITIVE_CHAR_STRING)) + val fabricSensitiveStruct = + UnitTestingClusterSimpleStruct.fromTlv( + ContextSpecificTag(TAG_FABRIC_SENSITIVE_STRUCT), + tlvReader + ) + val fabricSensitiveInt8uList = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_FABRIC_SENSITIVE_INT8U_LIST)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUByte(AnonymousTag)) + } + tlvReader.exitContainer() + } val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() - return UnitTestingClusterTestFabricScoped(fabricSensitiveInt8u, optionalFabricSensitiveInt8u, nullableFabricSensitiveInt8u, nullableOptionalFabricSensitiveInt8u, fabricSensitiveCharString, fabricSensitiveStruct, fabricSensitiveInt8uList, fabricIndex) + return UnitTestingClusterTestFabricScoped( + fabricSensitiveInt8u, + optionalFabricSensitiveInt8u, + nullableFabricSensitiveInt8u, + nullableOptionalFabricSensitiveInt8u, + fabricSensitiveCharString, + fabricSensitiveStruct, + fabricSensitiveInt8uList, + fabricIndex + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterTestListStructOctet.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterTestListStructOctet.kt index f836217fd8ae5b..9e49970a89db9c 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterTestListStructOctet.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterTestListStructOctet.kt @@ -17,19 +17,13 @@ package matter.devicecontroller.cluster.structs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class UnitTestingClusterTestListStructOctet ( - val member1: ULong, - val member2: ByteArray) { - override fun toString(): String = buildString { +class UnitTestingClusterTestListStructOctet(val member1: ULong, val member2: ByteArray) { + override fun toString(): String = buildString { append("UnitTestingClusterTestListStructOctet {\n") append("\tmember1 : $member1\n") append("\tmember2 : $member2\n") @@ -49,11 +43,11 @@ class UnitTestingClusterTestListStructOctet ( private const val TAG_MEMBER1 = 0 private const val TAG_MEMBER2 = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : UnitTestingClusterTestListStructOctet { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UnitTestingClusterTestListStructOctet { tlvReader.enterStructure(tlvTag) val member1 = tlvReader.getULong(ContextSpecificTag(TAG_MEMBER1)) val member2 = tlvReader.getByteArray(ContextSpecificTag(TAG_MEMBER2)) - + tlvReader.exitContainer() return UnitTestingClusterTestListStructOctet(member1, member2) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UserLabelClusterLabelStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UserLabelClusterLabelStruct.kt index 900ff7c1f2b3f9..ffc34fe8515c2c 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UserLabelClusterLabelStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UserLabelClusterLabelStruct.kt @@ -17,19 +17,13 @@ package matter.devicecontroller.cluster.structs import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class UserLabelClusterLabelStruct ( - val label: String, - val value: String) { - override fun toString(): String = buildString { +class UserLabelClusterLabelStruct(val label: String, val value: String) { + override fun toString(): String = buildString { append("UserLabelClusterLabelStruct {\n") append("\tlabel : $label\n") append("\tvalue : $value\n") @@ -49,11 +43,11 @@ class UserLabelClusterLabelStruct ( private const val TAG_LABEL = 0 private const val TAG_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : UserLabelClusterLabelStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UserLabelClusterLabelStruct { tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val value = tlvReader.getString(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return UserLabelClusterLabelStruct(label, value)