Class AntPlusWatchDownloaderPcc.DeviceInfo

java.lang.Object
com.dsi.ant.plugins.antplus.pcc.AntPlusWatchDownloaderPcc.DeviceInfo
All Implemented Interfaces:
android.os.Parcelable
Enclosing class:
AntPlusWatchDownloaderPcc

public static class AntPlusWatchDownloaderPcc.DeviceInfo extends Object implements android.os.Parcelable
Device information, used in available devices list and making requests
  • Field Details

    • deviceUUID

      protected UUID deviceUUID
    • savedDisplayName

      protected String savedDisplayName
    • antFsManufacturerId

      protected int antFsManufacturerId
    • antFsDeviceType

      protected int antFsDeviceType
    • CREATOR

      public static final android.os.Parcelable.Creator<AntPlusWatchDownloaderPcc.DeviceInfo> CREATOR
      CREATOR for parceling
  • Constructor Details

    • DeviceInfo

      public DeviceInfo(UUID deviceUUID, int antFsManufacturerId, int antFsDeviceType, String savedDisplayName)
      Constructor.
      Parameters:
      deviceUUID - deviceUUID
      antFsManufacturerId - antFsManufacturerId
      antFsDeviceType - antFsDeviceType
      savedDisplayName - savedDisplayName
  • 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
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • getDeviceUUID

      public UUID getDeviceUUID()
      Returns a UUID uniquely identifying this device for the plugin. Once any application has interacted with this device the device is saved to the plugin database and the UUID will be permanent across sessions. If this device is not saved to the database the UUID will only be consistent until the PCC is released and the plugin service shuts down.
      Returns:
      The UUID identifying this device for the plugin.
    • getAntfsManufacturerId

      public int getAntfsManufacturerId()
      Returns the manufacturer id.
      Returns:
      The manufacturer id.
    • getAntfsDeviceType

      public int getAntfsDeviceType()
      Returns the device type.
      Returns:
      The device type.
    • getDisplayName

      public String getDisplayName()
      Returns the display name.
      Returns:
      The display name.