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 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 a TuteeInfoResponse record class.
      Parameters:
      id - the value for the id record component
      role - the value for the role record component
      name - the value for the name record component
      profileUrl - the value for the profileUrl record component
      gender - the value for the gender record component
      age - the value for the age record component
      point - the value for the point record component
      level - the value for the level record component
      koreanLevel - the value for the koreanLevel record component
      attendanceRate - the value for the attendanceRate record component
      upcomingLesson - the value for the upcomingLesson 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
    • role

      @NotNull public @NotNull Role role()
      Returns the value of the role record component.
      Returns:
      the value of the role record component
    • name

      @NotNull public @NotNull String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • profileUrl

      @NotNull public @NotNull String profileUrl()
      Returns the value of the profileUrl record component.
      Returns:
      the value of the profileUrl record component
    • gender

      @NotNull public @NotNull Boolean gender()
      Returns the value of the gender record component.
      Returns:
      the value of the gender record component
    • age

      @NotNull public @NotNull Integer age()
      Returns the value of the age record component.
      Returns:
      the value of the age record component
    • point

      @NotNull public @NotNull Integer point()
      Returns the value of the point record component.
      Returns:
      the value of the point record component
    • level

      @NotNull public @NotNull Level level()
      Returns the value of the level record component.
      Returns:
      the value of the level record component
    • koreanLevel

      @NotNull public @NotNull KoreanLevel koreanLevel()
      Returns the value of the koreanLevel record component.
      Returns:
      the value of the koreanLevel record component
    • attendanceRate

      @NotNull public @NotNull Double attendanceRate()
      Returns the value of the attendanceRate record component.
      Returns:
      the value of the attendanceRate record component
    • upcomingLesson

      public UpcomingLessonInfo upcomingLesson()
      Returns the value of the upcomingLesson record component.
      Returns:
      the value of the upcomingLesson record component