Record Class SongSearchResponse

java.lang.Object
java.lang.Record
inha.dayoook_e.song.api.controller.dto.response.SongSearchResponse

public record SongSearchResponse(@NotNull Integer id, @NotNull String title, @NotNull String description, @NotNull String thumbnailUrl, @NotNull String mediaUrl, @NotNull String lyrics, SearchCountryResponse country, @NotNull Boolean liked, @NotNull Boolean isCompleted) extends Record
  • Constructor Details

    • SongSearchResponse

      public SongSearchResponse(@NotNull @NotNull Integer id, @NotNull @NotNull String title, @NotNull @NotNull String description, @NotNull @NotNull String thumbnailUrl, @NotNull @NotNull String mediaUrl, @NotNull @NotNull String lyrics, SearchCountryResponse country, @NotNull @NotNull Boolean liked, @NotNull @NotNull Boolean isCompleted)
      Creates an instance of a SongSearchResponse record class.
      Parameters:
      id - the value for the id record component
      title - the value for the title record component
      description - the value for the description record component
      thumbnailUrl - the value for the thumbnailUrl record component
      mediaUrl - the value for the mediaUrl record component
      lyrics - the value for the lyrics record component
      country - the value for the country record component
      liked - the value for the liked record component
      isCompleted - the value for the isCompleted record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      @NotNull public @NotNull Integer id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • title

      @NotNull public @NotNull String title()
      Returns the value of the title record component.
      Returns:
      the value of the title record component
    • description

      @NotNull public @NotNull String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • thumbnailUrl

      @NotNull public @NotNull String thumbnailUrl()
      Returns the value of the thumbnailUrl record component.
      Returns:
      the value of the thumbnailUrl record component
    • mediaUrl

      @NotNull public @NotNull String mediaUrl()
      Returns the value of the mediaUrl record component.
      Returns:
      the value of the mediaUrl record component
    • lyrics

      @NotNull public @NotNull String lyrics()
      Returns the value of the lyrics record component.
      Returns:
      the value of the lyrics record component
    • country

      public SearchCountryResponse country()
      Returns the value of the country record component.
      Returns:
      the value of the country record component
    • liked

      @NotNull public @NotNull Boolean liked()
      Returns the value of the liked record component.
      Returns:
      the value of the liked record component
    • isCompleted

      @NotNull public @NotNull Boolean isCompleted()
      Returns the value of the isCompleted record component.
      Returns:
      the value of the isCompleted record component