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 AttachmentData {
|
|
|
|
|
|
|
|
@nonobjc public class func fetchRequest() -> NSFetchRequest<AttachmentData> {
|
|
|
|
return NSFetchRequest<AttachmentData>(entityName: "AttachmentData")
|
|
|
|
}
|
|
|
|
|
|
|
|
@NSManaged public var blurhash: String?
|
2023-01-26 20:35:24 +01:00
|
|
|
@NSManaged public var data: Data?
|
2023-01-09 13:05:02 +01:00
|
|
|
@NSManaged public var exifCamera: String?
|
|
|
|
@NSManaged public var exifCreatedDate: String?
|
|
|
|
@NSManaged public var exifExposure: String?
|
|
|
|
@NSManaged public var exifLens: String?
|
2023-01-01 18:13:36 +01:00
|
|
|
@NSManaged public var id: String
|
|
|
|
@NSManaged public var previewUrl: URL?
|
|
|
|
@NSManaged public var remoteUrl: URL?
|
|
|
|
@NSManaged public var statusId: String
|
|
|
|
@NSManaged public var text: String?
|
|
|
|
@NSManaged public var type: String
|
|
|
|
@NSManaged public var url: URL
|
2023-01-09 13:05:02 +01:00
|
|
|
@NSManaged public var metaImageWidth: Int32
|
|
|
|
@NSManaged public var metaImageHeight: Int32
|
2023-01-01 18:13:36 +01:00
|
|
|
@NSManaged public var statusRelation: StatusData?
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2023-04-01 12:10:59 +02:00
|
|
|
extension AttachmentData: Identifiable {
|
2023-01-01 18:13:36 +01:00
|
|
|
}
|