Class CoursesByStudent
java.lang.Object
org.codewithmagret.rest.report.dto.CoursesByStudent
DTO for the report of courses by student.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for CoursesByStudent.CoursesByStudent(Long studentId, String firstName, String lastName, List<SimpleCourse> courses) Parameterized constructor for CoursesByStudent. -
Method Summary
Modifier and TypeMethodDescriptionGetters for the fields of CoursesByStudent.Getters for the fields of CoursesByStudent.Getters for the fields of CoursesByStudent.Getters and setters for the fields of CoursesByStudent.voidsetCourses(List<SimpleCourse> courses) Setters for the fields of CoursesByStudent.voidsetFirstName(String firstName) Setters for the fields of CoursesByStudent.voidsetLastName(String lastName) Setters for the fields of CoursesByStudent.voidsetStudentId(Long studentId) Setters for the fields of CoursesByStudent.
-
Constructor Details
-
CoursesByStudent
public CoursesByStudent()Default constructor for CoursesByStudent. Required for JSON deserialization. -
CoursesByStudent
public CoursesByStudent(Long studentId, String firstName, String lastName, List<SimpleCourse> courses) Parameterized constructor for CoursesByStudent.- Parameters:
studentId- the ID of the studentfirstName- the first name of the studentlastName- the last name of the studentcourses- the list of courses taken by the student
-
-
Method Details
-
getStudentId
Getters and setters for the fields of CoursesByStudent.- Returns:
- the student ID, first name, last name, and list of courses
-
setStudentId
Setters for the fields of CoursesByStudent.- Parameters:
studentId- the ID of the student to set
-
getFirstName
Getters for the fields of CoursesByStudent.- Returns:
- the first name of the student
-
setFirstName
Setters for the fields of CoursesByStudent.- Parameters:
firstName- the first name of the student to set
-
getLastName
Getters for the fields of CoursesByStudent.- Returns:
- the last name of the student
-
setLastName
Setters for the fields of CoursesByStudent.- Parameters:
lastName- the last name of the student to set
-
getCourses
Getters for the fields of CoursesByStudent.- Returns:
- the list of courses taken by the student
-
setCourses
Setters for the fields of CoursesByStudent.- Parameters:
courses- the list of courses taken by the student to set
-