Class SimpleInstructor
java.lang.Object
org.codewithmagret.rest.report.dto.SimpleInstructor
DTO for representing a simple instructor in reports.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for SimpleInstructor.SimpleInstructor(Long instructorId, String firstName, String lastName, String email) Parameterized constructor for SimpleInstructor. -
Method Summary
Modifier and TypeMethodDescriptiongetEmail()Getters for the fields of SimpleInstructor.Getters for the fields of SimpleInstructor.Getters and setters for the fields of SimpleInstructor.Getters for the fields of SimpleInstructor.voidSetters for the fields of SimpleInstructor.voidsetFirstName(String firstName) Setters for the fields of SimpleInstructor.voidsetInstructorId(Long instructorId) Setters for the fields of SimpleInstructor.voidsetLastName(String lastName) Setters for the fields of SimpleInstructor.
-
Constructor Details
-
SimpleInstructor
public SimpleInstructor()Default constructor for SimpleInstructor. Required for JSON deserialization. -
SimpleInstructor
Parameterized constructor for SimpleInstructor.- Parameters:
instructorId- the ID of the instructorfirstName- the first name of the instructorlastName- the last name of the instructoremail- the email of the instructor
-
-
Method Details
-
getInstructorId
Getters and setters for the fields of SimpleInstructor.- Returns:
- the instructor ID, first name, last name, and email
-
setInstructorId
Setters for the fields of SimpleInstructor.- Parameters:
instructorId- the ID of the instructor to set
-
getFirstName
Getters for the fields of SimpleInstructor.- Returns:
- the first name of the instructor
-
setFirstName
Setters for the fields of SimpleInstructor.- Parameters:
firstName- the first name of the instructor to set
-
getLastName
Getters for the fields of SimpleInstructor.- Returns:
- the last name of the instructor
-
setLastName
Setters for the fields of SimpleInstructor.- Parameters:
lastName- the last name of the instructor to set
-
getEmail
Getters for the fields of SimpleInstructor.- Returns:
- the email of the instructor
-
setEmail
Setters for the fields of SimpleInstructor.- Parameters:
email- the email of the instructor to set
-