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
|
|
|
|
}
|
|
|
|
|
2024-07-09 13:13:37 +00:00
|
|
|
struct AttachmentItem: Stateable {
|
|
|
|
let type: AttachmentType
|
|
|
|
let data: Data
|
|
|
|
let string: String
|
|
|
|
}
|
|
|
|
|
2024-07-09 12:37:51 +00:00
|
|
|
struct Attachment: Stateable {
|
|
|
|
let id: String
|
2024-07-09 13:13:37 +00:00
|
|
|
let items: [AttachmentItem]
|
2024-07-09 12:37:51 +00:00
|
|
|
}
|