mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Temp
This commit is contained in:
27
submodules/TelegramUI/Sources/WatchManager.swift
Normal file
27
submodules/TelegramUI/Sources/WatchManager.swift
Normal file
@@ -0,0 +1,27 @@
|
||||
import Foundation
|
||||
import SwiftSignalKit
|
||||
import Postbox
|
||||
import TelegramCore
|
||||
import SyncCore
|
||||
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<MessageId, NoError> {
|
||||
return self.arguments?.navigateToMessageRequested ?? .never()
|
||||
}
|
||||
|
||||
public var runningTasks: Signal<WatchRunningTasks?, NoError> {
|
||||
return self.arguments?.runningTasks ?? .single(nil)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user