Skip to content

Commit

Permalink
feat: Updated DTO's
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertoJavaDev committed Oct 14, 2024
1 parent 5c07e85 commit 3ec6409
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
import java.util.UUID;

record AlertDTO(UUID id,
DisasterType type,
Disaster disaster,
String location,
Instant creationDate,
DisasterStatus status) {
Instant creationDate) {
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package pl.ateam.disasteralerts.disasteralert;

import java.time.Instant;
import java.util.List;
import java.util.UUID;

record DisasterDTO(UUID id,
Expand All @@ -9,5 +10,6 @@ record DisasterDTO(UUID id,
String location,
Instant disasterStartTime,
Instant disasterEndTime,
DisasterStatus status) {
DisasterStatus status,
List<AlertDTO> alerts) {
}

0 comments on commit 3ec6409

Please sign in to comment.