Package io.ably.lib.rest

Class DeviceDetails

java.lang.Object
io.ably.lib.rest.DeviceDetails

public class DeviceDetails extends Object
Contains the properties of a device registered for push notifications.
  • Field Details

    • id

      public String id
      A unique ID generated by the device.
    • platform

      public String platform
      The platform associated with the device. Describes the platform the device uses, such as android or java.
    • formFactor

      public String formFactor
      The device form factor associated with the device. Describes the type of the device, such as phone or tablet.
    • clientId

      public 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
      The DeviceDetails.Push object 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
  • 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(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • fromJsonObject

      public static DeviceDetails fromJsonObject(com.google.gson.JsonObject o)