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 AccountRelationship {
|
2023-10-20 17:35:11 +02:00
|
|
|
@Attribute(.unique) public var accountId: String
|
2023-10-20 07:45:18 +02:00
|
|
|
public var boostedStatusesMuted: Bool
|
|
|
|
public var pixelfedAccount: AccountData?
|
|
|
|
|
|
|
|
init(accountId: String, boostedStatusesMuted: Bool, pixelfedAccount: AccountData? = nil) {
|
|
|
|
self.accountId = accountId
|
|
|
|
self.boostedStatusesMuted = boostedStatusesMuted
|
|
|
|
self.pixelfedAccount = pixelfedAccount
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
extension AccountRelationship: Identifiable {
|
|
|
|
}
|