mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-05-28 13:18:19 +00:00
d1209e6704
Co-authored-by: Jim Dovey <jimdovey@apple.com>
21 lines
485 B
Swift
21 lines
485 B
Swift
import Foundation
|
|
|
|
public struct PushSubscription: Identifiable, Decodable {
|
|
public struct Alerts: Decodable {
|
|
public let follow: Bool
|
|
public let favourite: Bool
|
|
public let reblog: Bool
|
|
public let mention: Bool
|
|
public let poll: Bool
|
|
public let status: Bool
|
|
}
|
|
|
|
public let id: Int
|
|
public let endpoint: URL
|
|
public let serverKey: String
|
|
public let alerts: Alerts
|
|
}
|
|
|
|
extension PushSubscription: Sendable {}
|
|
extension PushSubscription.Alerts: Sendable {}
|