From 5974403fc58c983e3e17dc2c7f54557d4385b82e Mon Sep 17 00:00:00 2001 From: manodnyab <66754471+manodnyab@users.noreply.github.com> Date: Wed, 20 Nov 2024 14:25:16 -0800 Subject: [PATCH] Add framework for processing notifications (#5112) --- .../notifications/ProcessNotificationsBase.kt | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 plugins/core/jetbrains-community/src/software/aws/toolkits/jetbrains/core/notifications/ProcessNotificationsBase.kt diff --git a/plugins/core/jetbrains-community/src/software/aws/toolkits/jetbrains/core/notifications/ProcessNotificationsBase.kt b/plugins/core/jetbrains-community/src/software/aws/toolkits/jetbrains/core/notifications/ProcessNotificationsBase.kt new file mode 100644 index 0000000000..9d60ccd6be --- /dev/null +++ b/plugins/core/jetbrains-community/src/software/aws/toolkits/jetbrains/core/notifications/ProcessNotificationsBase.kt @@ -0,0 +1,29 @@ +// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +package software.aws.toolkits.jetbrains.core.notifications + +class ProcessNotificationsBase { + init { + // TODO: install a listener for the polling class + } + + fun getNotificationsFromFile() { + // TODO: returns a notification list + } + + fun retrieveStartupAndEmergencyNotifications() { + // TODO: separates notifications into startup and emergency + // iterates through the 2 lists and processes each notification(if it isn't dismissed) + } + + fun processNotification() { + // TODO: calls the Rule engine and notifies listeners + } + + fun notifyListenerForNotification() { + } + + fun addListenerForNotification() { + } +}