mirror of
https://github.com/metabolist/metatext.git
synced 2024-12-01 12:30:59 +00:00
23 lines
523 B
Swift
23 lines
523 B
Swift
// Copyright © 2020 Metabolist. All rights reserved.
|
|
|
|
import Foundation
|
|
|
|
struct PushNotification: Codable {
|
|
enum NotificationType: String, Codable, Unknowable {
|
|
case mention
|
|
case reblog
|
|
case favourite
|
|
case follow
|
|
case unknown
|
|
|
|
static var unknownCase: Self { .unknown }
|
|
}
|
|
|
|
let accessToken: String
|
|
let body: String
|
|
let title: String
|
|
let icon: URL
|
|
let notificationId: Int
|
|
let notificationType: NotificationType
|
|
let preferredLocale: String
|
|
}
|