mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
20 lines
523 B
Swift
20 lines
523 B
Swift
import SwiftSignalKit
|
|
|
|
public extension TelegramEngine {
|
|
final class AccountData {
|
|
private let account: Account
|
|
|
|
init(account: Account) {
|
|
self.account = account
|
|
}
|
|
|
|
public func acceptTermsOfService(id: String) -> Signal<Void, NoError> {
|
|
return _internal_acceptTermsOfService(account: self.account, id: id)
|
|
}
|
|
|
|
func resetAccountDueTermsOfService() -> Signal<Void, NoError> {
|
|
return _internal_resetAccountDueTermsOfService(network: self.account.network)
|
|
}
|
|
}
|
|
}
|