Skip to content

Commit

Permalink
allow gatewayInstances and gateways to be retrieved as a non-mutable …
Browse files Browse the repository at this point in the history
…list
  • Loading branch information
froks committed Feb 15, 2023
1 parent 0430a96 commit ee01933
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ plugins {
apply<NexusReleasePlugin>()

group = "io.github.doip-sim-ecu"
version = "0.9.15"
version = "0.9.16"

repositories {
gradlePluginPortal()
Expand Down
6 changes: 6 additions & 0 deletions src/main/kotlin/SimDsl.kt
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,12 @@ public open class EcuData(
internal val gateways: MutableList<GatewayData> = mutableListOf()
internal val gatewayInstances: MutableList<SimGateway> = mutableListOf()

public fun gatewayInstances(): List<SimGateway> =
gatewayInstances.toList()

public fun gateways(): List<GatewayData> =
gateways.toList()

/**
* Defines a DoIP-Gateway and the ECUs behind it
*/
Expand Down

0 comments on commit ee01933

Please sign in to comment.