-
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.
Refactor multiple code parts in prior notification
- Loading branch information
1 parent
aed0ad2
commit 579c9f4
Showing
19 changed files
with
520 additions
and
453 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
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
33 changes: 33 additions & 0 deletions
33
.../kotlin/fr/gouv/cnsp/monitorfish/infrastructure/api/input/LogbookReportFilterDataInput.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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package fr.gouv.cnsp.monitorfish.infrastructure.api.input | ||
|
||
import fr.gouv.cnsp.monitorfish.domain.filters.LogbookReportFilter | ||
|
||
class LogbookReportFilterDataInput( | ||
val flagStates: List<String>? = null, | ||
val isLessThanTwelveMetersVessel: Boolean? = null, | ||
val lastControlledAfter: String? = null, | ||
val lastControlledBefore: String? = null, | ||
val portLocodes: List<String>? = null, | ||
val priorNotificationTypes: List<String>? = null, | ||
val searchQuery: String? = null, | ||
val specyCodes: List<String>? = null, | ||
val tripSegmentSegments: List<String>? = null, | ||
val tripGearCodes: List<String>? = null, | ||
val willArriveAfter: String? = null, | ||
val willArriveBefore: String? = null, | ||
) { | ||
fun toLogbookReportFilter() = LogbookReportFilter( | ||
flagStates = this.flagStates, | ||
isLessThanTwelveMetersVessel = this.isLessThanTwelveMetersVessel, | ||
lastControlledAfter = this.lastControlledAfter, | ||
lastControlledBefore = this.lastControlledBefore, | ||
portLocodes = this.portLocodes, | ||
priorNotificationTypes = this.priorNotificationTypes, | ||
searchQuery = this.searchQuery, | ||
specyCodes = this.specyCodes, | ||
tripSegmentSegments = this.tripSegmentSegments, | ||
tripGearCodes = this.tripGearCodes, | ||
willArriveAfter = this.willArriveAfter, | ||
willArriveBefore = this.willArriveBefore, | ||
) | ||
} |
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.