25 lines
383 B
Swift
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]
|
|
}
|