Skip to content

Commit

Permalink
Merge pull request #18 from gls-denmark/add-selection-of-configured-s…
Browse files Browse the repository at this point in the history
…canners

Add a flag for specifying which scanners to configure with the scanner configuration
  • Loading branch information
jhetrifork authored Feb 28, 2024
2 parents 8e4d2f9 + 68afbfa commit 15fa93c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import dk.gls.kdw.model.inputParameters.AutoSwitchToDefaultOnEvent

data class ScannerConfiguration(
val scannerSelection: ScannerIdentifier = ScannerIdentifier.AUTO,
/** Specify which scanner the configurations apply to **/
val configureAllScanners : Boolean = true,
val inputEnabled: Boolean = true,
val autoSwitchToDefaultOnEvent: AutoSwitchToDefaultOnEvent = AutoSwitchToDefaultOnEvent.DISABLED,
)
Expand All @@ -14,6 +16,7 @@ fun ScannerConfiguration.toBundle(): Bundle {
return Bundle().apply {
this.putString("scanner_selection", scannerSelection.toString())
this.putBoolean("scanner_input_enabled", inputEnabled)
this.putString("configure_all_scanners", configureAllScanners.toString())
this.putString("auto_switch_to_default_on_event", autoSwitchToDefaultOnEvent.value.toString())
}
}

0 comments on commit 15fa93c

Please sign in to comment.