diff options
author | Arsentiy Milchakov <milcars@mapswithme.com> | 2019-03-21 15:06:53 +0300 |
---|---|---|
committer | Roman Kuznetsov <r.kuznetsow@gmail.com> | 2019-03-27 13:46:15 +0300 |
commit | 69fb7d97e87cb5c4f82eeed48f7430839f9417f8 (patch) | |
tree | bab7d1d0f4498a1cb25aa99e0d11b8844c072f97 /iphone | |
parent | 9d45071fd1338f6986eaa18121beae1f88526e0f (diff) |
[lightweight] Delegate is added into lightweight framework
Diffstat (limited to 'iphone')
-rw-r--r-- | iphone/Maps/Core/Notifications/LocalNotificationManager.mm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/iphone/Maps/Core/Notifications/LocalNotificationManager.mm b/iphone/Maps/Core/Notifications/LocalNotificationManager.mm index cbc2f61b84..f777452560 100644 --- a/iphone/Maps/Core/Notifications/LocalNotificationManager.mm +++ b/iphone/Maps/Core/Notifications/LocalNotificationManager.mm @@ -4,8 +4,12 @@ #import "Statistics.h" #include "map/framework_light.hpp" +#include "map/framework_light_delegate.hpp" + #include "platform/network_policy_ios.h" +#include "Framework.h" + static NSString * const kLastUGCNotificationDate = @"LastUGCNotificationDate"; @implementation LocalNotificationManager @@ -39,8 +43,10 @@ static NSString * const kLastUGCNotificationDate = @"LastUGCNotificationDate"; + (CoreNotificationWrapper *)reviewNotificationWrapper { - lightweight::Framework const framework(lightweight::REQUEST_TYPE_NOTIFICATION); + lightweight::Framework framework(lightweight::REQUEST_TYPE_NOTIFICATION); + framework.SetDelegate(make_unique<FrameworkLightDelegate>(GetFramework())); auto const notificationCandidate = framework.GetNotification(); + if (notificationCandidate) { auto const notification = notificationCandidate.get(); |