mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-31 00:10:24 +00:00
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
|
|
}
|
|
}
|
|
}
|
|
}
|