Class DeviceEntityImpl

    • Field Detail

      • token

        protected String token
      • tokenEncoding

        protected String tokenEncoding
      • enabled

        protected boolean enabled
      • deviceOS

        protected String deviceOS
      • userId

        protected String userId
      • applicationId

        protected String applicationId
      • creatorId

        protected String creatorId
      • creationTime

        protected Date creationTime
      • updaterId

        protected String updaterId
      • updateTime

        protected Date updateTime
      • tenantId

        protected String tenantId
    • Constructor Detail

      • DeviceEntityImpl

        public DeviceEntityImpl()
    • Method Detail

      • getToken

        public String getToken()
        Description copied from interface: Device
        The token of the device that should be used when sending out notifications to it.
        Specified by:
        getToken in interface Device
        Returns:
        the device token
      • getTokenEncoding

        public String getTokenEncoding()
        Description copied from interface: Device
        The type of the encoding for the device.
        Specified by:
        getTokenEncoding in interface Device
        Returns:
        the encoding of the device token
      • isEnabled

        public boolean isEnabled()
        Description copied from interface: Device
        Whether the device is enabled (i.e. can receive notifications)
        Specified by:
        isEnabled in interface Device
        Returns:
        true if the device is enabled, false otherwise
      • setEnabled

        public void setEnabled​(boolean enabled)
        Specified by:
        setEnabled in interface DeviceEntity
      • getDeviceOS

        public String getDeviceOS()
        Description copied from interface: Device
        The operating system of the device
        Specified by:
        getDeviceOS in interface Device
        Returns:
        the operating system of the device
      • getUserId

        public String getUserId()
        Description copied from interface: Device
        The id of the user that this device belongs to
        Specified by:
        getUserId in interface Device
        Returns:
        the id of the user that this device belongs to
      • getApplicationId

        public String getApplicationId()
        Description copied from interface: Device
        The id of the application that this device is registered for
        Specified by:
        getApplicationId in interface Device
        Returns:
        the id of the application that the device is registered for
      • getCreatorId

        public String getCreatorId()
        Description copied from interface: Device
        The id of the user that created the token.
        Specified by:
        getCreatorId in interface Device
        Returns:
        the id of the creator
      • getCreationTime

        public Date getCreationTime()
        Description copied from interface: Device
        The time when the device was created
        Specified by:
        getCreationTime in interface Device
        Returns:
        the creation time of the device
      • getUpdaterId

        public String getUpdaterId()
        Description copied from interface: Device
        The id of the user that last updated the device
        Specified by:
        getUpdaterId in interface Device
        Returns:
        the id of the updater
      • getUpdateTime

        public Date getUpdateTime()
        Description copied from interface: Device
        The time when the device was last updated
        Specified by:
        getUpdateTime in interface Device
        Returns:
        the last update time of the device
      • getTenantId

        public String getTenantId()
        Description copied from interface: Device
        The tenant id of the device
        Specified by:
        getTenantId in interface Device
        Returns:
        the id of the tenant for the device