@@ -1,6 +1,7 @@ | |||||
public extension Mic { | public extension Mic { | ||||
enum K { | enum K { | ||||
public static let activityDate = "Mic.activityDate" | |||||
public static let isActive = "Mic.isActive" | public static let isActive = "Mic.isActive" | ||||
public static let MI = "Mic.ModelItem" | |||||
public static let itemM = "Mic.Item.Model" | |||||
} | } | ||||
} | } |
@@ -10,7 +10,8 @@ extension MicItem { | |||||
public init(_ id: String? = nil) { | public init(_ id: String? = nil) { | ||||
self.id = id | self.id = id | ||||
self.processors = [ | self.processors = [ | ||||
Bus.Sync(shouldResetActivity, Mic.K.MI, Mic.K.isActive), | |||||
//Bus.Pipe(), | |||||
//Bus.Sync(shouldResetActivity, Mic.K.MI, Mic.K.isActive), | |||||
] | ] | ||||
} | } | ||||
@@ -31,7 +31,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate | |||||
window?.makeKeyAndVisible() | window?.makeKeyAndVisible() | ||||
/**/print("ИГР App.didFLWO") | /**/print("ИГР App.didFLWO") | ||||
testMic1() | |||||
//testMic1() | |||||
testMic2() | |||||
return true | return true | ||||
} | } | ||||
@@ -43,4 +44,10 @@ class AppDelegate: UIResponder, UIApplicationDelegate | |||||
Bus.send(Mic.K.isActive, false) | Bus.send(Mic.K.isActive, false) | ||||
} | } | ||||
} | } | ||||
func testMic2() { | |||||
DispatchQueue.main.asyncAfter(deadline: .now() + 2) { | |||||
Bus.send(Mic.K.activityDate, Date() + 5) | |||||
} | |||||
} | |||||
} | } |