Vernissage/CoreData/ViewedStatus.swift

27 lines
657 B
Swift
Raw Normal View History

2023-10-20 07:45:18 +02:00
//
// https://mczachurski.dev
// Copyright © 2023 Marcin Czachurski and the repository contributors.
// Licensed under the Apache License 2.0.
//
import Foundation
import SwiftData
@Model final public class ViewedStatus {
2023-10-20 17:35:11 +02:00
@Attribute(.unique) public var id: String
2023-10-20 07:45:18 +02:00
public var reblogId: String?
public var date: Date
public var pixelfedAccount: AccountData?
init(id: String, reblogId: String? = nil, date: Date, pixelfedAccount: AccountData? = nil) {
self.id = id
self.reblogId = reblogId
self.date = date
self.pixelfedAccount = pixelfedAccount
}
}
extension ViewedStatus: Identifiable {
}