java.lang.Object | |
↳ | fi.moprim.tmd.sdk.model.TmdUploadMetadata |
A class that summarizes the results of an upload
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
public static final Creator | CREATOR |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
TmdUploadMetadata(long uploadTimestamp, int nbTmdActivities, long lastTmdActivityTimestamp, int nbLocations, long lastLocationTimestamp)
Default constructor
| |||||||||||
TmdUploadMetadata()
Default constructor when nothing was set
| |||||||||||
TmdUploadMetadata(Parcel in)
Parcel constructor
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean |
dataWasUploaded()
Check if some data (TMD or Location) was uploaded
| ||||||||||
int | describeContents() | ||||||||||
static Result<TmdUploadMetadata> |
extractResult(Intent intent)
Extract the result embedded in the intent
| ||||||||||
long |
getLastTimestampOfLocationUploaded()
Get the timestamp of the last location point that was just uploaded
| ||||||||||
long |
getLastTimestampOfTmdActivityUploaded()
Get the end timestamp of last activity that was just uploaded
| ||||||||||
int |
getNbLocationsUploaded()
Get the number of location data points that were uploaded
| ||||||||||
int |
getNbTmdActivitiesUploaded()
Get the number of tmd activities that were just uploaded
| ||||||||||
long |
getUploadTimestamp()
Get the upload timestamp of the last upload
| ||||||||||
static boolean |
hasResult(Intent intent)
Check from an intent if it includes TMD_UPLOAD_METADATA
| ||||||||||
String | toString() | ||||||||||
void | writeToParcel(Parcel dest, int flags) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Default constructor
uploadTimestamp | The upload timestamp of the last upload |
---|---|
nbTmdActivities | The number of tmd activities that were just uploaded |
lastTmdActivityTimestamp | The end timestamp of last activity that was just uploaded |
nbLocations | The number of location data points that were uploaded |
lastLocationTimestamp | The timestamp of the last location point that was just uploaded |
Default constructor when nothing was set
Parcel constructor
in | the parcel |
---|
Check if some data (TMD or Location) was uploaded
Extract the result embedded in the intent
intent | the intent |
---|
Get the timestamp of the last location point that was just uploaded
Get the end timestamp of last activity that was just uploaded
Get the number of location data points that were uploaded
Get the number of tmd activities that were just uploaded
Get the upload timestamp of the last upload
currentTimeMillis()
)
Check from an intent if it includes TMD_UPLOAD_METADATA
intent | the intent to check |
---|