Skip to content
Snippets Groups Projects
Commit 92a675dc authored by chris-cwa's avatar chris-cwa
Browse files

flow for windows

parent ea62e49f
No related branches found
No related tags found
No related merge requests found
......@@ -11,12 +11,16 @@ class ExposureResultStore @Inject constructor() {
private val internalResult = MutableStateFlow<AggregatedRiskResult?>(null)
val result: Flow<AggregatedRiskResult?> = internalResult
private val internalWindows = MutableStateFlow<List<ExposureWindow>>(emptyList())
val windows: Flow<List<ExposureWindow>> = internalWindows
private var entities: Pair<List<ExposureWindow>, AggregatedRiskResult?> = Pair(emptyList(), null)
var exposureWindowEntities: Pair<List<ExposureWindow>, AggregatedRiskResult?>
get() = entities
set(value) {
entities = value
internalWindows.value = value.first
internalResult.value = value.second
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment