Record Class TuteeInfoResponse
java.lang.Object
java.lang.Record
inha.dayoook_e.user.api.controller.dto.response.TuteeInfoResponse
- All Implemented Interfaces:
UserInfoResponse
public record TuteeInfoResponse(@NotNull Integer id, @NotNull Role role, @NotNull String name, @NotNull String profileUrl, @NotNull Boolean gender, @NotNull Integer age, @NotNull Integer point, @NotNull Level level, @NotNull KoreanLevel koreanLevel, @NotNull Double attendanceRate, UpcomingLessonInfo upcomingLesson)
extends Record
implements UserInfoResponse
-
Constructor Summary
ConstructorsConstructorDescriptionTuteeInfoResponse
(@NotNull Integer id, @NotNull Role role, @NotNull String name, @NotNull String profileUrl, @NotNull Boolean gender, @NotNull Integer age, @NotNull Integer point, @NotNull Level level, @NotNull KoreanLevel koreanLevel, @NotNull Double attendanceRate, UpcomingLessonInfo upcomingLesson) Creates an instance of aTuteeInfoResponse
record class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Integer
age()
Returns the value of theage
record component.@NotNull Double
Returns the value of theattendanceRate
record component.final boolean
Indicates whether some other object is "equal to" this one.@NotNull Boolean
gender()
Returns the value of thegender
record component.final int
hashCode()
Returns a hash code value for this object.@NotNull Integer
id()
Returns the value of theid
record component.@NotNull KoreanLevel
Returns the value of thekoreanLevel
record component.@NotNull Level
level()
Returns the value of thelevel
record component.@NotNull String
name()
Returns the value of thename
record component.@NotNull Integer
point()
Returns the value of thepoint
record component.@NotNull String
Returns the value of theprofileUrl
record component.@NotNull Role
role()
Returns the value of therole
record component.final String
toString()
Returns a string representation of this record class.Returns the value of theupcomingLesson
record component.
-
Constructor Details
-
TuteeInfoResponse
public TuteeInfoResponse(@NotNull @NotNull Integer id, @NotNull @NotNull Role role, @NotNull @NotNull String name, @NotNull @NotNull String profileUrl, @NotNull @NotNull Boolean gender, @NotNull @NotNull Integer age, @NotNull @NotNull Integer point, @NotNull @NotNull Level level, @NotNull @NotNull KoreanLevel koreanLevel, @NotNull @NotNull Double attendanceRate, UpcomingLessonInfo upcomingLesson) Creates an instance of aTuteeInfoResponse
record class.- Parameters:
id
- the value for theid
record componentrole
- the value for therole
record componentname
- the value for thename
record componentprofileUrl
- the value for theprofileUrl
record componentgender
- the value for thegender
record componentage
- the value for theage
record componentpoint
- the value for thepoint
record componentlevel
- the value for thelevel
record componentkoreanLevel
- the value for thekoreanLevel
record componentattendanceRate
- the value for theattendanceRate
record componentupcomingLesson
- the value for theupcomingLesson
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
-
role
Returns the value of therole
record component.- Returns:
- the value of the
role
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
profileUrl
Returns the value of theprofileUrl
record component.- Returns:
- the value of the
profileUrl
record component
-
gender
Returns the value of thegender
record component.- Returns:
- the value of the
gender
record component
-
age
Returns the value of theage
record component.- Returns:
- the value of the
age
record component
-
point
Returns the value of thepoint
record component.- Returns:
- the value of the
point
record component
-
level
Returns the value of thelevel
record component.- Returns:
- the value of the
level
record component
-
koreanLevel
Returns the value of thekoreanLevel
record component.- Returns:
- the value of the
koreanLevel
record component
-
attendanceRate
Returns the value of theattendanceRate
record component.- Returns:
- the value of the
attendanceRate
record component
-
upcomingLesson
Returns the value of theupcomingLesson
record component.- Returns:
- the value of the
upcomingLesson
record component
-