metatext/Shared/Model/PushSubscription.swift

18 lines
355 B
Swift
Raw Normal View History

2020-08-12 07:24:39 +00:00
// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
struct PushSubscription: Codable {
struct Alerts: Codable, Hashable {
let follow: Bool
let favourite: Bool
let reblog: Bool
let mention: Bool
let poll: Bool
}
let endpoint: URL
let alerts: Alerts
let serverKey: String
}