mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
25 lines
729 B
Swift
25 lines
729 B
Swift
import Foundation
|
|
import SyncCore
|
|
|
|
public enum SecureIdVerificationDocumentReference: Equatable {
|
|
case remote(SecureIdFileReference)
|
|
case uploaded(UploadedSecureIdFile)
|
|
|
|
public static func ==(lhs: SecureIdVerificationDocumentReference, rhs: SecureIdVerificationDocumentReference) -> Bool {
|
|
switch lhs {
|
|
case let .remote(file):
|
|
if case .remote(file) = rhs {
|
|
return true
|
|
} else {
|
|
return false
|
|
}
|
|
case let .uploaded(file):
|
|
if case .uploaded(file) = rhs {
|
|
return true
|
|
} else {
|
|
return false
|
|
}
|
|
}
|
|
}
|
|
}
|