Class DeviceDetails


  • public class DeviceDetails
    extends java.lang.Object
    Contains the properties of a device registered for push notifications.
    • 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.
    • Constructor Detail

      • DeviceDetails

        public DeviceDetails()
    • 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:
        equals in class java.lang.Object
      • toString

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

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