Package-level declarations

Types

Link copied to clipboard
data class AggregatedHealthData(val yValues: List<Double>, val xValues: List<Double>, val seriesName: String)
Link copied to clipboard
data class AverageHealthData(val value: Double, val formattedValue: String)
Link copied to clipboard
data class DeleteRecordAlertData(val recordId: String, val title: StringResource, val description: StringResource, val dismissButton: StringResource, val confirmButton: StringResource)
Link copied to clipboard
sealed interface HealthAction
Link copied to clipboard
class HealthRecordViewModel @AssistedInject constructor(@Assisted recordType: RecordType, appScreenEvents: AppScreenEvents, uiStateMapper: HealthUiStateMapper, healthRepository: HealthRepository, messageNotifier: MessageNotifier) : ViewModel
Link copied to clipboard
class HealthRepository @Inject constructor(firestore: FirebaseFirestore, observationCollectionProvider: ObservationCollectionProvider, observationsDocumentMapper: ObservationsDocumentMapper, observationMapper: ObservationsDocumentMapper, recordToObservationMapper: RecordToObservationMapper, ioDispatcher: CoroutineDispatcher)
Link copied to clipboard
Link copied to clipboard
data class HealthUiData(val records: List<Record> = emptyList(), val chartData: List<AggregatedHealthData> = emptyList(), val tableData: List<TableEntryData> = emptyList(), val newestData: NewestHealthData? = null, val averageData: AverageHealthData? = null, val infoRowData: InfoRowData, val pendingActions: PendingActions<HealthAction.Async> = PendingActions(), val deleteRecordAlertData: DeleteRecordAlertData? = null, val valueFormatter: (Double) -> String)
Link copied to clipboard
sealed interface HealthUiState
Link copied to clipboard
class HealthUiStateMapper @Inject constructor(localeProvider: LocaleProvider)
Link copied to clipboard
class HealthViewModel @Inject constructor(appScreenEvents: AppScreenEvents) : ViewModel
Link copied to clipboard
data class InfoRowData(val formattedValue: String, val formattedDate: String, val isSelectedTimeRangeDropdownExpanded: Boolean, val selectedTimeRange: TimeRange = TimeRange.DAILY)
Link copied to clipboard
data class NewestHealthData(val formattedValue: String, val formattedDate: String)
Link copied to clipboard
Link copied to clipboard
data class TableEntryData(val id: String?, val value: Double?, val secondValue: Float?, val formattedValues: String, val date: ZonedDateTime, val formattedDate: String, val trend: Double?, val formattedTrend: String)
Link copied to clipboard

Functions

Link copied to clipboard
fun HealthPage(uiState: HealthUiState, onAction: (HealthAction) -> Unit)
Link copied to clipboard