2023-01-08 09:22:52 +00:00
|
|
|
import Foundation
|
|
|
|
|
|
|
|
public struct MastodonPushNotification: Codable {
|
|
|
|
public let accessToken: String
|
2023-01-17 10:36:01 +00:00
|
|
|
|
2023-01-08 09:22:52 +00:00
|
|
|
public let notificationID: Int
|
|
|
|
public let notificationType: String
|
2023-01-17 10:36:01 +00:00
|
|
|
|
2023-01-08 09:22:52 +00:00
|
|
|
public let preferredLocale: String?
|
|
|
|
public let icon: String?
|
|
|
|
public let title: String
|
|
|
|
public let body: String
|
2023-01-17 10:36:01 +00:00
|
|
|
|
2023-01-08 09:22:52 +00:00
|
|
|
enum CodingKeys: String, CodingKey {
|
|
|
|
case accessToken = "access_token"
|
|
|
|
case notificationID = "notification_id"
|
|
|
|
case notificationType = "notification_type"
|
|
|
|
case preferredLocale = "preferred_locale"
|
|
|
|
case icon
|
|
|
|
case title
|
|
|
|
case body
|
|
|
|
}
|
|
|
|
}
|