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.
  • Field Details

    • KEY_DEFAULT_PROGRAMMABLEGEOCACHEDEVICEDATAKEY

      public static final String KEY_DEFAULT_PROGRAMMABLEGEOCACHEDEVICEDATAKEY
      Default IPC key
      See Also:
    • identificationString

      public String identificationString
      Identification string of a geocache device. Note: This string is also received in the DeviceList information handled by AntPlusGeocachePcc.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

      public Long 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

      public BigDecimal 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

      public BigDecimal 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

      public String 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

      public GregorianCalendar 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

      public Integer 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> CREATOR
      Parcel 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 interface android.os.Parcelable
    • writeToParcel

      public void writeToParcel(android.os.Parcel dest, int flags)
      Specified by:
      writeToParcel in interface android.os.Parcelable