public class LocationInformation extends java.lang.Object implements java.lang.Comparable<LocationInformation>
Constructor and Description |
---|
LocationInformation(Location location,
java.lang.String wkid,
java.lang.String IMSI,
java.lang.String team,
int batteryLevel)
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(LocationInformation another) |
java.lang.Long |
getTime()
Funciķ que torna els milisegons des del 1970 de la captura de la posiciķ
|
JSONObject |
toJSONObject()
Funciķ que torna les dades contingudes en la classe en una instāncia de
JSONObject |
public LocationInformation(Location location, java.lang.String wkid, java.lang.String IMSI, java.lang.String team, int batteryLevel)
location
- instāncia de Location
que conté les dades geogrāfiques i de temps de la posiciķ capturadawkid
- parāmetre utilitzat en el missatge HTTP pel servidor GISIMSI
- parāmetre utilitzat en el missatge HTTP pel servidor GISteam
- parāmetre per identificar l'equipbatteryLevel
- nivell de bateriapublic JSONObject toJSONObject()
JSONObject
JSONObject
public java.lang.Long getTime()
public int compareTo(LocationInformation another)
compareTo
in interface java.lang.Comparable<LocationInformation>