public final 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

static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int

Public constructors

Device(String manufacturer, String model, int type)

Public methods

boolean
equals(Object other)
final String

an optional client supplied manufacturer of the device

final String

an optional client supplied model of the device

final int

an optional client supplied type of the device

int
@NonNull String

Constants

TYPE_CHEST_STRAP

public static final int TYPE_CHEST_STRAP = 7

TYPE_FITNESS_BAND

public static final int TYPE_FITNESS_BAND = 6

TYPE_HEAD_MOUNTED

public static final int TYPE_HEAD_MOUNTED = 5

TYPE_PHONE

public static final int TYPE_PHONE = 2

TYPE_RING

public static final int TYPE_RING = 4

TYPE_SCALE

public static final int TYPE_SCALE = 3

TYPE_SMART_DISPLAY

public static final int TYPE_SMART_DISPLAY = 8

TYPE_UNKNOWN

public static final int TYPE_UNKNOWN = 0

TYPE_WATCH

public static final int TYPE_WATCH = 1

Public constructors

Device

Added in 1.1.0-alpha10
public Device(String manufacturer, String model, int type)

Public methods

equals

public boolean equals(Object other)

getManufacturer

Added in 1.1.0-alpha10
public final String getManufacturer()

an optional client supplied manufacturer of the device

getModel

Added in 1.1.0-alpha10
public final String getModel()

an optional client supplied model of the device

getType

Added in 1.1.0-alpha10
public final int getType()

an optional client supplied type of the device

hashCode

public int hashCode()

toString

public @NonNull String toString()