-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Tech] Permettre de patch missionTypes sur MissionEntity
- Loading branch information
Showing
4 changed files
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
...acem/monitorenv/infrastructure/api/adapters/publicapi/inputs/PatchableMissionDataInput.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,22 @@ | ||
package fr.gouv.cacem.monitorenv.infrastructure.api.adapters.publicapi.inputs | ||
|
||
import fr.gouv.cacem.monitorenv.domain.entities.mission.PatchableMissionEntity | ||
import fr.gouv.cacem.monitorenv.domain.entities.mission.MissionTypeEnum | ||
import java.time.ZonedDateTime | ||
import java.util.Optional | ||
|
||
data class PatchableMissionDataInput( | ||
val observationsByUnit: Optional<String>?, | ||
val startDateTimeUtc: ZonedDateTime?, | ||
val endDateTimeUtc: Optional<ZonedDateTime>?, | ||
val missionTypes: List<MissionTypeEnum>?, | ||
) { | ||
fun toPatchableMissionEntity(): PatchableMissionEntity { | ||
return PatchableMissionEntity( | ||
observationsByUnit = observationsByUnit, | ||
startDateTimeUtc = startDateTimeUtc, | ||
endDateTimeUtc = endDateTimeUtc, | ||
missionTypes = missionTypes | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters