Last active
March 7, 2016 18:24
-
-
Save MafaldaLandeiro/86f2aec57914d0cd915f to your computer and use it in GitHub Desktop.
Response Object
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.SpringRestfulService.reply; | |
| public class Greeting { | |
| private String date; | |
| private String content; | |
| /** | |
| * @param date | |
| * @param content | |
| */ | |
| public Greeting(String date, String content) { | |
| super(); | |
| this.date = date; | |
| this.content = content; | |
| } | |
| /** | |
| * @return the date | |
| */ | |
| public String getDate() { | |
| return date; | |
| } | |
| /** | |
| * @param date the date to set | |
| */ | |
| public void setDate(String date) { | |
| this.date = date; | |
| } | |
| /** | |
| * @return the content | |
| */ | |
| public String getContent() { | |
| return content; | |
| } | |
| /** | |
| * @param content the content to set | |
| */ | |
| public void setContent(String content) { | |
| this.content = content; | |
| } | |
| /* (non-Javadoc) | |
| * @see java.lang.Object#toString() | |
| */ | |
| @Override | |
| public String toString() { | |
| return "Greeting [date=" + date + ", content=" + content + "]"; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment