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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddAnnouncement(Announcement announcement) Method used to add an announcement to the list.static voidaddReceivedAnnouncement(long guildId, String announcementId) Method used to add an announcement to the received announcements of a Guild.static booleanhasReceivedAnnouncement(long guildId, String announcementId) Method used to check if a Guild already received an announcement.static voidMethod 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.
-