Fix temp card payload type name collision
All checks were successful
build-and-deploy / build-deploy (push) Successful in 34s
All checks were successful
build-and-deploy / build-deploy (push) Successful in 34s
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user