X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fdata%2FPost.java;h=1a294805dec312829ea49623d748875f37bfc946;hp=a28bf9f7623b3020139b07e1d470f0de8c509c4d;hb=39ed514e96c15e07aba9478d3cbf304e5f1fda8f;hpb=c3240e5c85d0cd49e346939f864cf93fa36daed0 diff --git a/src/main/java/net/pterodactylus/sone/data/Post.java b/src/main/java/net/pterodactylus/sone/data/Post.java index a28bf9f..1a29480 100644 --- a/src/main/java/net/pterodactylus/sone/data/Post.java +++ b/src/main/java/net/pterodactylus/sone/data/Post.java @@ -65,6 +65,9 @@ public class Post { /** The text of the post. */ private volatile String text; + /** Whether the post is known. */ + private volatile boolean known; + /** * Creates a new post. * @@ -219,6 +222,27 @@ public class Post { return this; } + /** + * Returns whether this post is known. + * + * @return {@code true} if this post is known, {@code false} otherwise + */ + public boolean isKnown() { + return known; + } + + /** + * Sets whether this post is known. + * + * @param known + * {@code true} if this post is known, {@code false} otherwise + * @return This post + */ + public Post setKnown(boolean known) { + this.known = known; + return this; + } + // // OBJECT METHODS //