Interface Device

All Known Subinterfaces:
DeviceEntity
All Known Implementing Classes:
DeviceEntityImpl

public interface Device
Author:
Filip Hrisafov
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getApplicationId()
    The id of the application that this device is registered for
    java.util.Date getCreationTime()
    The time when the device was created
    java.lang.String getCreatorId()
    The id of the user that created the token.
    java.lang.String getDeviceOS()
    The operating system of the device
    java.lang.String getId()
    The unique identifier for the device.
    java.lang.String getTenantId()
    The tenant id of the device
    java.lang.String getToken()
    The token of the device that should be used when sending out notifications to it.
    java.lang.String getTokenEncoding()
    The type of the encoding for the device.
    java.lang.String getUpdaterId()
    The id of the user that last updated the device
    java.util.Date getUpdateTime()
    The time when the device was last updated
    java.lang.String getUserId()
    The id of the user that this device belongs to
    boolean isEnabled()
    Whether the device is enabled (i.e.
  • Method Details

    • getId

      java.lang.String getId()
      The unique identifier for the device.
      Returns:
      the id of the device
    • getToken

      java.lang.String getToken()
      The token of the device that should be used when sending out notifications to it.
      Returns:
      the device token
    • getTokenEncoding

      java.lang.String getTokenEncoding()
      The type of the encoding for the device.
      Returns:
      the encoding of the device token
    • isEnabled

      boolean isEnabled()
      Whether the device is enabled (i.e. can receive notifications)
      Returns:
      true if the device is enabled, false otherwise
    • getDeviceOS

      java.lang.String getDeviceOS()
      The operating system of the device
      Returns:
      the operating system of the device
    • getUserId

      java.lang.String getUserId()
      The id of the user that this device belongs to
      Returns:
      the id of the user that this device belongs to
    • getApplicationId

      java.lang.String getApplicationId()
      The id of the application that this device is registered for
      Returns:
      the id of the application that the device is registered for
    • getCreatorId

      java.lang.String getCreatorId()
      The id of the user that created the token.
      Returns:
      the id of the creator
    • getCreationTime

      java.util.Date getCreationTime()
      The time when the device was created
      Returns:
      the creation time of the device
    • getUpdaterId

      java.lang.String getUpdaterId()
      The id of the user that last updated the device
      Returns:
      the id of the updater
    • getUpdateTime

      java.util.Date getUpdateTime()
      The time when the device was last updated
      Returns:
      the last update time of the device
    • getTenantId

      java.lang.String getTenantId()
      The tenant id of the device
      Returns:
      the id of the tenant for the device