Class CoursesResponseMappers

java.lang.Object
com.plannaplan.responses.mappers.CoursesResponseMappers

public class CoursesResponseMappers
extends java.lang.Object
Mappers for Courses to api responses
  • Constructor Details

    • CoursesResponseMappers

      public CoursesResponseMappers()
  • Method Details

    • mapToGetCoursesResponse

      public static final java.util.List<CoursesDefaultResponse> mapToGetCoursesResponse​(java.util.List<com.plannaplan.entities.Course> courses)
      Parameters:
      courses - list of courses to be mapped
      Returns:
      list of api responses
    • mapToGetCoursesWithGroupsResponse

      public static final java.util.List<CoursesWithGroupsResponse> mapToGetCoursesWithGroupsResponse​(java.util.List<com.plannaplan.entities.Course> courses)
      Parameters:
      courses - list of courses to be mapped
      Returns:
      list of api responses