Request for reading current Goals
from
Google Fit.
Nested Class Summary
class | GoalsReadRequest.Builder | Builder used to create new GoalsReadRequest. |
Inherited Constant Summary
Field Summary
public static final Creator<GoalsReadRequest> | CREATOR |
Public Method Summary
boolean | |
List<String> |
getActivityNames()
Returns the names of the activities specified in the request.
|
List<DataType> |
getDataTypes()
Returns the data types specified in the request.
|
List<Integer> |
getObjectiveTypes()
Returns the objective types specified in the request.
|
int |
hashCode()
|
String |
toString()
|
void |
writeToParcel(Parcel parcel, int
flags)
|
Inherited Method Summary
Fields
public static final Creator<GoalsReadRequest> CREATOR
Public Methods
public boolean equals (Object that)
public List<String> getActivityNames ()
Returns the names of the activities specified in the request. Goals not related to these activities will be filtered.
Returns
- null if there is no activity specified in the request. If there is no specific activity in the request, no goals will be filtered by activity.
public List<DataType> getDataTypes ()
Returns the data types specified in the request. Goals not tracking these data types will be filtered.
Returns
- all specified data types.
public List<Integer> getObjectiveTypes ()
Returns the objective types specified in the request. A goal will be filtered if its
objective type is not one of the specified types. An objective type should be one of
the
OBJECTIVE_TYPE_METRIC
,
OBJECTIVE_TYPE_DURATION
,
OBJECTIVE_TYPE_FREQUENCY
constants.
Returns
- null if there is no objective type in the request. If there is no specific objective type in the request, no goals will be filtered by objective types.