Created
March 18, 2021 18:27
-
-
Save davidawad/f941bb236dbae3c858ae1b6e148da872 to your computer and use it in GitHub Desktop.
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
@BelongsToContract(CarContract::class) | |
class CarState(private val owningBank: Party, | |
private val holdingDealer: Party, | |
private val manufacturer: Party, | |
private val vin: String, | |
private val licensePlateNumber: String, | |
private val make: String, | |
private val model: String, | |
private val dealershipLocation: String) : ContractState { | |
private override val participants: MutableList<AbstractParty> = ArrayList() | |
// our state takes all these parameters as input to the constructor | |
init { | |
participants.add(owningBank) | |
participants.add(holdingDealer) | |
participants.add(manufacturer) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment