@@ -1,6 +1,7 @@ | |||||
public extension Mic { | public extension Mic { | ||||
enum K { | enum K { | ||||
public static let activityDate = "Mic.activityDate" | public static let activityDate = "Mic.activityDate" | ||||
public static let activityDates = "Mic.activityDates" | |||||
public static let isActive = "Mic.isActive" | public static let isActive = "Mic.isActive" | ||||
public static let MI = "Mic.Model.Item" | public static let MI = "Mic.Model.Item" | ||||
public static let timeout = "Mic.timeout" | public static let timeout = "Mic.timeout" | ||||
@@ -102,6 +102,18 @@ class AppDelegate: UIResponder, UIApplicationDelegate | |||||
} | } | ||||
func testMic4() { | func testMic4() { | ||||
let ad1 = [ | |||||
"1": Date().addingTimeInterval(3), | |||||
"2": Date().addingTimeInterval(5), | |||||
] | |||||
Bus.send(Mic.K.activityDates, ad1) | |||||
DispatchQueue.main.asyncAfter(deadline: .now() + 2) { | |||||
let ad2 = [ | |||||
"1": Date().addingTimeInterval(3), | |||||
"4": Date().addingTimeInterval(5), | |||||
] | |||||
Bus.send(Mic.K.activityDates, ad2) | |||||
} | |||||
} | } | ||||
} | } |