Remove Identified interface
[Sone.git] / src / main / java / net / pterodactylus / sone / data / Post.java
index 95abae6..099f67e 100644 (file)
@@ -30,7 +30,7 @@ import com.google.common.base.Predicate;
  *
  * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
  */
-public interface Post extends Identified {
+public interface Post {
 
        /** Comparator for posts, sorts descending by time. */
        public static final Comparator<Post> TIME_COMPARATOR = new Comparator<Post>() {
@@ -62,6 +62,7 @@ public interface Post extends Identified {
         * @return The ID of the post
         */
        public String getId();
+       String getInternalId();
 
        /**
         * Returns whether this post has already been loaded.
@@ -144,6 +145,11 @@ public interface Post extends Identified {
                }
 
                @Override
+               public String getInternalId() {
+                       return id;
+               }
+
+               @Override
                public boolean isLoaded() {
                        return false;
                }