Refactor more modules

This commit is contained in:
Peter
2019-08-05 15:04:45 +03:00
parent 287be2785e
commit 9ac37c00c0
498 changed files with 8516 additions and 2777 deletions

View File

@@ -0,0 +1,23 @@
import Foundation
import SwiftSignalKit
import Postbox
public struct WatchRunningTasks: Equatable {
public let running: Bool
public let version: Int32
public init(running: Bool, version: Int32) {
self.running = running
self.version = version
}
public static func ==(lhs: WatchRunningTasks, rhs: WatchRunningTasks) -> Bool {
return lhs.running == rhs.running && lhs.version == rhs.version
}
}
public protocol WatchManager: class {
var watchAppInstalled: Signal<Bool, NoError> { get }
var navigateToMessageRequested: Signal<MessageId, NoError> { get }
var runningTasks: Signal<WatchRunningTasks?, NoError> { get }
}