conversations-classic-ios/ConversationsClassic/AppCore/Models/Attachment.swift

23 lines
356 B
Swift
Raw Normal View History

2024-07-09 12:37:51 +00:00
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?
}