hi , i have set of code that has to share between ...
# android
a
hi , i have set of code that has to share between two types of enum and one part has to execute exclusively as shown below, it is possible to achieve ? like below FxType.Q and FxType.C
Copy code
when (fxType) {
    FXType.S, FXType.P, FXType.H, FXType.D -> {
        singleTxDetails.fxBankRate?.let {
            setupFxBankRateVisibility(fxBankRate = it)
        }
    }
    FXType.C, FXType.Q -> {
        singleTxDetails.fxContractList?.let { contractList ->
            singleTxDetails.fxTotalAllocated?.let { fxTotalAllocated ->
                setupFxContractList(contractList = contractList)
                setupTotalFxAllocated(fxTotalAllocated = fxTotalAllocated)
            }
        }
    }
    FXType.Q -> {
        setupBookFxNow()
    }
}