GoalsResult

public class GoalsResult extends AbstractSafeParcelable
implements Result

Result of readCurrentGoals(GoogleApiClient, GoalsReadRequest). Contains all of the current goals. The method getGoals() can be used to fetch the resulting goals.

The method getStatus() can be be used to confirm that the request was successful.

Inherited Constant Summary

Field Summary

public static final Creator<GoalsResult> CREATOR

Public Method Summary

List<Goal>
getGoals()
Returns all current goals that matched the request.
Status
getStatus()
Returns the status of this result.
void
writeToParcel(Parcel dest, int flags)

Inherited Method Summary

Fields

public static final Creator<GoalsResult> CREATOR

Public Methods

public List<Goal> getGoals ()

Returns all current goals that matched the request. Returns an empty list if no goals are found.

public Status getStatus ()

Returns the status of this result. Use isSuccess() to determine whether the call was successful, and getStatusCode() to determine what the error cause was.

Certain errors are due to failures that can be resolved by launching a particular intent. The resolution intent is available via getResolution().

public void writeToParcel (Parcel dest, int flags)