healbesdk / com.healbe.healbesdk.models.healthdata / HDWeight

HDWeight

interface HDWeight : HDMeasurement, HDEntity

Weight of the user at some moment of time.

Properties

source

abstract val source: Source

Source of the data.

weight

abstract val weight: Double

User's weight in kilograms.

Inherited Properties

id

abstract val id: Long?

Unique identifier of entity. It is null until synchronization with the server.

isDeleted

abstract val isDeleted: Boolean

true if this entity has been deleted and false otherwise.

lastUpdate

abstract val lastUpdate: Long?

Timestamp in milliseconds of last changes of this entity on the server.

measurementTime

abstract val measurementTime: Timestamp

Time when data was measured as UNIX timestamp.

Functions

isEmpty

open fun isEmpty(): Boolean

Check is object an empty (false) weight.

isSame

open fun isSame(other: HDWeight): Boolean

Returns true if weights are the same (i.e. have the same measurement time, weight and source) and false otherwise.