diff --git a/src/main/java/be/maximvdw/spigotsite/api/user/Conversation.java b/src/main/java/be/maximvdw/spigotsite/api/user/Conversation.java index 9349406..3aa7f07 100644 --- a/src/main/java/be/maximvdw/spigotsite/api/user/Conversation.java +++ b/src/main/java/be/maximvdw/spigotsite/api/user/Conversation.java @@ -53,6 +53,17 @@ public interface Conversation { */ public boolean isUnread(); + /** + * Set the unread status of a conversation + * + * @param user + * Authenticated user + * @param unreadOrNot + * True to set unread, false to set read + */ + public void markAsUnread(User user, + boolean unreadOrNot) throws SpamWarningException; + /** * Get the last replier * diff --git a/src/main/java/be/maximvdw/spigotsite/api/user/ConversationManager.java b/src/main/java/be/maximvdw/spigotsite/api/user/ConversationManager.java index 2e51fe3..727a19c 100644 --- a/src/main/java/be/maximvdw/spigotsite/api/user/ConversationManager.java +++ b/src/main/java/be/maximvdw/spigotsite/api/user/ConversationManager.java @@ -31,6 +31,19 @@ public List getConversations(User user, int count) public void replyToConversation(Conversation conversation, User user, String reply) throws SpamWarningException; + /** + * Set the unread status of a conversation + * + * @param conversation + * Conversation + * @param user + * Authenticated user + * @param unreadOrNot + * True to set unread, false to set read + */ + public void markAsUnread(Conversation conversation, User user, + boolean unreadOrNot) throws SpamWarningException; + /** * Leave a conversation *