Meal

@Serializable
data class Meal(id: String, val type: MeasurementType, _annotationDate: Long = -1, _rawContent: String = "", _glycemia: Int = -1, _postPrandialGlycemia: Int = -1, _insulinUnits: Int = -1) : GlycemicMeasurementItem

The Meal data class represents the measurement of a meal

Author

N7ghtm4r3 - Tecknobit

See also

Constructors

Link copied to clipboard
constructor(id: String, type: MeasurementType, _annotationDate: Long = -1, _rawContent: String = "", _glycemia: Int = -1, _postPrandialGlycemia: Int = -1, _insulinUnits: Int = -1)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

annotationDate state for the date when the item has been annotated

Link copied to clipboard
@Transient
val content: State<String>

content state for the content pretty formatted

Link copied to clipboard

glycemia state for the value of the glycemia when annotated

Link copied to clipboard

glycemicGap the glycemic gap between the postPrandialGlycemia and glycemia value

Link copied to clipboard

glycemicTrend the current glycemic trend annotated

Link copied to clipboard

insulinUnits state for the value of the administered insulin units related to the glycemia value

Link copied to clipboard
open override val isNotFilledYet: Boolean

isNotFilledYet whether the item has been filled

Link copied to clipboard

postPrandialGlycemia state for the value of the post-prandial glycemia when annotated

Link copied to clipboard
@Transient
val rawContent: MutableState<JsonObject>

_rawContent state for the content of the meal "raw" formatted as json

Link copied to clipboard
val type: MeasurementType

The type of the meal