Add ID-only constructors.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 15 Oct 2010 19:39:52 +0000 (21:39 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 15 Oct 2010 19:39:52 +0000 (21:39 +0200)
src/main/java/net/pterodactylus/sone/data/Post.java
src/main/java/net/pterodactylus/sone/data/Reply.java

index 5124b49..c8a3229 100644 (file)
@@ -51,6 +51,16 @@ public class Post {
        /**
         * Creates a new post.
         *
+        * @param id
+        *            The ID of the post
+        */
+       public Post(String id) {
+               this(id, null, 0, null);
+       }
+
+       /**
+        * Creates a new post.
+        *
         * @param sone
         *            The Sone this post belongs to
         * @param text
index c97d57b..60bbc6d 100644 (file)
@@ -45,6 +45,16 @@ public class Reply {
        /**
         * Creates a new reply.
         *
+        * @param id
+        *            The ID of the reply
+        */
+       public Reply(String id) {
+               this(id, null, null, 0, null);
+       }
+
+       /**
+        * Creates a new reply.
+        *
         * @param sone
         *            The sone that posted the reply
         * @param post