public class Device
extends java.lang.Object
Pushbullet API: https://docs.pushbullet.com
! ATTENTION ! Classical Java naming conventions can't be respected here. The name of variables must respect the deserialized Pushbullet json fields.
Constructor and Description |
---|
Device(java.lang.String nickname,
java.lang.String manufacturer,
java.lang.String model)
Constructor for a new Device entity with a specific nickname, manufacturer and model.
|
Modifier and Type | Method and Description |
---|---|
int |
getAppVersion()
Get the version of the Pushbullet application installed on the device.
|
double |
getCreated()
Get the creation timestamp, in floating point seconds.
|
java.lang.String |
getFingerprint()
Get the String fingerprint for the device, used by apps to avoid duplicate devices.
|
boolean |
getGeneratedNickname()
Get true if the nickname was automatically generated from the manufacturer and model fields (only used for some android phones).
|
java.lang.String |
getHasSms()
Get true if the devices has SMS capability, currently only true for type="android" devices.
|
java.lang.String |
getIcon()
Get the icon to use for this device, can be an arbitrary string.
|
java.lang.String |
getIden()
Get the unique identifier for this device.
|
java.lang.String |
getKeyFingerprint()
Get the fingerprint for the device's end-to-end encryption key,
used to determine which devices the current device (based on its own key fingerprint)
will be able to talk to.
|
java.lang.String |
getManufacturer()
Get the manufacturer of the device.
|
java.lang.String |
getModel()
Get the model of the device.
|
double |
getModified()
Get the last modification timestamp, in floating point seconds.
|
java.lang.String |
getNickname()
Get the nickname corresponding to this device.
|
java.lang.String |
getPushToken()
Get the platform-specific push token.
|
boolean |
isActive()
Get the status of the device.
|
java.lang.String |
toString() |
public Device(java.lang.String nickname, java.lang.String manufacturer, java.lang.String model)
nickname
- the nickname of the new device.manufacturer
- the manufacturer of the device.model
- the model of the device.public java.lang.String getIden()
public boolean isActive()
public double getCreated()
public double getModified()
public java.lang.String getIcon()
public java.lang.String getNickname()
public boolean getGeneratedNickname()
public java.lang.String getManufacturer()
public java.lang.String getModel()
public int getAppVersion()
public java.lang.String getFingerprint()
public java.lang.String getKeyFingerprint()
public java.lang.String getPushToken()
public java.lang.String getHasSms()
public java.lang.String toString()
toString
in class java.lang.Object