#631 - Partial Response : Add java doc

This commit is contained in:
Gopinath Langote
2017-09-14 21:50:40 +05:30
parent 6d3dce065d
commit c89bf0eb44
4 changed files with 38 additions and 9 deletions

View File

@ -53,15 +53,18 @@ public class Video {
this.language = language;
}
/**
* @return json representaion of video
*/
@Override
public String toString() {
return "{" +
"\"id\": \"" + id + "\"," +
"\"title\": \"" + title + "\"," +
"\"length\": " + length + "," +
"\"description\": \"" + description + "\"," +
"\"director\": \"" + director + "\"," +
"\"language\": \"" + language + "\"," +
"}";
return "{"
+ "\"id\": \"" + id + "\","
+ "\"title\": \"" + title + "\","
+ "\"length\": " + length + ","
+ "\"description\": \"" + description + "\","
+ "\"director\": \"" + director + "\","
+ "\"language\": \"" + language + "\","
+ "}";
}
}