目录

Value

Function Info

function Value

字段取值,主要用于SamplePoint、ActivityRecord、HealthRecord里用于描述不同的字段的取值。

Public Constructor Summary

Constructor Name

function Value(String field, String value)

构造Value。

Public Method Summary

Qualifier and Type

Method Name and Description

String

getField()

获取键值对字段名称。

String

getValue()

获取键值对字段值。

-

setField(String field)

设置键值对字段名称。

-

setValue(String value)

设置键值对字段值。

Public Constructors

[h2]Value(String field, String value)

Constructor

function Value(String field, String value)

构造Value。

Parameters

Name

Description

field

运动记录唯一标识符id。

value

运动记录开始时间。

Public Methods

[h2]getField()

Method

Value.prototype.getField = function () {}

获取键值对字段名称。

Returns

Type

Description

String

键值对字段名称。

[h2]getValue()

Method

Value.prototype.getValue = function () {}

获取键值对字段值。

Returns

Type

Description

String

键值对字段值。

[h2]setField(String field)

Method

Value.prototype.setField = function (String field) {}

设置键值对字段名称。

Parameters

Name

Description

field

键值对字段名称。

[h2]setValue(String value)

Method

Value.prototype.setValue = function (String value) {}

设置键值对字段值。

Parameters

Name

Description

value

键值对字段值。