-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean and optimize prior notification relations in Backend
- Loading branch information
1 parent
03093d4
commit 363a954
Showing
24 changed files
with
430 additions
and
277 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
25 changes: 6 additions & 19 deletions
25
...n/kotlin/fr/gouv/cnsp/monitorfish/domain/entities/prior_notification/PriorNotification.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,29 +1,16 @@ | ||
package fr.gouv.cnsp.monitorfish.domain.entities.prior_notification | ||
|
||
import fr.gouv.cnsp.monitorfish.domain.entities.logbook.Catch | ||
import fr.gouv.cnsp.monitorfish.domain.entities.logbook.LogbookTripGear | ||
import fr.gouv.cnsp.monitorfish.domain.entities.logbook.LogbookTripSegment | ||
import fr.gouv.cnsp.monitorfish.domain.entities.logbook.LogbookMessage | ||
import fr.gouv.cnsp.monitorfish.domain.entities.port.Port | ||
import fr.gouv.cnsp.monitorfish.domain.entities.risk_factor.VesselRiskFactor | ||
import fr.gouv.cnsp.monitorfish.domain.entities.vessel.Vessel | ||
|
||
data class PriorNotification( | ||
val id: Long, | ||
val expectedArrivalDate: String?, | ||
val expectedLandingDate: String?, | ||
val notificationTypeLabel: String? = null, | ||
val onboardCatches: List<Catch>, | ||
val portLocode: String?, | ||
val portName: String? = null, | ||
val purposeCode: String?, | ||
val logbookMessage: LogbookMessage, | ||
val port: Port? = null, | ||
val reportingsCount: Int? = null, | ||
val seaFront: String? = null, | ||
val sentAt: String?, | ||
val tripGears: List<LogbookTripGear>, | ||
val tripSegments: List<LogbookTripSegment>, | ||
val types: List<PriorNotificationType>, | ||
val vessel: Vessel, | ||
val vesselLastControlDate: String?, | ||
val vesselRiskFactor: Double?, | ||
val vesselRiskFactorImpact: Double?, | ||
val vesselRiskFactorProbability: Double?, | ||
val vesselRiskFactorDetectability: Double?, | ||
val vesselRiskFactor: VesselRiskFactor?, | ||
) |
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
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
Oops, something went wrong.