Captures the information needed to identify updates to Google Fitness Store data. Currently, it includes the time range for which update happened, the type of operation which resulted in update along with the dataSource/dataType of the data which was modified.
Constant Summary
String | ACTION | |
String | EXTRA_DATA_UPDATE_NOTIFICATION | Name for the long intent extra containing the data update notification. |
int | OPERATION_DELETE | |
int | OPERATION_INSERT | |
int | OPERATION_UPDATE |
Inherited Constant Summary
Field Summary
public static finalCreator<DataUpdateNotification> | CREATOR |
Public Method Summary
boolean | |
DataSource |
getDataSource()
Retrieves the dataSource whose data has been modified.
|
DataType |
getDataType()
Retrieves the dataType whose data has been modified.
|
static DataUpdateNotification |
getDataUpdateNotification(Intent
intent)
Retrieves the data update notification from the given intent.
|
int |
getOperationType()
Retrieves the operationType which causes the update in Fitness Store.
|
long |
getUpdateEndTime(TimeUnit
timeUnit)
Retrieves the endTime of the interval range for which data has been modified in
the given unit since epoch.
|
long |
getUpdateStartTime(TimeUnit
timeUnit)
Retrieves the startTime of the interval range for which data has been modified
in the given unit since epoch.
|
int |
hashCode()
|
String |
toString()
|
void |
writeToParcel(Parceldest, int
flags)
|
Inherited Method Summary
Constants
public static finalString ACTION
public static finalString EXTRA_DATA_UPDATE_NOTIFICATION
Name for the long intent extra containing the data update notification. It can be
extracted using
getDataUpdateNotification(Intent)
.
public static final int OPERATION_DELETE
public static final int OPERATION_INSERT
public static final int OPERATION_UPDATE
Fields
public static finalCreator<DataUpdateNotification> CREATOR
Public Methods
public booleanequals(Objectother)
publicDataSource getDataSource()
Retrieves the dataSource whose data has been modified.
publicDataType getDataType()
Retrieves the dataType whose data has been modified.
public staticDataUpdateNotification getDataUpdateNotification(Intent intent)
Retrieves the data update notification from the given intent.
public intgetOperationType()
Retrieves the operationType which causes the update in Fitness Store.
public longgetUpdateEndTime(TimeUnit timeUnit)
Retrieves the endTime of the interval range for which data has been modified in the given unit since epoch. A valid end time is always set.
public longgetUpdateStartTime(TimeUnit timeUnit)
Retrieves the startTime of the interval range for which data has been modified in the given unit since epoch. A valid start time is always set.