PushDeviceToken

@Serializable
data class PushDeviceToken(val id: String = UUID.randomUUID().toString(), val tokenId: String, val createdAt: Date = Date())

Represents a device token for push notifications. This model holds information about the FCM or other messaging service device token.

Constructors

Link copied to clipboard
constructor(id: String = UUID.randomUUID().toString(), tokenId: String, createdAt: Date = Date())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
@Serializable(with = DateSerializer::class)
val createdAt: Date

The timestamp when this token was created/received

Link copied to clipboard
val id: String

Unique identifier for this device token record

Link copied to clipboard

The actual device token string issued by the messaging service

Functions

Link copied to clipboard
fun toJson(): String

Converts this PushDeviceToken to a JSON string.