2020-10-13 16:19:40 +02:00
|
|
|
package com.plannaplan.responses.models;
|
|
|
|
|
|
|
|
import com.plannaplan.entities.Course;
|
2020-10-13 17:13:43 +02:00
|
|
|
import com.plannaplan.responses.models.abstracts.CoursesResponse;
|
2020-10-13 16:19:40 +02:00
|
|
|
|
2020-11-08 16:55:56 +01:00
|
|
|
import io.swagger.annotations.ApiModel;
|
|
|
|
|
2021-01-15 17:45:29 +01:00
|
|
|
/**
|
|
|
|
* Courses Default Api Response. It extends abstract response - CoursesResponse.
|
|
|
|
* It was one of first repsones created in system. Later we resigned from
|
|
|
|
* asbstract and used settig
|
|
|
|
* <code>spring.jackson.default-property-inclusion = NON_NULL</code> in
|
|
|
|
* properties instead.
|
|
|
|
*/
|
2020-11-08 17:20:00 +01:00
|
|
|
@ApiModel(description = "Response shows information about course.", value = "CoursesDefaultResponse")
|
|
|
|
public class CoursesDefaultResponse extends CoursesResponse {
|
2020-10-13 16:19:40 +02:00
|
|
|
|
2021-01-15 17:45:29 +01:00
|
|
|
/**
|
|
|
|
* create new instance
|
|
|
|
*
|
|
|
|
* @param course course to map to api response
|
|
|
|
*/
|
2020-11-08 17:20:00 +01:00
|
|
|
public CoursesDefaultResponse(Course course) {
|
2020-10-13 16:19:40 +02:00
|
|
|
super(course);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|