mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
26 lines
734 B
Swift
26 lines
734 B
Swift
import Foundation
|
|
import SwiftSignalKit
|
|
import TelegramCore
|
|
import AccountContext
|
|
import WatchBridge
|
|
|
|
public final class WatchManagerImpl: WatchManager {
|
|
private let arguments: WatchManagerArguments?
|
|
|
|
public init(arguments: WatchManagerArguments?) {
|
|
self.arguments = arguments
|
|
}
|
|
|
|
public var watchAppInstalled: Signal<Bool, NoError> {
|
|
return self.arguments?.appInstalled ?? .single(false)
|
|
}
|
|
|
|
public var navigateToMessageRequested: Signal<EngineMessage.Id, NoError> {
|
|
return self.arguments?.navigateToMessageRequested ?? .never()
|
|
}
|
|
|
|
public var runningTasks: Signal<WatchRunningTasks?, NoError> {
|
|
return self.arguments?.runningTasks ?? .single(nil)
|
|
}
|
|
}
|