SwiftstructIMCore

struct IMCore.ImportExport.Attachment

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

Members 43

  1. funcstatic sanitizeTypes(contentType: String, mimeType: String?, fileName: String, filePath: Foundation.URL?) -> (contentType: String, mimeType: String?)
  2. fieldvar _attributionInfo: IMSharedUtilities.EncodeAsJSON<[AnyHashable : Any]>
  3. fieldvar _filePath: IMCore.ImportExport.FilePathURL
  4. fieldvar _stickerUserInfo: IMSharedUtilities.EncodeAsJSON<[AnyHashable : Any]>
  5. fieldvar _transferUserInfo: IMSharedUtilities.EncodeAsJSON<[AnyHashable : Any]>
  6. fieldlet contentType: String+0x38
  7. fieldlet createdDate: String
  8. fieldlet downloadError: IMCore.ImportExport.AttachmentDownloadError?
  9. fieldlet emojiImageContentIdentifier: String?
  10. fieldlet emojiImageShortDescription: String?
  11. fieldlet fileName: String+0x28
  12. fieldlet id: String+0x0
  13. fieldlet isAdaptiveImageGlyph: Bool
  14. fieldlet isOutgoing: Bool
  15. fieldlet isRelativeFilePath: Bool
  16. fieldlet isSafetySensitive: Bool
  17. fieldlet isSticker: Bool
  18. fieldlet messageID: String+0x18
  19. fieldlet mimeType: String?+0x48
  20. fieldlet missingFileReasons: IMCore.ImportExport.Attachment.MissingFileReasons
  21. fieldlet sensitivityAnalysis: Int64
  22. fieldlet sequenceID: Int64+0x10
  23. fieldlet shouldExistOnDisk: Bool
  24. fieldlet totalBytes: Int64
  25. fieldlet wasDownloaded: Bool
  26. funcupdate(downloadError: IMCore.ImportExport.AttachmentDownloadError) throws -> IMCore.ImportExport.Attachment
  27. funcupdate(missingFileReasons: IMCore.ImportExport.Attachment.MissingFileReasons) throws -> IMCore.ImportExport.Attachment
  28. funcupdate(filePath: Foundation.URL?, fileName: String, isRelativeFilePath: Bool, wasDownloaded: Bool, missingFileReasons: IMCore.ImportExport.Attachment.MissingFileReasons) throws -> IMCore.ImportExport.Attachment
  29. initinit(id: String, filePath: Foundation.URL?, shouldExistOnDisk: Bool, isRelativeFilePath: Bool, fileName: String, messageID: String?, contentType: String, mimeType: String?, createdDate: String, totalBytes: Int64, wasDownloaded: Bool, isOutgoing: Bool, isSticker: Bool, isSafetySensitive: Bool, sensitivityAnalysis: Int64, emojiImageContentIdentifier: String?, emojiImageShortDescription: String?, isAdaptiveImageGlyph: Bool, transferUserInfo: [AnyHashable : Any]?, stickerUserInfo: [AnyHashable : Any]?, attributionInfo: [AnyHashable : Any]?, downloadError: IMCore.ImportExport.AttachmentDownloadError?, missingFileReasons: IMCore.ImportExport.Attachment.MissingFileReasons, sequenceID: Int64) throws -> IMCore.ImportExport.Attachment
  30. initinit(id: String, filePath: Foundation.URL?, shouldExistOnDisk: Bool, isRelativeFilePath: Bool, fileName: String, messageID: String?, contentType: String, mimeType: String?, createdDate: String, totalBytes: Int64, wasDownloaded: Bool, isOutgoing: Bool, isSticker: Bool, isSafetySensitive: Bool, emojiImageContentIdentifier: String?, emojiImageShortDescription: String?, isAdaptiveImageGlyph: Bool, transferUserInfo: [AnyHashable : Any]?, stickerUserInfo: [AnyHashable : Any]?, attributionInfo: [AnyHashable : Any]?, downloadError: IMCore.ImportExport.AttachmentDownloadError?, missingFileReasons: IMCore.ImportExport.Attachment.MissingFileReasons, sequenceID: Int64) throws -> IMCore.ImportExport.Attachment
  31. typealiastypealias ID = Swift.String
  32. typealiastypealias IMDDatabaseRecordKey = Swift.String
  33. typealiastypealias IMDRecordType = __C.IMDAttachmentRecord
  34. varvar $attributionInfo: IMSharedUtilities.EncodeAsJSONSerializationOptions { get }
  35. varvar $stickerUserInfo: IMSharedUtilities.EncodeAsJSONSerializationOptions { get }
  36. varvar $transferUserInfo: IMSharedUtilities.EncodeAsJSONSerializationOptions { get }
  37. varvar attributionInfo: [AnyHashable : Any]? { get }
  38. varvar dateCreated: Foundation.Date? { get }
  39. varvar description: String { get }
  40. varvar existsOnDisk: Bool { get }
  41. varvar filePath: Foundation.URL? { get set }
  42. varvar stickerUserInfo: [AnyHashable : Any]? { get }
  43. varvar transferUserInfo: [AnyHashable : Any]? { get }
struct IMCore.ImportExport.Attachment {
    struct MissingFileReasons {
        let rawValue: Swift.Int

        init(_: __C.IMFileTransferMissingReasons)

        var description: Swift.String {
            get
        }
        var imdValue: __C.IMFileTransferMissingReasons {
            get
        }

        static var cloudKitNotEnabledDuringExport: IMCore.ImportExport.Attachment.MissingFileReasons {
            get
        }
        static var downloadExpiredDuringExport: IMCore.ImportExport.Attachment.MissingFileReasons {
            get
        }
        static var downloadFailedDuringExport: IMCore.ImportExport.Attachment.MissingFileReasons {
            get
        }
        static var downloadNotAttemptedDuringExport: IMCore.ImportExport.Attachment.MissingFileReasons {
            get
        }
        static var fileNotSyncedBeforeExport: IMCore.ImportExport.Attachment.MissingFileReasons {
            get
        }
        static var fileNotTransferedBeforeExport: IMCore.ImportExport.Attachment.MissingFileReasons {
            get
        }
        static var fileNotTransferredBeforeExport: IMCore.ImportExport.Attachment.MissingFileReasons {
            get
        }
        static var localFilePathMissingDuringExport: IMCore.ImportExport.Attachment.MissingFileReasons {
            get
        }
        static var missingFromExportArchive: IMCore.ImportExport.Attachment.MissingFileReasons {
            get
        }
        static var unknown: IMCore.ImportExport.Attachment.MissingFileReasons {
            get
        }
    }
    enum CodingKeys {
        case id
        case sequenceID
        case messageID
        case fileName
        case contentType
        case mimeType
        case filePath
        case shouldExistOnDisk
        case isRelativeFilePath
        case wasDownloaded
        case createdDate
        case totalBytes
        case isSticker
        case isSafetySensitive
        case sensitivityAnalysis
        case isOutgoing
        case emojiImageContentIdentifier
        case emojiImageShortDescription
        case downloadError
        case isAdaptiveImageGlyph
        case missingFileReasons
        case transferUserInfo
        case stickerUserInfo
        case attributionInfo
    }
    let id: Swift.String
    let sequenceID: Swift.Int64
    let messageID: Swift.String
    let fileName: Swift.String
    let contentType: Swift.String
    let mimeType: Swift.String?
    let shouldExistOnDisk: Swift.Bool
    let isRelativeFilePath: Swift.Bool
    let wasDownloaded: Swift.Bool
    let createdDate: Swift.String
    let totalBytes: Swift.Int64
    let isSticker: Swift.Bool
    let isSafetySensitive: Swift.Bool
    let sensitivityAnalysis: Swift.Int64
    let isOutgoing: Swift.Bool
    let emojiImageContentIdentifier: Swift.String?
    let emojiImageShortDescription: Swift.String?
    let downloadError: IMCore.ImportExport.AttachmentDownloadError?
    let isAdaptiveImageGlyph: Swift.Bool
    let missingFileReasons: IMCore.ImportExport.Attachment.MissingFileReasons

    init(id: Swift.String, filePath: Foundation.URL?, shouldExistOnDisk: Swift.Bool, isRelativeFilePath: Swift.Bool, fileName: Swift.String, messageID: Swift.String?, contentType: Swift.String, mimeType: Swift.String?, createdDate: Swift.String, totalBytes: Swift.Int64, wasDownloaded: Swift.Bool, isOutgoing: Swift.Bool, isSticker: Swift.Bool, isSafetySensitive: Swift.Bool, sensitivityAnalysis: Swift.Int64, emojiImageContentIdentifier: Swift.String?, emojiImageShortDescription: Swift.String?, isAdaptiveImageGlyph: Swift.Bool, transferUserInfo: [Swift.AnyHashable : Any]?, stickerUserInfo: [Swift.AnyHashable : Any]?, attributionInfo: [Swift.AnyHashable : Any]?, downloadError: IMCore.ImportExport.AttachmentDownloadError?, missingFileReasons: IMCore.ImportExport.Attachment.MissingFileReasons, sequenceID: Swift.Int64) throws
    init(id: Swift.String, filePath: Foundation.URL?, shouldExistOnDisk: Swift.Bool, isRelativeFilePath: Swift.Bool, fileName: Swift.String, messageID: Swift.String?, contentType: Swift.String, mimeType: Swift.String?, createdDate: Swift.String, totalBytes: Swift.Int64, wasDownloaded: Swift.Bool, isOutgoing: Swift.Bool, isSticker: Swift.Bool, isSafetySensitive: Swift.Bool, emojiImageContentIdentifier: Swift.String?, emojiImageShortDescription: Swift.String?, isAdaptiveImageGlyph: Swift.Bool, transferUserInfo: [Swift.AnyHashable : Any]?, stickerUserInfo: [Swift.AnyHashable : Any]?, attributionInfo: [Swift.AnyHashable : Any]?, downloadError: IMCore.ImportExport.AttachmentDownloadError?, missingFileReasons: IMCore.ImportExport.Attachment.MissingFileReasons, sequenceID: Swift.Int64) throws

    @IMSharedUtilities.EncodeAsJSON<[Swift.AnyHashable : Any]> var attributionInfo: [Swift.AnyHashable : Any]? {
        get
    }
    var dateCreated: Foundation.Date? {
        get
    }
    var description: Swift.String {
        get
    }
    var existsOnDisk: Swift.Bool {
        get
    }
    @IMCore.ImportExport.FilePathURL var filePath: Foundation.URL? {
        get
        set
    }
    @IMSharedUtilities.EncodeAsJSON<[Swift.AnyHashable : Any]> var stickerUserInfo: [Swift.AnyHashable : Any]? {
        get
    }
    @IMSharedUtilities.EncodeAsJSON<[Swift.AnyHashable : Any]> var transferUserInfo: [Swift.AnyHashable : Any]? {
        get
    }

    func update(downloadError: IMCore.ImportExport.AttachmentDownloadError) throws -> IMCore.ImportExport.Attachment
    func update(missingFileReasons: IMCore.ImportExport.Attachment.MissingFileReasons) throws -> IMCore.ImportExport.Attachment
    func update(filePath: Foundation.URL?, fileName: Swift.String, isRelativeFilePath: Swift.Bool, wasDownloaded: Swift.Bool, missingFileReasons: IMCore.ImportExport.Attachment.MissingFileReasons) throws -> IMCore.ImportExport.Attachment

    static func sanitizeTypes(contentType: Swift.String, mimeType: Swift.String?, fileName: Swift.String, filePath: Foundation.URL?) -> (contentType: Swift.String, mimeType: Swift.String?)
}