From d9b4e21c6156d2cdcaa3ed7f0e45a43b20e2a8c0 Mon Sep 17 00:00:00 2001 From: Jake Norbut Date: Tue, 16 Apr 2019 10:20:09 -0500 Subject: [PATCH] changing from tuple to simple OrderSecPiq for sanity --- src/client/spark/Daemons/OrderTicketDaemon.cs | 2 +- src/client/spark/Notifications/INotificationService.cs | 2 +- src/client/spark/Notifications/INotificationServiceDataCache.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/spark/Daemons/OrderTicketDaemon.cs b/src/client/spark/Daemons/OrderTicketDaemon.cs index 84e473c46..fa6091f92 100644 --- a/src/client/spark/Daemons/OrderTicketDaemon.cs +++ b/src/client/spark/Daemons/OrderTicketDaemon.cs @@ -19,7 +19,7 @@ namespace bts.shell { readonly OrdersModel _model; readonly ErrorReporter _error_reporter; IReadOnlyDictionary _md_map; - TableUpdate<(SecurityImmutable? sec, OrderRecordImmutable order), uint> _orders; + TableUpdate _orders; IDisposable _dispose; [ImportingConstructor] diff --git a/src/client/spark/Notifications/INotificationService.cs b/src/client/spark/Notifications/INotificationService.cs index a95ac2048..27086e52c 100644 --- a/src/client/spark/Notifications/INotificationService.cs +++ b/src/client/spark/Notifications/INotificationService.cs @@ -55,7 +55,7 @@ namespace bts.shell { void _on_activity(Activity activity) => _activity_notifications.process_item(activity); - void _on_orders(TableUpdate<(SecurityImmutable?,OrderRecordImmutable),uint> update) { + void _on_orders(TableUpdate update) { // must update notification_service_data_cache first, some of the predicate/triggers (esp. ToastNotifications) will use the notification_service_data_cache to lookup order-history _data_cache.update(update.as_iincremental()); foreach (var o in update.added.Concat(update.changed)) diff --git a/src/client/spark/Notifications/INotificationServiceDataCache.cs b/src/client/spark/Notifications/INotificationServiceDataCache.cs index fac9deeed..00fb48eb0 100644 --- a/src/client/spark/Notifications/INotificationServiceDataCache.cs +++ b/src/client/spark/Notifications/INotificationServiceDataCache.cs @@ -50,7 +50,7 @@ namespace bts.shell { public DateTime last_order_reset_time { get; private set; } public bool is_first_order_update { get; private set; } - internal void update(IIncrementalUpdate<(SecurityImmutable? sec, OrderRecordImmutable order), uint> data) { + internal void update(IIncrementalUpdate data) { DateTime now = DateTime.Now; if (data.removed.Count == _order_cache.Count) { last_order_reset_time = now;