mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Initial public API refactoring experiment
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user