mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 08:32:53 +02:00
convert DecryptionFailureTracker to swift + tests
This commit is contained in:
@@ -38,15 +38,16 @@ import AnalyticsEvents
|
||||
/// The id of the event that was unabled to decrypt.
|
||||
let failedEventId: String
|
||||
/// The time the failure has been reported.
|
||||
let ts: TimeInterval = Date().timeIntervalSince1970
|
||||
let ts: TimeInterval
|
||||
/// Decryption failure reason.
|
||||
let reason: DecryptionFailureReason
|
||||
/// Additional context of failure
|
||||
let context: String
|
||||
|
||||
init(failedEventId: String, reason: DecryptionFailureReason, context: String) {
|
||||
init(failedEventId: String, reason: DecryptionFailureReason, context: String, ts: TimeInterval) {
|
||||
self.failedEventId = failedEventId
|
||||
self.reason = reason
|
||||
self.context = context
|
||||
self.ts = ts
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user