Package io.ably.lib.rest
Class DeviceDetails
java.lang.Object
io.ably.lib.rest.DeviceDetails
public class DeviceDetails
extends java.lang.Object
Contains the properties of a device registered for push notifications.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceDetails.PushContains the details of the push registration of a device. -
Field Summary
Fields Modifier and Type Field Description java.lang.StringclientIdThe client ID the device is connected to Ably with.java.lang.StringformFactorThe device form factor associated with the device.static HttpCore.BodyHandler<DeviceDetails>httpBodyHandlerstatic HttpCore.ResponseHandler<DeviceDetails>httpResponseHandlerjava.lang.StringidA unique ID generated by the device.com.google.gson.JsonObjectmetadataA JSON object of key-value pairs that contains metadata for the device.java.lang.StringplatformThe platform associated with the device.DeviceDetails.PushpushTheDeviceDetails.Pushobject associated with the device. -
Constructor Summary
Constructors Constructor Description DeviceDetails() -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object o)static DeviceDetailsfromJsonObject(com.google.gson.JsonObject o)com.google.gson.JsonObjectpushRecipientJsonObject()com.google.gson.JsonObjecttoJsonObject()java.lang.StringtoString()
-
Field Details
-
id
public java.lang.String idA unique ID generated by the device. -
platform
public java.lang.String platformThe platform associated with the device. Describes the platform the device uses, such as android or java. -
formFactor
public java.lang.String formFactorThe device form factor associated with the device. Describes the type of the device, such as phone or tablet. -
clientId
public java.lang.String clientIdThe client ID the device is connected to Ably with. -
metadata
public com.google.gson.JsonObject metadataA JSON object of key-value pairs that contains metadata for the device. -
push
TheDeviceDetails.Pushobject associated with the device. Describes the details of the push registration of the device. -
httpResponseHandler
-
httpBodyHandler
-
-
Constructor Details
-
DeviceDetails
public DeviceDetails()
-
-
Method Details
-
toJsonObject
public com.google.gson.JsonObject toJsonObject() -
pushRecipientJsonObject
public com.google.gson.JsonObject pushRecipientJsonObject() -
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
fromJsonObject
-