Package com.nicholasalfonso.lato.mapper
Class AssignmentMapper
java.lang.Object
com.nicholasalfonso.lato.mapper.AssignmentMapper
Converts
Assignment entities into assignment response DTOs.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontoDetail(Assignment assignment, Note note) Maps an assignment entity and optional note to a detailed response.toResponse(Assignment assignment) Maps an assignment entity to a summary response including resolved display values.
-
Constructor Details
-
AssignmentMapper
public AssignmentMapper()
-
-
Method Details
-
toResponse
Maps an assignment entity to a summary response including resolved display values.- Parameters:
assignment- the assignment entity to map- Returns:
- summary assignment response for list views
-
toDetail
Maps an assignment entity and optional note to a detailed response.- Parameters:
assignment- the assignment entity to mapnote- optional note associated with the assignment- Returns:
- detailed assignment response for single-assignment views
-