Android Open Source - GroupGoal Comment

From Project

Back to project page GroupGoal.


The source code is released under:

GNU General Public License

If you think the Android project GroupGoal listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.cs121.groupgoal;
//from w  ww. j ava2 s  .  c o m
import com.parse.ParseClassName;
import com.parse.ParseObject;
import com.parse.ParseQuery;
import com.parse.ParseUser;

 * Data model for a comment. In the final version of this app we decided to not use the Comment Object, but code
 * is left here for future use. 
public class Comment extends ParseObject {
    public String getText() {
      return getString("text"); //returns the text of the comment

    public void setText(String value) {
      put("text", value); //stores the text of the comment into the Parse backend

    public ParseUser getUser() {
      return getParseUser("user"); //returns the user ID of the user who posted the comment

    public void setUser(ParseUser value) {
      put("user", value); //stores the user ID of the user who posted the comment

    public static ParseQuery<Comment> getQuery() {
      return ParseQuery.getQuery("Comments"); //returns a parseQuery for this Parse object

Java Source Code List