Remove post management methods from Sone.
[Sone.git] / src / main / java / net / pterodactylus / sone / data / Sone.java
index 27f2cb1..2cf8bf6 100644 (file)
@@ -259,15 +259,6 @@ public interface Sone extends Identified, Fingerprintable, Comparable<Sone> {
        long getTime();
 
        /**
-        * Sets the time of the last inserted update of this Sone.
-        *
-        * @param time
-        *              The time of the update (in milliseconds since Jan 1, 1970 UTC)
-        * @return This Sone (for method chaining)
-        */
-       Sone setTime(long time);
-
-       /**
         * Returns the status of this Sone.
         *
         * @return The status of this Sone
@@ -312,15 +303,6 @@ public interface Sone extends Identified, Fingerprintable, Comparable<Sone> {
        Client getClient();
 
        /**
-        * Sets the client used by this Sone.
-        *
-        * @param client
-        *              The client used by this Sone, or {@code null}
-        * @return This Sone (for method chaining)
-        */
-       Sone setClient(Client client);
-
-       /**
         * Returns whether this Sone is known.
         *
         * @return {@code true} if this Sone is known, {@code false} otherwise
@@ -341,7 +323,7 @@ public interface Sone extends Identified, Fingerprintable, Comparable<Sone> {
         *
         * @return The friend Sones of this Sone
         */
-       List<String> getFriends();
+       Collection<String> getFriends();
 
        /**
         * Returns whether this Sone has the given Sone as a friend Sone.
@@ -361,32 +343,6 @@ public interface Sone extends Identified, Fingerprintable, Comparable<Sone> {
        List<Post> getPosts();
 
        /**
-        * Sets all posts of this Sone at once.
-        *
-        * @param posts
-        *              The new (and only) posts of this Sone
-        * @return This Sone (for method chaining)
-        */
-       Sone setPosts(Collection<Post> posts);
-
-       /**
-        * Adds the given post to this Sone. The post will not be added if its {@link
-        * Post#getSone() Sone} is not this Sone.
-        *
-        * @param post
-        *              The post to add
-        */
-       void addPost(Post post);
-
-       /**
-        * Removes the given post from this Sone.
-        *
-        * @param post
-        *              The post to remove
-        */
-       void removePost(Post post);
-
-       /**
         * Returns all replies this Sone made.
         *
         * @return All replies this Sone made