Package com.ironcorelabs.sdk
Class UserDevice
- java.lang.Object
-
- com.ironcorelabs.sdk.UserDevice
-
public final class UserDevice extends java.lang.Object
Metadata about a user device.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
boolean
equals(java.lang.Object obj)
protected void
finalize()
java.util.Date
getCreated()
Get the time the device was last updatedDeviceId
getId()
Get the unique id for the devicejava.util.Date
getLastUpdated()
Get the time the device was createdjava.util.Optional<DeviceName>
getName()
Get the devices optional non-unique readable nameint
hashCode()
boolean
isCurrentDevice()
True if this device instance is the one that was used to make the API request
-
-
-
Method Detail
-
getId
public final DeviceId getId()
Get the unique id for the device
-
getName
public final java.util.Optional<DeviceName> getName()
Get the devices optional non-unique readable name
-
getLastUpdated
public final java.util.Date getLastUpdated()
Get the time the device was created
-
getCreated
public final java.util.Date getCreated()
Get the time the device was last updated
-
isCurrentDevice
public final boolean isCurrentDevice()
True if this device instance is the one that was used to make the API request
-
hashCode
public final int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
delete
public void delete()
-
finalize
protected void finalize() throws java.lang.Throwable
- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-