Interface ICourseMapper


public interface ICourseMapper
Mapper class for mapping Course entities to CourseDTOs.
  • Method Summary

    Modifier and Type
    Method
    Description
    toCourseDTO(callofproject.dev.repository.authentication.entity.Course course)
    Maps a Course entity to a CourseDTO.
    default CoursesDTO
    Maps a list of Course entities to a CoursesDTO.
  • Method Details

    • toCourseDTO

      CourseDTO toCourseDTO(callofproject.dev.repository.authentication.entity.Course course)
      Maps a Course entity to a CourseDTO.
      Parameters:
      course - The Course entity to be mapped.
      Returns:
      A CourseDTO representing the mapped Course entity.
    • toCoursesDTO

      default CoursesDTO toCoursesDTO(List<CourseDTO> courses)
      Maps a list of Course entities to a CoursesDTO.
      Parameters:
      courses - The list of Course entities to be mapped.
      Returns:
      A CoursesDTO representing the mapped list of Course entities.