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 Summary
ConstructorsConstructorDescriptionSearchTutorApplicationResponse(@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) Creates an instance of aSearchTutorApplicationResponserecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull LocalDateTimeReturns the value of thecreatedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull Integerid()Returns the value of theidrecord component.@NotEmpty List<SearchLanguagesResponse>Returns the value of thelanguagesrecord component.lessonId()Returns the value of thelessonIdrecord component.@NotNull Stringmessage()Returns the value of themessagerecord component.@NotEmpty List<ScheduleTimeSlot>Returns the value of thescheduleTimeSlotsrecord component.@NotNull Statusstatus()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.@NotNull TuteeInfoResponseReturns the value of thetuteeInforecord component.
-
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 aSearchTutorApplicationResponserecord class.- Parameters:
id- the value for theidrecord componentlessonId- the value for thelessonIdrecord componenttuteeInfo- the value for thetuteeInforecord componentlanguages- the value for thelanguagesrecord componentscheduleTimeSlots- the value for thescheduleTimeSlotsrecord componentcreatedAt- the value for thecreatedAtrecord componentstatus- the value for thestatusrecord componentmessage- the value for themessagerecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
lessonId
Returns the value of thelessonIdrecord component.- Returns:
- the value of the
lessonIdrecord component
-
tuteeInfo
Returns the value of thetuteeInforecord component.- Returns:
- the value of the
tuteeInforecord component
-
languages
Returns the value of thelanguagesrecord component.- Returns:
- the value of the
languagesrecord component
-
scheduleTimeSlots
Returns the value of thescheduleTimeSlotsrecord component.- Returns:
- the value of the
scheduleTimeSlotsrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-