IceCubesApp/Packages/Models/Sources/Models/PushSubscription.swift

21 lines
485 B
Swift
Raw Normal View History

2023-01-08 09:22:52 +00:00
import Foundation
public struct PushSubscription: Identifiable, Decodable {
public struct Alerts: Decodable {
public let follow: Bool
2023-01-24 06:19:09 +00:00
public let favourite: Bool
2023-01-08 09:22:52 +00:00
public let reblog: Bool
public let mention: Bool
public let poll: Bool
2023-01-08 13:16:43 +00:00
public let status: Bool
2023-01-08 09:22:52 +00:00
}
2023-01-17 10:36:01 +00:00
2023-01-08 09:22:52 +00:00
public let id: Int
public let endpoint: URL
public let serverKey: String
public let alerts: Alerts
}
extension PushSubscription: Sendable {}
extension PushSubscription.Alerts: Sendable {}