mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-06-20 18:24:43 +00:00
5c1613d104
git-subtree-dir: submodules/TelegramCore git-subtree-mainline:971273e8f8git-subtree-split:9561227540
24 lines
713 B
Swift
24 lines
713 B
Swift
import Foundation
|
|
|
|
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
|
|
}
|
|
}
|
|
}
|
|
}
|