Add clarifying documentation to various StateFlows (#430)

This commit is contained in:
Brian Yencho 2023-12-21 10:48:32 -06:00 committed by Álison Fernandes
parent fe20e2703c
commit d6909d5a53

View file

@ -21,21 +21,33 @@ interface VaultRepository {
/**
* Flow that represents the current vault data.
*
* Note that the [StateFlow.value] will return the last known value but the [StateFlow] itself
* must be collected in order to trigger state changes.
*/
val vaultDataStateFlow: StateFlow<DataState<VaultData>>
/**
* Flow that represents all ciphers for the active user.
*
* Note that the [StateFlow.value] will return the last known value but the [StateFlow] itself
* must be collected in order to trigger state changes.
*/
val ciphersStateFlow: StateFlow<DataState<List<CipherView>>>
/**
* Flow that represents all collections for the active user.
*
* Note that the [StateFlow.value] will return the last known value but the [StateFlow] itself
* must be collected in order to trigger state changes.
*/
val collectionsStateFlow: StateFlow<DataState<List<CollectionView>>>
/**
* Flow that represents all folders for the active user.
*
* Note that the [StateFlow.value] will return the last known value but the [StateFlow] itself
* must be collected in order to trigger state changes.
*/
val foldersStateFlow: StateFlow<DataState<List<FolderView>>>