目录

Goal

java.lang.Object

|---com.huawei.hihealth.model.Goal

public class Goal
extends java.lang.Object
implements android.os.Parcelable
Goal.

Since:

2022-03-30

Nested Class Summary

Nested classes/interfaces inherited from interface android.os.Parcelable

android.os.Parcelable.ClassLoaderCreator, android.os.Parcelable.Creator

Field Summary

Fields inherited from interface android.os.Parcelable

CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE

Constructor Summary

Constructor and Description

Goal() No-argument constructor.

Method Summary

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

Constructor Detail

[h2]Goal

public Goal()

No-argument constructor.

Method Detail

[h2]getDataType

public int getDataType()

Obtains the data type.

Returns:

Goal data type.

[h2]setDataType

public void setDataType(int dataType)

Sets the goal data type.

Parameters:

Parameter Name

Parameter Description

dataType

Goal data type.

[h2]getAchievedResult

public java.lang.String getAchievedResult()

Obtains the actual value achieved.

Returns:

Actual value achieved.

[h2]setAchievedResult

public void setAchievedResult(java.lang.String achievedResult)

Sets the actual value achieved.

Parameters:

Parameter Name

Parameter Description

achievedResult

Actual value achieved.

[h2]isAchievedFlag

public boolean isAchievedFlag()

Obtains the goal achievement status.

Returns:

Goal achievement status.

[h2]setAchievedFlag

public void setAchievedFlag(boolean achievedFlag)

Sets the goal achievement status.

Parameters:

Parameter Name

Parameter Description

achievedFlag

Goal achievement status.

[h2]getGoalType

public int getGoalType()

Obtains the goal type.

Returns:

Goal type.

[h2]setGoalType

public void setGoalType(int goalType)

Sets the goal type.

Parameters:

Parameter Name

Parameter Description

goalType

Goal type.