Interface Device
- All Known Subinterfaces:
DeviceEntity
- All Known Implementing Classes:
DeviceEntityImpl
public interface Device
- Author:
- Filip Hrisafov
-
Method Summary
Modifier and TypeMethodDescriptionThe id of the application that this device is registered forThe time when the device was createdThe id of the user that created the token.The operating system of the devicegetId()
The unique identifier for the device.The tenant id of the devicegetToken()
The token of the device that should be used when sending out notifications to it.The type of the encoding for the device.The id of the user that last updated the deviceThe time when the device was last updatedThe id of the user that this device belongs toboolean
Whether the device is enabled (i.e.
-
Method Details
-
getId
String getId()The unique identifier for the device.- Returns:
- the id of the device
-
getToken
String getToken()The token of the device that should be used when sending out notifications to it.- Returns:
- the device token
-
getTokenEncoding
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
String getDeviceOS()The operating system of the device- Returns:
- the operating system of the device
-
getUserId
String getUserId()The id of the user that this device belongs to- Returns:
- the id of the user that this device belongs to
-
getApplicationId
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
String getCreatorId()The id of the user that created the token.- Returns:
- the id of the creator
-
getCreationTime
Date getCreationTime()The time when the device was created- Returns:
- the creation time of the device
-
getUpdaterId
String getUpdaterId()The id of the user that last updated the device- Returns:
- the id of the updater
-
getUpdateTime
Date getUpdateTime()The time when the device was last updated- Returns:
- the last update time of the device
-
getTenantId
String getTenantId()The tenant id of the device- Returns:
- the id of the tenant for the device
-