Skip to content

Commit

Permalink
[Gepardec/mega#750] add object mapper for warning objects
Browse files Browse the repository at this point in the history
  • Loading branch information
gattrCh committed Jun 3, 2024
1 parent 79c2534 commit 9ca0d57
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,17 @@
public class MonthlyWarningMapper implements DtoMapper<MonthlyWarning, MonthlyWarningDto> {
@Override
public MonthlyWarningDto mapToDto(MonthlyWarning object) {
return null;
return MonthlyWarningDto.builder()
.name(object.getName())
.dateValuesWhenWarningsOccurred(object.getDateValuesWhenWarningsOccurred())
.build();
}

@Override
public MonthlyWarning mapToDomain(MonthlyWarningDto object) {
return null;
return MonthlyWarning.builder()
.name(object.getName())
.dateValuesWhenWarningsOccurred(object.getDateValuesWhenWarningsOccurred())
.build();
}
}

0 comments on commit 9ca0d57

Please sign in to comment.