Class QuoteResponse
java.lang.Object
me.nickhanson.codeforge.external.model.QuoteResponse
Model class representing a quote response from an external API.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the author of the quote.Gets the author slug.Gets the content of the quote.Gets the date the quote was added.Gets the date the quote was last modified.getId()Gets the unique identifier of the quote.intGets the length of the quote.getTags()Gets the tags associated with the quote.voidSets the author of the quote.voidsetAuthorSlug(String authorSlug) Sets the author slug.voidsetContent(String content) Sets the content of the quote.voidsetDateAdded(String dateAdded) Sets the date the quote was added.voidsetDateModified(String dateModified) Sets the date the quote was last modified.voidSets the unique identifier of the quote.voidsetLength(int length) Sets the length of the quote.voidSets the tags associated with the quote.toString()Returns a string representation of the QuoteResponse object.
-
Constructor Details
-
QuoteResponse
public QuoteResponse()
-
-
Method Details
-
setAuthorSlug
Sets the author slug.- Parameters:
authorSlug- the author slug to set
-
getAuthorSlug
Gets the author slug.- Returns:
- the author slug
-
setAuthor
Sets the author of the quote.- Parameters:
author- the author to set
-
getAuthor
Gets the author of the quote.- Returns:
- the author
-
setLength
public void setLength(int length) Sets the length of the quote.- Parameters:
length- the length to set
-
getLength
public int getLength()Gets the length of the quote.- Returns:
- the length
-
setDateModified
Sets the date the quote was last modified.- Parameters:
dateModified- the date modified to set
-
getDateModified
Gets the date the quote was last modified.- Returns:
- the date modified
-
setId
Sets the unique identifier of the quote.- Parameters:
id- the id to set
-
getId
Gets the unique identifier of the quote.- Returns:
- the id
-
setContent
Sets the content of the quote.- Parameters:
content- the content to set
-
getContent
Gets the content of the quote.- Returns:
- the content
-
setDateAdded
Sets the date the quote was added.- Parameters:
dateAdded- the date added to set
-
getDateAdded
Gets the date the quote was added.- Returns:
- the date added
-
setTags
Sets the tags associated with the quote.- Parameters:
tags- the tags to set
-
getTags
Gets the tags associated with the quote.- Returns:
- the tags
-
toString
Returns a string representation of the QuoteResponse object.
-