Android Open Source - Team7-301Project Reply






From Project

Back to project page Team7-301Project.

License

The source code is released under:

Apache License

If you think the Android project Team7-301Project 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 ca.ualberta.cs.models;
//from  ww w .  j a  v  a 2 s .c  o  m
import java.util.Date;

/**
 * Describes what a reply to an answer or main question looks like. It contains a date
 * (When the reply was made) and the text of the reply.
 * @author Brendan
 *
 */
public class Reply {
  private String reply;
  private Date date;
  /**
   * Instantiate a Reply object.
   * @param reply The reply to an answer or main question.
   */
  public Reply(String reply_)
  {
    reply = reply_;
    this.date = new Date();
  }
  public String toString(){
    return reply;
  }
  /**
   * Set the reply to an answer or main question.
   * @param reply The reply to an answer or main question.
   */
  public void setReply(String reply_)
  {
    reply = reply_;
  }
  
  /**
   * Get the reply to a main question or answer.
   * @return The reply to a main question or answer.
   */
  public String getReply()
  {
    return reply;
  }

  /**
   * Gets the date of the reply.
   * @return The Date.
   */
  public Date getDate()
  {
    return this.date;
  }
}




Java Source Code List

ca.ualberta.cs.controllers.AuthorController.java
ca.ualberta.cs.controllers.BrowseController.java
ca.ualberta.cs.controllers.ForumEntryController.java
ca.ualberta.cs.controllers.SearchController.java
ca.ualberta.cs.f14t07_application.Hits.java
ca.ualberta.cs.f14t07_application.LogoActivity.java
ca.ualberta.cs.f14t07_application.Post.java
ca.ualberta.cs.intent_singletons.BrowseRequestSingleton.java
ca.ualberta.cs.intent_singletons.ContextSingleton.java
ca.ualberta.cs.intent_singletons.EntrySingleton.java
ca.ualberta.cs.intent_singletons.ForumEntrySingleton.java
ca.ualberta.cs.models.Answer.java
ca.ualberta.cs.models.AuthorModel.java
ca.ualberta.cs.models.DataManager.java
ca.ualberta.cs.models.Entry.java
ca.ualberta.cs.models.ForumEntryList.java
ca.ualberta.cs.models.ForumEntry.java
ca.ualberta.cs.models.JsonDriver.java
ca.ualberta.cs.models.Observable.java
ca.ualberta.cs.models.Question.java
ca.ualberta.cs.models.Reply.java
ca.ualberta.cs.remote_server.NetworkChecker.java
ca.ualberta.cs.remote_server.SearchHit.java
ca.ualberta.cs.remote_server.SearchResponse.java
ca.ualberta.cs.remote_server.SimpleSearchCommand.java
ca.ualberta.cs.views.AnswerActivity.java
ca.ualberta.cs.views.AnswerListAdapter.java
ca.ualberta.cs.views.AskActivity.java
ca.ualberta.cs.views.BrowseActivity.java
ca.ualberta.cs.views.HelpActivity.java
ca.ualberta.cs.views.MainScreenActivity.java
ca.ualberta.cs.views.Observer.java
ca.ualberta.cs.views.QuestionActivity.java
ca.ualberta.cs.views.ReplyListAdapter.java