Class TranslationResponse

java.lang.Object
lv.id.jc.piglatin.model.TranslationResponse

@Generated(value="org.openapitools.codegen.languages.SpringCodegen", date="2024-03-17T12:36:21.716430+02:00[Europe/Riga]") public class TranslationResponse extends Object
The response body contains the translated sentence in Pig Latin. All punctuation are preserved.
  • Constructor Details

    • TranslationResponse

      public TranslationResponse()
    • TranslationResponse

      public TranslationResponse(String sentence)
      Constructor with only required parameters
  • Method Details

    • sentence

      public TranslationResponse sentence(String sentence)
    • getSentence

      @NotNull public @NotNull String getSentence()
      The sentence is translated into Pig Latin.
      Returns:
      sentence
    • setSentence

      public void setSentence(String sentence)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object