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 aSearchTutorApplicationResponse
record class. -
Method Summary
Modifier and TypeMethodDescription@NotNull LocalDateTime
Returns the value of thecreatedAt
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.@NotNull Integer
id()
Returns the value of theid
record component.@NotEmpty List<SearchLanguagesResponse>
Returns the value of thelanguages
record component.lessonId()
Returns the value of thelessonId
record component.@NotNull String
message()
Returns the value of themessage
record component.@NotEmpty List<ScheduleTimeSlot>
Returns the value of thescheduleTimeSlots
record component.@NotNull Status
status()
Returns the value of thestatus
record component.final String
toString()
Returns a string representation of this record class.@NotNull TuteeInfoResponse
Returns the value of thetuteeInfo
record 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 aSearchTutorApplicationResponse
record class.- Parameters:
id
- the value for theid
record componentlessonId
- the value for thelessonId
record componenttuteeInfo
- the value for thetuteeInfo
record componentlanguages
- the value for thelanguages
record componentscheduleTimeSlots
- the value for thescheduleTimeSlots
record componentcreatedAt
- the value for thecreatedAt
record componentstatus
- the value for thestatus
record componentmessage
- the value for themessage
record 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 theid
record component.- Returns:
- the value of the
id
record component
-
lessonId
Returns the value of thelessonId
record component.- Returns:
- the value of the
lessonId
record component
-
tuteeInfo
Returns the value of thetuteeInfo
record component.- Returns:
- the value of the
tuteeInfo
record component
-
languages
Returns the value of thelanguages
record component.- Returns:
- the value of the
languages
record component
-
scheduleTimeSlots
Returns the value of thescheduleTimeSlots
record component.- Returns:
- the value of the
scheduleTimeSlots
record component
-
createdAt
Returns the value of thecreatedAt
record component.- Returns:
- the value of the
createdAt
record component
-
status
Returns the value of thestatus
record component.- Returns:
- the value of the
status
record component
-
message
Returns the value of themessage
record component.- Returns:
- the value of the
message
record component
-