Package com.dsi.ant.plugins.antplus.pcc
Class AntPlusGeocachePcc.ProgrammableGeocacheDeviceData
java.lang.Object
com.dsi.ant.plugins.antplus.pcc.AntPlusGeocachePcc.ProgrammableGeocacheDeviceData
- All Implemented Interfaces:
android.os.Parcelable
- Enclosing class:
- AntPlusGeocachePcc
public static class AntPlusGeocachePcc.ProgrammableGeocacheDeviceData
extends Object
implements android.os.Parcelable
Represents the programmable data contained on a geocache device.
Note: If a value is null it means it is not set on the device.
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final android.os.Parcelable.Creator<AntPlusGeocachePcc.ProgrammableGeocacheDeviceData>
Parcel CREATOR objectThe "hint" message string stored on the device.Identification string of a geocache device.static final String
Default IPC keyTimestamp of the last visit.The "next stage" latitude coordinate.The "next stage" longitude coordinate.The number of visits logged on the device.The programming PIN to protect against accidental reprogramming.Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
Constructor Summary
ConstructorsConstructorDescriptionConstructorProgrammableGeocacheDeviceData
(android.os.Parcel in) Parcel constructor -
Method Summary
-
Field Details
-
KEY_DEFAULT_PROGRAMMABLEGEOCACHEDEVICEDATAKEY
Default IPC key- See Also:
-
identificationString
Identification string of a geocache device. Note: This string is also received in the DeviceList information handled byAntPlusGeocachePcc.IAvailableDeviceListReceiver
. Supports ASCII characters from 0x20 to 0x5F. IDs must be 9 characters long. If an ID is composed only of spaces (" "), it signifies it is in the unprogrammed state. -
PIN
The programming PIN to protect against accidental reprogramming. The Geocache profile documentation states it is the responsibility of the receiver to not reprogram devices on which that receiver did not originally program and set the PIN. Range: 0 to 0xFFFFFFFE (If a PIN value equals 0xFFFFFFFF it signifies it is in the unprogrammed state). -
latitude
The "next stage" latitude coordinate. Units: degrees, -90 (90S) to 90 (90N). Hint: Use 'serializable' for bundle put/get. ie: "BigDecimal latitude = (BigDecimal)b.getSerializable(GeocacheDataKeys.decimalLATITUDE)" -
longitude
The "next stage" longitude coordinate. | degrees, -180 (180W) to 180 (180E). Hint: Use 'serializable' for bundle put/get. ie: "BigDecimal longitude = (BigDecimal)b.getSerializable(GeocacheDataKeys.decimalLONGITUDE)" -
hintString
The "hint" message string stored on the device. Note: The maximum length of this string depends on how much other data is saved on the device. -
lastVisitTimestamp
Timestamp of the last visit. Note for receivers: The plugin takes care of updating this field automatically whenever any application requests to read the data (and the field is auto-updated only once during the entire duration the device can be detected in range regardless of how many downloads requests occur). Format: UTC time using the Gregorian Calendar. Hint: Use 'serializable' for bundle put/get. ie: "GregorianCalendar lastVisitTimestamp = (GregorianCalendar)b.getSerializable(GeocacheDataKeys.gregorianCalendarLASTVISITTIMESTAMP)" -
numberOfVisits
The number of visits logged on the device. Note for receivers: The plugin takes care of updating this field automatically whenever any application requests to read the data (and the field is auto-updated only once during the entire duration the device can be detected in range regardless of how many downloads requests occur). Range: 0-65535. -
CREATOR
public static final android.os.Parcelable.Creator<AntPlusGeocachePcc.ProgrammableGeocacheDeviceData> CREATORParcel CREATOR object
-
-
Constructor Details
-
ProgrammableGeocacheDeviceData
public ProgrammableGeocacheDeviceData(android.os.Parcel in) Parcel constructor- Parameters:
in
- Parcel containing object data.
-
ProgrammableGeocacheDeviceData
public ProgrammableGeocacheDeviceData()Constructor
-
-
Method Details
-
describeContents
public int describeContents()- Specified by:
describeContents
in interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags) - Specified by:
writeToParcel
in interfaceandroid.os.Parcelable
-