java.lang.Object |---com.huawei.hihealth.model.Goal public class Goal extends java.lang.Object implements android.os.Parcelable |
Since:
2022-03-30Nested classes/interfaces inherited from interface android.os.Parcelable |
|---|
android.os.Parcelable.ClassLoaderCreator, android.os.Parcelable.Creator |
Fields inherited from interface android.os.Parcelable |
|---|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE |
Modifier and Type | Method and Description |
|---|---|
java.lang.String | getAchievedResult() Obtains the actual value achieved. |
int | getDataType() Obtains the data type. |
int | getGoalType() Obtains the goal type. |
boolean | isAchievedFlag() Obtains the goal achievement status. |
void | setAchievedFlag(boolean achievedFlag) Sets the goal achievement status. |
void | setAchievedResult(java.lang.String achievedResult) Sets the actual value achieved. |
void | setDataType(int dataType) Sets the goal data type. |
void | setGoalType(int goalType) Sets the goal type. |
Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface android.os.Parcelable |
|---|
describeContents, writeToParcel |
public void setDataType(int dataType)
Sets the goal data type.Parameters:
Parameter Name | Parameter Description |
|---|---|
dataType | Goal data type. |
public java.lang.String getAchievedResult()
Obtains the actual value achieved.Returns:
Actual value achieved.
public void setAchievedResult(java.lang.String achievedResult)
Sets the actual value achieved.Parameters:
Parameter Name | Parameter Description |
|---|---|
achievedResult | Actual value achieved. |
public boolean isAchievedFlag()
Obtains the goal achievement status.Returns:
Goal achievement status.