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

25 lines
383 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 AttachmentItem: Stateable {
let type: AttachmentType
let data: Data
let string: String
}
struct Attachment: Stateable {
let id: String
let items: [AttachmentItem]
}