Initial public API refactoring experiment

This commit is contained in:
Ali
2021-03-23 02:16:48 +04:00
parent e6eff16df1
commit 8d5a945763
32 changed files with 82 additions and 11 deletions

View File

@@ -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
}
}
}
}