Glycemic Trend Data Container

@Serializable
data class GlycemicTrendDataContainer(val breakfast: GlycemicTrendData? = null, val morningSnack: GlycemicTrendData? = null, val lunch: GlycemicTrendData? = null, val afternoonSnack: GlycemicTrendData? = null, val dinner: GlycemicTrendData? = null, val basalInsulin: GlycemicTrendData? = null, val from: Long = -1, val to: Long = -1)

The GlycemicTrendDataContainer data class is used as container of the data related to the glycemic trend over a selected period

Author

N7ghtm4r3 - Tecknobit

Constructors

Link copied to clipboard
constructor(breakfast: GlycemicTrendData? = null, morningSnack: GlycemicTrendData? = null, lunch: GlycemicTrendData? = null, afternoonSnack: GlycemicTrendData? = null, dinner: GlycemicTrendData? = null, basalInsulin: GlycemicTrendData? = null, from: Long = -1, to: Long = -1)

Properties

Link copied to clipboard
@SerialName(value = "afternoon_snack" )
val afternoonSnack: GlycemicTrendData?

The trend data related to the afternoon snack measurements

Link copied to clipboard
val availableSets: MutableList<MeasurementType>

availableSets the list of available sets

Link copied to clipboard
@SerialName(value = "basal_insulin" )
val basalInsulin: GlycemicTrendData?

The trend data related to the basal insulin measurements

Link copied to clipboard

The trend data related to the breakfast measurements

Link copied to clipboard

The trend data related to the dinner measurements

Link copied to clipboard
val from: Long

The start date from retrieve the measurements

Link copied to clipboard

The trend data related to the lunch measurements

Link copied to clipboard
@SerialName(value = "morning_snack" )
val morningSnack: GlycemicTrendData?

The trend data related to the morning snack measurements

Link copied to clipboard
val to: Long

The end date from retrieve the measurements

Functions

Link copied to clipboard

Method used to check whether the data are available

Link copied to clipboard
fun getRelatedSet(type: MeasurementType): GlycemicTrendData?

Method used to retrieve the specific set based on the type