Updated on 2026-08-14

This commit is contained in:
Tangem 2024-06-28 16:33:29 +08:00
parent e1262077cf
commit 75763fb2e0
7 changed files with 103 additions and 47 deletions

View file

@ -36,11 +36,19 @@ sealed class Settings(
) : Settings("Settings / Card Settings", event, params, error) {
class ButtonFactoryReset : CardSettings("Button - Factory Reset")
class FactoryResetFinished(error: Throwable? = null) : CardSettings(
class FactoryResetFinished(cardsCount: Int? = null, error: Throwable? = null) : CardSettings(
event = "Factory Reset Finished",
params = buildMap {
cardsCount?.let { put("Cards Count", "$it") }
},
error = error,
)
class FactoryResetCanceled(cardsCount: Int) : CardSettings(
event = "Factory Reset Canceled",
params = mapOf("Cards Count" to "$cardsCount"),
)
class UserCodeChanged : CardSettings("User Code Changed")
class ButtonChangeSecurityMode : CardSettings("Button - Change Security Mode")