DoubleMetricV2

Constructors

Link copied to clipboard
constructor(id: String, code: String, eta: Int, range: PopulationRange)

Functions

Link copied to clipboard
Link copied to clipboard
open override fun getMetric(mvpDao: MVPDao): Flow<List<StatisticEntity>>
Link copied to clipboard
open override fun getReferencePopulationRange(basicInfo: BasicInfo): Range

Use this function to retrieve the reference population values for the current user. You need to provide the BasicInfo that you can obtain from QA.basicInfo.

Link copied to clipboard
open override fun getStat(apiService: ApiService, identityId: String, participationId: String, from: String, to: String): Flow<ApiResponse<List<StatisticEntity>>>
Link copied to clipboard
open override fun insertOrUpdateMetric(mvpDao: MVPDao, statistics: List<StatisticEntity>)
Link copied to clipboard
open override fun prepareReturnData(values: List<StatisticEntity>, from: Long, to: Long): TimeSeries<Double>
Link copied to clipboard