mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Initial public API refactoring experiment
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import SwiftSignalKit
|
||||
import Postbox
|
||||
|
||||
public final class TelegramEngine {
|
||||
public let account: Account
|
||||
|
||||
public init(account: Account) {
|
||||
self.account = account
|
||||
}
|
||||
|
||||
public lazy var secureId: SecureId = {
|
||||
return SecureId(account: self.account)
|
||||
}()
|
||||
|
||||
public lazy var peersNearby: PeersNearby = {
|
||||
return PeersNearby(account: self.account)
|
||||
}()
|
||||
}
|
||||
Reference in New Issue
Block a user