2023-01-01 18:13:36 +01:00
|
|
|
//
|
|
|
|
// https://mczachurski.dev
|
|
|
|
// Copyright © 2023 Marcin Czachurski and the repository contributors.
|
2023-03-28 10:35:38 +02:00
|
|
|
// Licensed under the Apache License 2.0.
|
2023-01-01 18:13:36 +01:00
|
|
|
//
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
import CoreData
|
|
|
|
|
|
|
|
extension StatusData {
|
|
|
|
|
|
|
|
@nonobjc public class func fetchRequest() -> NSFetchRequest<StatusData> {
|
|
|
|
return NSFetchRequest<StatusData>(entityName: "StatusData")
|
|
|
|
}
|
|
|
|
|
|
|
|
@NSManaged public var accountAvatar: URL?
|
|
|
|
@NSManaged public var accountDisplayName: String?
|
|
|
|
@NSManaged public var accountId: String
|
|
|
|
@NSManaged public var accountUsername: String
|
|
|
|
@NSManaged public var applicationName: String?
|
|
|
|
@NSManaged public var applicationWebsite: URL?
|
|
|
|
@NSManaged public var bookmarked: Bool
|
|
|
|
@NSManaged public var content: String
|
|
|
|
@NSManaged public var createdAt: String
|
|
|
|
@NSManaged public var favourited: Bool
|
|
|
|
@NSManaged public var favouritesCount: Int32
|
|
|
|
@NSManaged public var id: String
|
|
|
|
@NSManaged public var inReplyToAccount: String?
|
|
|
|
@NSManaged public var inReplyToId: String?
|
|
|
|
@NSManaged public var muted: Bool
|
|
|
|
@NSManaged public var pinned: Bool
|
|
|
|
@NSManaged public var reblogged: Bool
|
|
|
|
@NSManaged public var reblogsCount: Int32
|
2023-01-03 20:42:20 +01:00
|
|
|
@NSManaged public var repliesCount: Int32
|
2023-01-01 18:13:36 +01:00
|
|
|
@NSManaged public var sensitive: Bool
|
|
|
|
@NSManaged public var spoilerText: String?
|
|
|
|
@NSManaged public var uri: String?
|
|
|
|
@NSManaged public var url: URL?
|
|
|
|
@NSManaged public var visibility: String
|
2023-01-29 19:11:44 +01:00
|
|
|
@NSManaged public var attachmentsRelation: Set<AttachmentData>?
|
2023-01-11 13:16:43 +01:00
|
|
|
@NSManaged public var pixelfedAccount: AccountData
|
2023-04-01 12:10:59 +02:00
|
|
|
|
2023-01-26 15:10:47 +01:00
|
|
|
@NSManaged public var rebloggedStatusId: String?
|
|
|
|
@NSManaged public var rebloggedAccountAvatar: URL?
|
|
|
|
@NSManaged public var rebloggedAccountDisplayName: String?
|
|
|
|
@NSManaged public var rebloggedAccountId: String?
|
|
|
|
@NSManaged public var rebloggedAccountUsername: String?
|
2023-01-01 18:13:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// MARK: Generated accessors for attachmentRelation
|
|
|
|
extension StatusData {
|
|
|
|
|
2023-01-29 19:11:44 +01:00
|
|
|
@objc(addAttachmentsRelationObject:)
|
|
|
|
@NSManaged public func addToAttachmentsRelation(_ value: AttachmentData)
|
2023-01-01 18:13:36 +01:00
|
|
|
|
2023-01-29 19:11:44 +01:00
|
|
|
@objc(removeAttachmentsRelationObject:)
|
|
|
|
@NSManaged public func removeFromAttachmentsRelation(_ value: AttachmentData)
|
2023-01-01 18:13:36 +01:00
|
|
|
|
2023-01-29 19:11:44 +01:00
|
|
|
@objc(addAttachmentsRelation:)
|
|
|
|
@NSManaged public func addToAttachmentsRelation(_ values: NSSet)
|
2023-01-01 18:13:36 +01:00
|
|
|
|
2023-01-29 19:11:44 +01:00
|
|
|
@objc(removeAttachmentsRelation:)
|
|
|
|
@NSManaged public func removeFromAttachmentsRelation(_ values: NSSet)
|
2023-01-01 18:13:36 +01:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2023-04-01 12:10:59 +02:00
|
|
|
extension StatusData: Identifiable {
|
2023-01-01 18:13:36 +01:00
|
|
|
}
|