Record Class SearchTutorApplicationResponse

java.lang.Object
java.lang.Record
inha.dayoook_e.tutor.api.controller.dto.response.SearchTutorApplicationResponse

public record SearchTutorApplicationResponse(@NotNull Integer id, Integer lessonId, @NotNull TuteeInfoResponse tuteeInfo, @NotEmpty List<SearchLanguagesResponse> languages, @NotEmpty List<ScheduleTimeSlot> scheduleTimeSlots, @NotNull LocalDateTime createdAt, @NotNull Status status, @NotNull String message) extends Record
  • Constructor Details

    • SearchTutorApplicationResponse

      public SearchTutorApplicationResponse(@NotNull @NotNull Integer id, Integer lessonId, @NotNull @NotNull TuteeInfoResponse tuteeInfo, @NotEmpty @NotEmpty List<SearchLanguagesResponse> languages, @NotEmpty @NotEmpty List<ScheduleTimeSlot> scheduleTimeSlots, @NotNull @NotNull LocalDateTime createdAt, @NotNull @NotNull Status status, @NotNull @NotNull String message)
      Creates an instance of a SearchTutorApplicationResponse record class.
      Parameters:
      id - the value for the id record component
      lessonId - the value for the lessonId record component
      tuteeInfo - the value for the tuteeInfo record component
      languages - the value for the languages record component
      scheduleTimeSlots - the value for the scheduleTimeSlots record component
      createdAt - the value for the createdAt record component
      status - the value for the status record component
      message - the value for the message 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
    • lessonId

      public Integer lessonId()
      Returns the value of the lessonId record component.
      Returns:
      the value of the lessonId record component
    • tuteeInfo

      @NotNull public @NotNull TuteeInfoResponse tuteeInfo()
      Returns the value of the tuteeInfo record component.
      Returns:
      the value of the tuteeInfo record component
    • languages

      @NotEmpty public @NotEmpty List<SearchLanguagesResponse> languages()
      Returns the value of the languages record component.
      Returns:
      the value of the languages record component
    • scheduleTimeSlots

      @NotEmpty public @NotEmpty List<ScheduleTimeSlot> scheduleTimeSlots()
      Returns the value of the scheduleTimeSlots record component.
      Returns:
      the value of the scheduleTimeSlots record component
    • createdAt

      @NotNull public @NotNull LocalDateTime createdAt()
      Returns the value of the createdAt record component.
      Returns:
      the value of the createdAt record component
    • status

      @NotNull public @NotNull Status status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • message

      @NotNull public @NotNull String message()
      Returns the value of the message record component.
      Returns:
      the value of the message record component