From: David ‘Bombe’ Roden <bombe@pterodactylus.net>
Date: Fri, 15 Oct 2010 19:39:52 +0000 (+0200)
Subject: Add ID-only constructors.
X-Git-Tag: 0.1-RC1~320
X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=d429bc07de2c62921323f300024c2df348ae71cf;p=Sone.git

Add ID-only constructors.
---

diff --git a/src/main/java/net/pterodactylus/sone/data/Post.java b/src/main/java/net/pterodactylus/sone/data/Post.java
index 5124b49..c8a3229 100644
--- a/src/main/java/net/pterodactylus/sone/data/Post.java
+++ b/src/main/java/net/pterodactylus/sone/data/Post.java
@@ -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
diff --git a/src/main/java/net/pterodactylus/sone/data/Reply.java b/src/main/java/net/pterodactylus/sone/data/Reply.java
index c97d57b..60bbc6d 100644
--- a/src/main/java/net/pterodactylus/sone/data/Reply.java
+++ b/src/main/java/net/pterodactylus/sone/data/Reply.java
@@ -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