Glycemic Trend Data

@Serializable
data class GlycemicTrendData(val higherGlycemia: GlycemiaPoint, val lowerGlycemia: GlycemiaPoint, val averageGlycemia: Double, val firstSet: List<GlycemiaPoint>? = null, val secondSet: List<GlycemiaPoint>? = null, val thirdSet: List<GlycemiaPoint>? = null, val fourthSet: List<GlycemiaPoint>? = null, val labelType: GlycemicTrendLabelType? = null)

The GlycemicTrendData data class is used to contains the trend data for each type of measurement

Author

N7ghtm4r3 - Tecknobit

Constructors

Link copied to clipboard
constructor(higherGlycemia: GlycemiaPoint, lowerGlycemia: GlycemiaPoint, averageGlycemia: Double, firstSet: List<GlycemiaPoint>? = null, secondSet: List<GlycemiaPoint>? = null, thirdSet: List<GlycemiaPoint>? = null, fourthSet: List<GlycemiaPoint>? = null, labelType: GlycemicTrendLabelType? = null)

Properties

Link copied to clipboard
@SerialName(value = "average_glycemia" )
val averageGlycemia: Double

The average glycemia value

Link copied to clipboard
@SerialName(value = "first_set" )
val firstSet: List<GlycemiaPoint>?

The first set of data

Link copied to clipboard
@SerialName(value = "fourth_set" )
val fourthSet: List<GlycemiaPoint>?

The fourth set of data

Link copied to clipboard
@SerialName(value = "higher_glycemia" )
val higherGlycemia: GlycemiaPoint

The higher glycemia value

Link copied to clipboard
@SerialName(value = "label_type" )
val labelType: GlycemicTrendLabelType?

The type of the label

Link copied to clipboard
@SerialName(value = "lower_glycemia" )
val lowerGlycemia: GlycemiaPoint

The lower glycemia value

Link copied to clipboard
@SerialName(value = "second_set" )
val secondSet: List<GlycemiaPoint>?

The second set of data

Link copied to clipboard

sets the list of available sets

Link copied to clipboard
@SerialName(value = "third_set" )
val thirdSet: List<GlycemiaPoint>?

The third set of data

Functions

Link copied to clipboard

Method used to retrieve the specific set based on the index

Link copied to clipboard

Method used to check whether the data are available