another.im-ios/ConversationsClassic/AppCore/Models/Attachment.swift
2024-07-09 14:37:51 +02:00

23 lines
356 B
Swift

import Foundation
import GRDB
import Martin
import SwiftUI
enum AttachmentType: Stateable {
case movie
case image
case audio
case file
case location
case contact
}
struct Attachment: Stateable {
let id: String
let type: AttachmentType
let url: URL?
let data: [Data]?
let str: String?
let localPath: URL?
}