public class Push
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 |
---|
Push() |
Modifier and Type | Method and Description |
---|---|
boolean |
getActive()
Get the status of the push.
|
java.util.List<java.lang.String> |
getAwakeAppGuids()
Get the list of guids (client side identifiers, not the guid field on pushes)
for awake apps at the time the push was sent.
|
java.lang.String |
getBody()
Get the body of the push.
|
java.lang.String |
getChannelIden()
If the push was created by a channel, get the iden of that channel.
|
java.lang.String |
getClientIden()
If the push was created by a client, get the iden of the client sending the push.
|
float |
getCreated()
Get the creation timestamp, in floating point seconds.
|
java.lang.String |
getDirection()
Get the direction the push was sent in, can be "self", "outgoing", or "incoming".
|
boolean |
getDismissed()
Returns true if the push has been dismissed by any device or if any
device was active when the push was received.
|
java.lang.String |
getFileName()
Get the file name, used for type="file" pushes.
|
java.lang.String |
getFileType()
Get the file mime type, used for type="file" pushes.
|
java.lang.String |
getFileUrl()
Get the file download url, used for type="file" pushes.
|
java.lang.String |
getGuid()
Get the Guid of the push.
|
java.lang.String |
getIden()
Get the unique identifier for this push.
|
int |
getImageHeight()
Get the height of image in pixels, only present if image_url is set.
|
java.lang.String |
getImageUrl()
Get the URL to an image to use for this push, present on
type="file" pushes if file_type matches image/*.
|
int |
getImageWidth()
Get the width of image in pixels, only present if image_url is set.
|
double |
getLastModificationTimestamp()
Get the last modification timestamp, in floating point seconds.
|
double |
getModified()
Get the last modification timestamp, in floating point seconds.
|
java.lang.String |
getReceiverEmail()
Get the email address of the receiver of the push.
|
java.lang.String |
getReceiverEmailNormalized()
Get the normalized email address of the receiver of the push.
|
java.lang.String |
getReceiverIden()
Get the iden of the receiver of the push.
|
java.lang.String |
getSenderEmail()
Get the email address of the sender of the push.
|
java.lang.String |
getSenderEmailNormalized()
Get the normalized email address of the sender of the push.
|
java.lang.String |
getSenderIden()
Get the user iden of the sender of the push.
|
java.lang.String |
getSenderName()
Get the name of the sender of the push.
|
java.lang.String |
getSourceDeviceIden()
Get the device iden of the sending device.
|
java.lang.String |
getTargetDeviceIden()
Get the device iden of the target device, if sending to a signe device.
|
java.lang.String |
getTitle()
Get the title of the push.
|
java.lang.String |
getType()
Get the type of the push.
|
java.lang.String |
getUrl()
Get the URL field, used for type="link" pushes.
|
boolean |
isIncoming()
Returns true if the push is incoming.
|
boolean |
isOutgoing()
Returns true if the push is outgoing.
|
java.lang.String |
toString() |
public boolean isIncoming()
Note: a push sent by a user to one of its devices is "self".
public boolean isOutgoing()
public java.lang.String getIden()
public boolean getActive()
public float getCreated()
public double getModified()
public double getLastModificationTimestamp()
getModified()
public java.lang.String getType()
A push must be one of the following: "note", "file", "link".
public boolean getDismissed()
public java.lang.String getGuid()
public java.lang.String getDirection()
public java.lang.String getSenderIden()
public java.lang.String getSenderEmail()
public java.lang.String getSenderEmailNormalized()
public java.lang.String getSenderName()
public java.lang.String getReceiverIden()
public java.lang.String getReceiverEmail()
public java.lang.String getReceiverEmailNormalized()
public java.lang.String getTargetDeviceIden()
public java.lang.String getSourceDeviceIden()
public java.lang.String getClientIden()
public java.lang.String getChannelIden()
public java.util.List<java.lang.String> getAwakeAppGuids()
public java.lang.String getTitle()
public java.lang.String getBody()
public java.lang.String getUrl()
public java.lang.String getFileName()
public java.lang.String getFileType()
public java.lang.String getFileUrl()
public java.lang.String getImageUrl()
public int getImageWidth()
public int getImageHeight()
public java.lang.String toString()
toString
in class java.lang.Object