mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-04-28 18:58:47 +00:00
24 lines
558 B
Swift
24 lines
558 B
Swift
import Foundation
|
|
|
|
public struct MastodonPushNotification: Codable {
|
|
public let accessToken: String
|
|
|
|
public let notificationID: Int
|
|
public let notificationType: String
|
|
|
|
public let preferredLocale: String?
|
|
public let icon: String?
|
|
public let title: String
|
|
public let body: String
|
|
|
|
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
|
|
}
|
|
}
|