@@ -0,0 +1,1851 @@
+package ca.ualberta.lard.model;%0A%0A/**%0A * A CommentRequest is a structure that aids in the retrieving of comments. It unifies the arguments passed around, by being a single structure%0A * in which the client can say any number of things they expect of the comment they want. All parameters are optional, and if any of them are set%0A * it is assumed the user is requesting Comments relevant to that parameter.%0A * @author Troy Pavlek%0A *%0A */%0Apublic class CommentRequest %7B%0A%09%0A%09/**%0A%09 * The most important parameter. If the CommentRequest contains an ID, then the user is searching for a specific, single comment.%0A%09 */%0A%09private String id;%0A%09/**%0A%09 * If the location property is set, Comments nearest this location will be returned over those further from this location.%0A%09 */%0A%09private GeoLocation location;%0A%09/**%0A%09 * Do we only want to search threads, or are replies acceptable also?%0A%09 */%0A%09private boolean topLevel;%0A%09/**%0A%09 * Do we only want comments with pictures?%0A%09 */%0A%09private boolean hasPicture;%0A%09/**%0A%09 * The number of results we want returned%0A%09 */%0A%09private int resultSize;%0A%09%0A%09/**%0A%09 * Instantiates the Comment Request%0A%09 * %3Cp%3E%0A%09 * All the constructor does is instantiates the object with our expected return size. The user should be setting the remainder of the parameters of the%0A%09 * CommentRequest with the available setters.%0A%09 * %3C/p%3E%0A%09 * @param num The number of results we want. We may get less, but we will never get more.%0A%09 */%0A%09public CommentRequest(int num) %7B%0A%09%09this.resultSize = num;%0A%09%7D%0A%09%0A%09public void setId(String id) %7B%0A%09%09this.id = id;%0A%09%7D%0A%09%0A%09public void setLocation(GeoLocation loc) %7B%0A%09%09this.location = loc;%0A%09%7D%0A%09%0A%09public void onlyThreads() %7B%0A%09%09this.topLevel = true;%0A%09%7D%0A%09%0A%09public void onlyReplies() %7B%0A%09%09this.topLevel = false;%0A%09%7D%0A%09%0A%09public void withPictures() %7B%0A%09%09this.hasPicture = true;%0A%09%7D%0A%09%0A%09public void withoutPictures() %7B%0A%09%09this.hasPicture = false;%0A%09%7D%0A%0A%7D%0A

Comment request created. No tests created, because it has literally zero logic. It's a glorified struct