Class SimpleInstructor

java.lang.Object
org.codewithmagret.rest.report.dto.SimpleInstructor

public class SimpleInstructor extends Object
DTO for representing a simple instructor in reports.
  • Constructor Details

    • SimpleInstructor

      public SimpleInstructor()
      Default constructor for SimpleInstructor. Required for JSON deserialization.
    • SimpleInstructor

      public SimpleInstructor(Long instructorId, String firstName, String lastName, String email)
      Parameterized constructor for SimpleInstructor.
      Parameters:
      instructorId - the ID of the instructor
      firstName - the first name of the instructor
      lastName - the last name of the instructor
      email - the email of the instructor
  • Method Details

    • getInstructorId

      public Long getInstructorId()
      Getters and setters for the fields of SimpleInstructor.
      Returns:
      the instructor ID, first name, last name, and email
    • setInstructorId

      public void setInstructorId(Long instructorId)
      Setters for the fields of SimpleInstructor.
      Parameters:
      instructorId - the ID of the instructor to set
    • getFirstName

      public String getFirstName()
      Getters for the fields of SimpleInstructor.
      Returns:
      the first name of the instructor
    • setFirstName

      public void setFirstName(String firstName)
      Setters for the fields of SimpleInstructor.
      Parameters:
      firstName - the first name of the instructor to set
    • getLastName

      public String getLastName()
      Getters for the fields of SimpleInstructor.
      Returns:
      the last name of the instructor
    • setLastName

      public void setLastName(String lastName)
      Setters for the fields of SimpleInstructor.
      Parameters:
      lastName - the last name of the instructor to set
    • getEmail

      public String getEmail()
      Getters for the fields of SimpleInstructor.
      Returns:
      the email of the instructor
    • setEmail

      public void setEmail(String email)
      Setters for the fields of SimpleInstructor.
      Parameters:
      email - the email of the instructor to set