Package de.presti.ree6.news
Class AnnouncementManager
java.lang.Object
de.presti.ree6.news.AnnouncementManager
Announcement Manager used to store and manage announcements.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addAnnouncement
(Announcement announcement) Method used to add an announcement to the list.static void
addReceivedAnnouncement
(long guildId, String announcementId) Method used to add an announcement to the received announcements of a Guild.static boolean
hasReceivedAnnouncement
(long guildId, String announcementId) Method used to check if a Guild already received an announcement.static void
Method used to remove announcements from the list.
-
Constructor Details
-
AnnouncementManager
public AnnouncementManager()
-
-
Method Details
-
addAnnouncement
Method used to add an announcement to the list.- Parameters:
announcement
- Announcement to add.
-
hasReceivedAnnouncement
Method used to check if a Guild already received an announcement.- Parameters:
guildId
- The ID of the Guild.announcementId
- The ID of the Announcement.- Returns:
- True if the Guild already received the announcement.
-
addReceivedAnnouncement
Method used to add an announcement to the received announcements of a Guild.- Parameters:
guildId
- The ID of the Guild.announcementId
- The ID of the Announcement.
-
removeAnnouncement
Method used to remove announcements from the list.- Parameters:
id
- The ID of the announcement to remove.
-