java.lang.Object | |
↳ | fi.moprim.tmd.sdk.model.TmdActivity |
This class includes all information pertaining to the TMD activity collected from the Moprim Cloud.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
public static final Creator | CREATOR |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
TmdActivity(Parcel in)
Parcel constructor
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | describeContents() | ||||||||||
String | getActivity() | ||||||||||
double | getCo2() | ||||||||||
String | getCorrectedActivity() | ||||||||||
String | getDestination() | ||||||||||
double | getDistance() | ||||||||||
double | getDuration() | ||||||||||
abstract long | getId() | ||||||||||
long | getLastTimestamp() | ||||||||||
String |
getMetadata()
The metadata annotated to the TMD activity
| ||||||||||
String | getOrigin() | ||||||||||
String | getOriginalActivity() | ||||||||||
String |
getPolyline()
To decode the polyline, check
polylineDecode(String) | ||||||||||
double | getSpeed() | ||||||||||
long |
getTimestampDownload()
Return the UTC timestamp of the last download of the TMD activity
| ||||||||||
long | getTimestampEnd() | ||||||||||
long | getTimestampStart() | ||||||||||
boolean |
hasSameTimestamps(TmdActivity other)
Activities are usually compared with their timestamps.
| ||||||||||
boolean | isCheckedByUser() | ||||||||||
boolean |
isCorrect()
This function is only used to validate the results of the TMD
| ||||||||||
abstract boolean | isSyncedWithCloud() | ||||||||||
boolean | overlaps(TmdActivity other, boolean inclusive) | ||||||||||
void |
setCorrectedActivity(String correctedActivity)
Set the corrected label of the activity
| ||||||||||
void |
setMetadata(String metadata)
Set the metadata to annotate the TMD activity
| ||||||||||
abstract void | setSynced(boolean synced) | ||||||||||
JSONObject | toGeoJson() | ||||||||||
JSONObject | toJson() | ||||||||||
String | toString() | ||||||||||
String | toString(SimpleDateFormat simpleDateFormat) | ||||||||||
void | writeToParcel(Parcel dest, int flags) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Parcel constructor
in | the parcel |
---|
The metadata annotated to the TMD activity
To decode the polyline, check polylineDecode(String)
Return the UTC timestamp of the last download of the TMD activity
Activities are usually compared with their timestamps.
This function is only used to validate the results of the TMD
Set the corrected label of the activity
correctedActivity | the new label for the activity |
---|
Set the metadata to annotate the TMD activity
metadata | the metadata |
---|
JSONException |
---|
JSONException |
---|