feat: implement Live Activity registration service and enhance notifications handling
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user