public class MonitoringInfoMesg extends Mesg
Modifier and Type | Field and Description |
---|---|
static int |
ActivityTypeFieldNum |
static int |
CyclesToCaloriesFieldNum |
static int |
CyclesToDistanceFieldNum |
static int |
LocalTimestampFieldNum |
protected static Mesg |
monitoringInfoMesg |
static int |
RestingMetabolicRateFieldNum |
static int |
TimestampFieldNum |
developerFields, fields, localNum, name, num, systemTimeOffset
Constructor and Description |
---|
MonitoringInfoMesg() |
MonitoringInfoMesg(Mesg mesg) |
Modifier and Type | Method and Description |
---|---|
ActivityType[] |
getActivityType() |
ActivityType |
getActivityType(int index)
Get activity_type field
|
java.lang.Float[] |
getCyclesToCalories() |
java.lang.Float |
getCyclesToCalories(int index)
Get cycles_to_calories field
Units: kcal/cycle
Comment: Indexed by activity_type
|
java.lang.Float[] |
getCyclesToDistance() |
java.lang.Float |
getCyclesToDistance(int index)
Get cycles_to_distance field
Units: m/cycle
Comment: Indexed by activity_type
|
java.lang.Long |
getLocalTimestamp()
Get local_timestamp field
Units: s
Comment: Use to convert activity timestamps to local time if device does not support time zone and daylight savings time correction.
|
int |
getNumActivityType() |
int |
getNumCyclesToCalories() |
int |
getNumCyclesToDistance() |
java.lang.Integer |
getRestingMetabolicRate()
Get resting_metabolic_rate field
Units: kcal / day
|
DateTime |
getTimestamp()
Get timestamp field
Units: s
|
void |
setActivityType(int index,
ActivityType activityType)
Set activity_type field
|
void |
setCyclesToCalories(int index,
java.lang.Float cyclesToCalories)
Set cycles_to_calories field
Units: kcal/cycle
Comment: Indexed by activity_type
|
void |
setCyclesToDistance(int index,
java.lang.Float cyclesToDistance)
Set cycles_to_distance field
Units: m/cycle
Comment: Indexed by activity_type
|
void |
setLocalTimestamp(java.lang.Long localTimestamp)
Set local_timestamp field
Units: s
Comment: Use to convert activity timestamps to local time if device does not support time zone and daylight savings time correction.
|
void |
setRestingMetabolicRate(java.lang.Integer restingMetabolicRate)
Set resting_metabolic_rate field
Units: kcal / day
|
void |
setTimestamp(DateTime timestamp)
Set timestamp field
Units: s
|
addDeveloperField, addField, getActiveSubFieldIndex, getActiveSubFieldName, getDeveloperFields, getField, getField, getField, getFieldBigIntegerValue, getFieldBigIntegerValue, getFieldBigIntegerValue, getFieldBigIntegerValue, getFieldBigIntegerValue, getFieldBigIntegerValue, getFieldBigIntegerValues, getFieldBigIntegerValues, getFieldBigIntegerValues, getFieldBitsValue, getFieldBitsValue, getFieldByteValue, getFieldByteValue, getFieldByteValue, getFieldByteValue, getFieldByteValue, getFieldByteValue, getFieldByteValues, getFieldByteValues, getFieldByteValues, getFieldDoubleValue, getFieldDoubleValue, getFieldDoubleValue, getFieldDoubleValue, getFieldDoubleValue, getFieldDoubleValue, getFieldDoubleValues, getFieldDoubleValues, getFieldDoubleValues, getFieldFloatValue, getFieldFloatValue, getFieldFloatValue, getFieldFloatValue, getFieldFloatValue, getFieldFloatValue, getFieldFloatValues, getFieldFloatValues, getFieldFloatValues, getFieldIntegerValue, getFieldIntegerValue, getFieldIntegerValue, getFieldIntegerValue, getFieldIntegerValue, getFieldIntegerValue, getFieldIntegerValues, getFieldIntegerValues, getFieldIntegerValues, getFieldLongValue, getFieldLongValue, getFieldLongValue, getFieldLongValue, getFieldLongValue, getFieldLongValue, getFieldLongValues, getFieldLongValues, getFieldLongValues, getFields, getFieldShortValue, getFieldShortValue, getFieldShortValue, getFieldShortValue, getFieldShortValue, getFieldShortValue, getFieldShortValues, getFieldShortValues, getFieldShortValues, getFieldStringValue, getFieldStringValue, getFieldStringValue, getFieldStringValue, getFieldStringValue, getFieldStringValue, getFieldStringValues, getFieldStringValues, getFieldStringValues, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getIsFieldAccumulated, getLocalNum, getName, getNum, getNumFields, getNumFieldValues, getNumFieldValues, getNumFieldValues, getNumFieldValues, getOverrideField, hasField, removeExpandedFields, removeField, setField, setFields, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setLocalNum, timestampToDateTime, write, write
public static final int TimestampFieldNum
public static final int LocalTimestampFieldNum
public static final int ActivityTypeFieldNum
public static final int CyclesToDistanceFieldNum
public static final int CyclesToCaloriesFieldNum
public static final int RestingMetabolicRateFieldNum
protected static final Mesg monitoringInfoMesg
public MonitoringInfoMesg()
public MonitoringInfoMesg(Mesg mesg)
public DateTime getTimestamp()
public void setTimestamp(DateTime timestamp)
timestamp
- The new timestamp value to be setpublic java.lang.Long getLocalTimestamp()
public void setLocalTimestamp(java.lang.Long localTimestamp)
localTimestamp
- The new localTimestamp value to be setpublic ActivityType[] getActivityType()
public int getNumActivityType()
public ActivityType getActivityType(int index)
index
- of activity_typepublic void setActivityType(int index, ActivityType activityType)
index
- of activity_typeactivityType
- The new activityType value to be setpublic java.lang.Float[] getCyclesToDistance()
public int getNumCyclesToDistance()
public java.lang.Float getCyclesToDistance(int index)
index
- of cycles_to_distancepublic void setCyclesToDistance(int index, java.lang.Float cyclesToDistance)
index
- of cycles_to_distancecyclesToDistance
- The new cyclesToDistance value to be setpublic java.lang.Float[] getCyclesToCalories()
public int getNumCyclesToCalories()
public java.lang.Float getCyclesToCalories(int index)
index
- of cycles_to_caloriespublic void setCyclesToCalories(int index, java.lang.Float cyclesToCalories)
index
- of cycles_to_caloriescyclesToCalories
- The new cyclesToCalories value to be setpublic java.lang.Integer getRestingMetabolicRate()
public void setRestingMetabolicRate(java.lang.Integer restingMetabolicRate)
restingMetabolicRate
- The new restingMetabolicRate value to be set