Skip to content

Commit

Permalink
Regenerate files
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterC1965 committed Aug 21, 2024
1 parent 8f63c49 commit e854d86
Show file tree
Hide file tree
Showing 367 changed files with 128,546 additions and 116,172 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
*/
package matter.controller.cluster.eventstructs

import java.util.Optional
import matter.controller.cluster.*
import matter.tlv.AnonymousTag
import matter.tlv.ContextSpecificTag
import matter.tlv.Tag
import matter.tlv.TlvReader
Expand All @@ -27,7 +29,7 @@ class AccessControlClusterAccessControlEntryChangedEvent(
val adminPasscodeID: UShort?,
val changeType: UByte,
val latestValue: matter.controller.cluster.structs.AccessControlClusterAccessControlEntryStruct?,
val fabricIndex: UByte,
val fabricIndex: UByte
) {
override fun toString(): String = buildString {
append("AccessControlClusterAccessControlEntryChangedEvent {\n")
Expand Down Expand Up @@ -70,47 +72,32 @@ 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_ID))
} else {
tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_NODE_ID))
null
}
val adminPasscodeID =
if (!tlvReader.isNull()) {
tlvReader.getUShort(ContextSpecificTag(TAG_ADMIN_PASSCODE_ID))
} else {
tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_ID))
null
}
val adminNodeID = if (!tlvReader.isNull()) {
tlvReader.getULong(ContextSpecificTag(TAG_ADMIN_NODE_ID))
} else {
tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_NODE_ID))
null
}
val adminPasscodeID = if (!tlvReader.isNull()) {
tlvReader.getUShort(ContextSpecificTag(TAG_ADMIN_PASSCODE_ID))
} else {
tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_ID))
null
}
val changeType = tlvReader.getUByte(ContextSpecificTag(TAG_CHANGE_TYPE))
val latestValue =
if (!tlvReader.isNull()) {
matter.controller.cluster.structs.AccessControlClusterAccessControlEntryStruct.fromTlv(
ContextSpecificTag(TAG_LATEST_VALUE),
tlvReader,
)
} else {
tlvReader.getNull(ContextSpecificTag(TAG_LATEST_VALUE))
null
}
val latestValue = if (!tlvReader.isNull()) {
matter.controller.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)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
*/
package matter.controller.cluster.eventstructs

import java.util.Optional
import matter.controller.cluster.*
import matter.tlv.AnonymousTag
import matter.tlv.ContextSpecificTag
import matter.tlv.Tag
import matter.tlv.TlvReader
Expand All @@ -26,9 +28,8 @@ class AccessControlClusterAccessControlExtensionChangedEvent(
val adminNodeID: ULong?,
val adminPasscodeID: UShort?,
val changeType: UByte,
val latestValue:
matter.controller.cluster.structs.AccessControlClusterAccessControlExtensionStruct?,
val fabricIndex: UByte,
val latestValue: matter.controller.cluster.structs.AccessControlClusterAccessControlExtensionStruct?,
val fabricIndex: UByte
) {
override fun toString(): String = buildString {
append("AccessControlClusterAccessControlExtensionChangedEvent {\n")
Expand Down Expand Up @@ -71,45 +72,32 @@ 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_ID))
} else {
tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_NODE_ID))
null
}
val adminPasscodeID =
if (!tlvReader.isNull()) {
tlvReader.getUShort(ContextSpecificTag(TAG_ADMIN_PASSCODE_ID))
} else {
tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_ID))
null
}
val adminNodeID = if (!tlvReader.isNull()) {
tlvReader.getULong(ContextSpecificTag(TAG_ADMIN_NODE_ID))
} else {
tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_NODE_ID))
null
}
val adminPasscodeID = if (!tlvReader.isNull()) {
tlvReader.getUShort(ContextSpecificTag(TAG_ADMIN_PASSCODE_ID))
} else {
tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_ID))
null
}
val changeType = tlvReader.getUByte(ContextSpecificTag(TAG_CHANGE_TYPE))
val latestValue =
if (!tlvReader.isNull()) {
matter.controller.cluster.structs.AccessControlClusterAccessControlExtensionStruct
.fromTlv(ContextSpecificTag(TAG_LATEST_VALUE), tlvReader)
} else {
tlvReader.getNull(ContextSpecificTag(TAG_LATEST_VALUE))
null
}
val latestValue = if (!tlvReader.isNull()) {
matter.controller.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)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,17 @@
*/
package matter.controller.cluster.eventstructs

import java.util.Optional
import matter.controller.cluster.*
import matter.tlv.AnonymousTag
import matter.tlv.ContextSpecificTag
import matter.tlv.Tag
import matter.tlv.TlvReader
import matter.tlv.TlvWriter

class AccessControlClusterAccessRestrictionEntryChangedEvent(val fabricIndex: UByte) {
class AccessControlClusterAccessRestrictionEntryChangedEvent(
val fabricIndex: UByte
) {
override fun toString(): String = buildString {
append("AccessControlClusterAccessRestrictionEntryChangedEvent {\n")
append("\tfabricIndex : $fabricIndex\n")
Expand All @@ -40,13 +44,10 @@ class AccessControlClusterAccessRestrictionEntryChangedEvent(val fabricIndex: UB
companion object {
private const val TAG_FABRIC_INDEX = 254

fun fromTlv(
tlvTag: Tag,
tlvReader: TlvReader,
): AccessControlClusterAccessRestrictionEntryChangedEvent {
fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : AccessControlClusterAccessRestrictionEntryChangedEvent {
tlvReader.enterStructure(tlvTag)
val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX))

tlvReader.exitContainer()

return AccessControlClusterAccessRestrictionEntryChangedEvent(fabricIndex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
*/
package matter.controller.cluster.eventstructs

import java.util.Optional
import matter.controller.cluster.*
import matter.tlv.AnonymousTag
import matter.tlv.ContextSpecificTag
import matter.tlv.Tag
import matter.tlv.TlvReader
Expand All @@ -26,7 +28,7 @@ class AccessControlClusterFabricRestrictionReviewUpdateEvent(
val token: ULong,
val instruction: String?,
val redirectURL: String?,
val fabricIndex: UByte,
val fabricIndex: UByte
) {
override fun toString(): String = buildString {
append("AccessControlClusterFabricRestrictionReviewUpdateEvent {\n")
Expand Down Expand Up @@ -62,36 +64,26 @@ class AccessControlClusterFabricRestrictionReviewUpdateEvent(
private const val TAG_REDIRECT_URL = 2
private const val TAG_FABRIC_INDEX = 254

fun fromTlv(
tlvTag: Tag,
tlvReader: TlvReader,
): AccessControlClusterFabricRestrictionReviewUpdateEvent {
fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : AccessControlClusterFabricRestrictionReviewUpdateEvent {
tlvReader.enterStructure(tlvTag)
val token = tlvReader.getULong(ContextSpecificTag(TAG_TOKEN))
val instruction =
if (!tlvReader.isNull()) {
tlvReader.getString(ContextSpecificTag(TAG_INSTRUCTION))
} else {
tlvReader.getNull(ContextSpecificTag(TAG_INSTRUCTION))
null
}
val redirectURL =
if (!tlvReader.isNull()) {
tlvReader.getString(ContextSpecificTag(TAG_REDIRECT_URL))
} else {
tlvReader.getNull(ContextSpecificTag(TAG_REDIRECT_URL))
null
}
val instruction = if (!tlvReader.isNull()) {
tlvReader.getString(ContextSpecificTag(TAG_INSTRUCTION))
} else {
tlvReader.getNull(ContextSpecificTag(TAG_INSTRUCTION))
null
}
val redirectURL = if (!tlvReader.isNull()) {
tlvReader.getString(ContextSpecificTag(TAG_REDIRECT_URL))
} else {
tlvReader.getNull(ContextSpecificTag(TAG_REDIRECT_URL))
null
}
val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX))

tlvReader.exitContainer()

return AccessControlClusterFabricRestrictionReviewUpdateEvent(
token,
instruction,
redirectURL,
fabricIndex,
)
return AccessControlClusterFabricRestrictionReviewUpdateEvent(token, instruction, redirectURL, fabricIndex)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,15 @@ package matter.controller.cluster.eventstructs

import java.util.Optional
import matter.controller.cluster.*
import matter.tlv.AnonymousTag
import matter.tlv.ContextSpecificTag
import matter.tlv.Tag
import matter.tlv.TlvReader
import matter.tlv.TlvWriter

class AccountLoginClusterLoggedOutEvent(val node: Optional<ULong>) {
class AccountLoginClusterLoggedOutEvent(
val node: Optional<ULong>
) {
override fun toString(): String = buildString {
append("AccountLoginClusterLoggedOutEvent {\n")
append("\tnode : $node\n")
Expand All @@ -44,15 +47,14 @@ class AccountLoginClusterLoggedOutEvent(val node: Optional<ULong>) {
companion object {
private const val TAG_NODE = 0

fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): AccountLoginClusterLoggedOutEvent {
fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : AccountLoginClusterLoggedOutEvent {
tlvReader.enterStructure(tlvTag)
val node =
if (tlvReader.isNextTag(ContextSpecificTag(TAG_NODE))) {
Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_NODE)))
} else {
Optional.empty()
}

val node = if (tlvReader.isNextTag(ContextSpecificTag(TAG_NODE))) {
Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_NODE)))
} else {
Optional.empty()
}

tlvReader.exitContainer()

return AccountLoginClusterLoggedOutEvent(node)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
*/
package matter.controller.cluster.eventstructs

import java.util.Optional
import matter.controller.cluster.*
import matter.tlv.AnonymousTag
import matter.tlv.ContextSpecificTag
import matter.tlv.Tag
import matter.tlv.TlvReader
Expand All @@ -26,7 +28,7 @@ class ActionsClusterActionFailedEvent(
val actionID: UShort,
val invokeID: UInt,
val newState: UByte,
val error: UByte,
val error: UByte
) {
override fun toString(): String = buildString {
append("ActionsClusterActionFailedEvent {\n")
Expand Down Expand Up @@ -54,13 +56,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_ID))
val invokeID = tlvReader.getUInt(ContextSpecificTag(TAG_INVOKE_ID))
val newState = tlvReader.getUByte(ContextSpecificTag(TAG_NEW_STATE))
val error = tlvReader.getUByte(ContextSpecificTag(TAG_ERROR))

tlvReader.exitContainer()

return ActionsClusterActionFailedEvent(actionID, invokeID, newState, error)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
*/
package matter.controller.cluster.eventstructs

import java.util.Optional
import matter.controller.cluster.*
import matter.tlv.AnonymousTag
import matter.tlv.ContextSpecificTag
import matter.tlv.Tag
import matter.tlv.TlvReader
Expand All @@ -25,7 +27,7 @@ import matter.tlv.TlvWriter
class ActionsClusterStateChangedEvent(
val actionID: UShort,
val invokeID: UInt,
val newState: UByte,
val newState: UByte
) {
override fun toString(): String = buildString {
append("ActionsClusterStateChangedEvent {\n")
Expand All @@ -50,12 +52,12 @@ class ActionsClusterStateChangedEvent(
private const val TAG_INVOKE_ID = 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_ID))
val invokeID = tlvReader.getUInt(ContextSpecificTag(TAG_INVOKE_ID))
val newState = tlvReader.getUByte(ContextSpecificTag(TAG_NEW_STATE))

tlvReader.exitContainer()

return ActionsClusterStateChangedEvent(actionID, invokeID, newState)
Expand Down
Loading

0 comments on commit e854d86

Please sign in to comment.