DataTypes

object DataTypes


Helper class to facilitate working with DataTypes.

Summary

Public functions

const Boolean

Check if a DataType will be aggregated as a cumulative value.

const Boolean

Check if a DataType will be aggregated as a statistical value.

Public functions

isCumulativeDataType

const fun isCumulativeDataType(dataType: DataType): Boolean

Check if a DataType will be aggregated as a cumulative value.

Note: DataType.SWIMMING_LAP_COUNT already represents the total lap count, so it is not considered a cumulative data type.

isStatisticalDataType

const fun isStatisticalDataType(dataType: DataType): Boolean

Check if a DataType will be aggregated as a statistical value.