Add modifier to post replies to mark them known.
[Sone.git] / src / main / java / net / pterodactylus / sone / data / Reply.java
index c229d04..2c2a7bd 100644 (file)
@@ -91,13 +91,13 @@ public interface Reply<T extends Reply<T>> extends Identified {
         */
        public boolean isKnown();
 
-       /**
-        * Sets whether this reply is known.
-        *
-        * @param known
-        *            {@code true} if this reply is known, {@code false} otherwise
-        * @return This reply
-        */
-       public T setKnown(boolean known);
+       Modifier<T> modify();
+
+       interface Modifier<T> {
+
+               Modifier<T> setKnown();
+               T update();
+
+       }
 
 }