Class QuoteResponse

java.lang.Object
me.nickhanson.codeforge.external.model.QuoteResponse

public class QuoteResponse extends Object
Model class representing a quote response from an external API.
  • Constructor Details

    • QuoteResponse

      public QuoteResponse()
  • Method Details

    • setAuthorSlug

      public void setAuthorSlug(String authorSlug)
      Sets the author slug.
      Parameters:
      authorSlug - the author slug to set
    • getAuthorSlug

      public String getAuthorSlug()
      Gets the author slug.
      Returns:
      the author slug
    • setAuthor

      public void setAuthor(String author)
      Sets the author of the quote.
      Parameters:
      author - the author to set
    • getAuthor

      public String 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

      public void setDateModified(String dateModified)
      Sets the date the quote was last modified.
      Parameters:
      dateModified - the date modified to set
    • getDateModified

      public String getDateModified()
      Gets the date the quote was last modified.
      Returns:
      the date modified
    • setId

      public void setId(String id)
      Sets the unique identifier of the quote.
      Parameters:
      id - the id to set
    • getId

      public String getId()
      Gets the unique identifier of the quote.
      Returns:
      the id
    • setContent

      public void setContent(String content)
      Sets the content of the quote.
      Parameters:
      content - the content to set
    • getContent

      public String getContent()
      Gets the content of the quote.
      Returns:
      the content
    • setDateAdded

      public void setDateAdded(String dateAdded)
      Sets the date the quote was added.
      Parameters:
      dateAdded - the date added to set
    • getDateAdded

      public String getDateAdded()
      Gets the date the quote was added.
      Returns:
      the date added
    • setTags

      public void setTags(List<String> tags)
      Sets the tags associated with the quote.
      Parameters:
      tags - the tags to set
    • getTags

      public List<String> getTags()
      Gets the tags associated with the quote.
      Returns:
      the tags
    • toString

      public String toString()
      Returns a string representation of the QuoteResponse object.
      Overrides:
      toString in class Object
      Returns:
      string representation of the object