public void ProcesLocalNotificationAction(NotificationModel notification) { var notificationActionHandler = new ActionHandlerService(); SwitchAreaIfNeeded(notification.AreaGUID); notificationActionHandler.HandleActionAsync(notification.Action); }
public async void ProcesRemoteNotificationAction(NotificationModel notificaton) { var notificationActionHandler = new ActionHandlerService(); var notificationModel = await SL.Manager.AcknowledgeNotification(notificaton.NotificationUID, null); if (notificationModel == null) { return; } SwitchAreaIfNeeded(notificaton.AreaGUID); notificationActionHandler.HandleActionAsync(notificationModel.Action); }
public void SwitchAreaIfNeeded(string areaGuid) { ActionHandlerService.SwitchAreaIfNeeded(areaGuid); }