Package io.ably.lib.rest
Class DeviceDetails
- java.lang.Object
-
- io.ably.lib.rest.DeviceDetails
-
public class DeviceDetails extends java.lang.ObjectContains 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
All Methods Static Methods Instance Methods Concrete Methods 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 Detail
-
id
public java.lang.String id
A unique ID generated by the device.
-
platform
public java.lang.String platform
The platform associated with the device. Describes the platform the device uses, such as android or java.
-
formFactor
public java.lang.String formFactor
The device form factor associated with the device. Describes the type of the device, such as phone or tablet.
-
clientId
public java.lang.String clientId
The client ID the device is connected to Ably with.
-
metadata
public com.google.gson.JsonObject metadata
A JSON object of key-value pairs that contains metadata for the device.
-
push
public DeviceDetails.Push push
TheDeviceDetails.Pushobject associated with the device. Describes the details of the push registration of the device.
-
httpResponseHandler
public static HttpCore.ResponseHandler<DeviceDetails> httpResponseHandler
-
httpBodyHandler
public static HttpCore.BodyHandler<DeviceDetails> httpBodyHandler
-
-
Method Detail
-
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
public static DeviceDetails fromJsonObject(com.google.gson.JsonObject o)
-
-