From 1e21860da185f9cecec1f1f43651cb3d1a0c522e Mon Sep 17 00:00:00 2001 From: Manodnya Bhoite Date: Wed, 20 Nov 2024 13:44:19 -0800 Subject: [PATCH] Add framework for processing notifications --- .../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 00000000000..9d60ccd6be0 --- /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() { + } +}