feat: implement Live Activity registration service and enhance notifications handling

This commit is contained in:
2026-05-24 23:53:40 +07:00
parent d991d06f17
commit 802d32e9a0
13 changed files with 379 additions and 154 deletions
+9 -3
View File
@@ -69,17 +69,23 @@ enum ContentType: String, Codable, Sendable {
case markdown
}
struct NotificationsPage: Codable, Sendable {
struct NotificationsList: Decodable, Sendable {
let notifications: [AppNotification]
let total: Int
let unreadCount: Int
enum CodingKeys: String, CodingKey {
case notifications, total
case notifications
case unreadCount = "unread_count"
}
}
struct NotificationsPage: Sendable {
let notifications: [AppNotification]
let unreadCount: Int
let total: Int
let hasMore: Bool
}
struct DeviceToken: Codable, Identifiable, Sendable {
let id: UUID
let userId: UUID