DataUpdateRequest

public class DataUpdateRequest extends Object
implements Parcelable

A request to update data added by the app from the Google Fit store in the time interval specified.

An app will provide time range using startTimeMillis and endTimeMillis for which app wants to update the fitness data. Existing fitness data for the provided time range will be cleared. In addition, app will provide DataSet which will have new fitness data for the provided time range. This new data will be inserted into fitness store.

An app can only update data that it has added and cannot update data added by other apps.

Nested Class Summary

class DataUpdateRequest.Builder Builder used to create new DataUpdateRequests. 

Inherited Constant Summary

Field Summary

public static final Creator<DataUpdateRequest> CREATOR

Public Method Summary

boolean
DataSet
getDataSet()
Returns the data set that you're inserting.
long
getEndTime(TimeUnit timeUnit)
Returns the end time of the query, in the given unit since epoch.
long
getStartTime(TimeUnit timeUnit)
Returns the start time of the query, in the given unit since epoch.
int
String
void
writeToParcel(Parcel dest, int flags)

Inherited Method Summary

Fields

public static final Creator<DataUpdateRequest> CREATOR

Public Methods

public boolean equals (Object o)

public DataSet getDataSet ()

Returns the data set that you're inserting.

public long getEndTime (TimeUnit timeUnit)

Returns the end time of the query, in the given unit since epoch. A valid end time is always set.

public long getStartTime (TimeUnit timeUnit)

Returns the start time of the query, in the given unit since epoch. A valid start time is always set.

public int hashCode ()

public String toString ()

public void writeToParcel (Parcel dest, int flags)