Fix temp card payload type name collision
All checks were successful
build-and-deploy / build-deploy (push) Successful in 34s

This commit is contained in:
androidlover5842
2026-01-28 06:30:10 +05:30
parent e3420974e5
commit 110d243c73

View File

@@ -145,12 +145,12 @@ class TemporaryRoomCards(
cardIndex: Int,
issuedAt: OffsetDateTime,
expiresAt: OffsetDateTime
): Sector0Payload {
): TempSector0Payload {
val key = buildSector0Block2(roomNumber, cardIndex)
val newData = "0000000000" + formatDateComponents(issuedAt) + formatDateComponents(expiresAt)
val checkSum = calculateChecksum(key + newData)
val finalData = newData + checkSum
return Sector0Payload(key, finalData)
return TempSector0Payload(key, finalData)
}
private fun buildSector0Block2(roomNumber: Int, cardID: Int): String {
@@ -203,7 +203,7 @@ class TemporaryRoomCards(
}
}
private data class Sector0Payload(
private data class TempSector0Payload(
val key: String,
val timeData: String
)