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,15 @@
import SwiftSignalKit
public extension TelegramEngine {
final class SecureId {
private let account: Account
init(account: Account) {
self.account = account
}
public func accessSecureId(password: String) -> Signal<(context: SecureIdAccessContext, settings: TwoStepVerificationSettings), SecureIdAccessError> {
return _internal_accessSecureId(network: self.account.network, password: password)
}
}
}