class Device


A physical device (such as phone, watch, scale, or chest strap) which captured associated health data point.

Device needs to be populated by users of the API. Metadata fields not provided by clients will remain absent.

Summary

Constants

const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int

Public constructors

Device(manufacturer: String?, model: String?, type: Int)

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

String?

an optional client supplied manufacturer of the device

String?

an optional client supplied model of the device

Int

an optional client supplied type of the device

Constants

TYPE_CHEST_STRAP

const val TYPE_CHEST_STRAP = 7: Int

TYPE_FITNESS_BAND

const val TYPE_FITNESS_BAND = 6: Int

TYPE_HEAD_MOUNTED

const val TYPE_HEAD_MOUNTED = 5: Int

TYPE_PHONE

const val TYPE_PHONE = 2: Int

TYPE_RING

const val TYPE_RING = 4: Int

TYPE_SCALE

const val TYPE_SCALE = 3: Int

TYPE_SMART_DISPLAY

const val TYPE_SMART_DISPLAY = 8: Int

TYPE_UNKNOWN

const val TYPE_UNKNOWN = 0: Int

TYPE_WATCH

const val TYPE_WATCH = 1: Int

Public constructors

Device

Added in 1.1.0-alpha10
Device(manufacturer: String? = null, model: String? = null, type: Int = TYPE_UNKNOWN)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

manufacturer

Added in 1.1.0-alpha10
val manufacturerString?

an optional client supplied manufacturer of the device

model

Added in 1.1.0-alpha10
val modelString?

an optional client supplied model of the device

type

Added in 1.1.0-alpha10
val typeInt

an optional client supplied type of the device