java.lang.Object
com.amirali.fxdialogs.notifications.NotificationInfoLogger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<NotificationInfo>
returns list of notifications info if json file is existsstatic void
removeIf
(@NotNull NotificationInfo info) remove if notification id is existsstatic void
save
(@NotNull NotificationInfo info) save notification info to json file
-
Constructor Details
-
NotificationInfoLogger
NotificationInfoLogger()
-
-
Method Details
-
save
save notification info to json file- Parameters:
info
- notification info- Throws:
IOException
- file reader,writer exception
-
removeIf
remove if notification id is exists- Parameters:
info
- NotificationInfo- Throws:
IOException
- file reader,writer exception
-
getNotificationsInfo
returns list of notifications info if json file is exists- Returns:
- List
- Throws:
IOException
- file reader,writer exception
-