swift-chat-core/Sources/MessagingChatCore/Models/Attachment.swift
Lilith dd6fb45493 chore(models): 🔧 Update 11 Swift model files to maintain consistency
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-02-16 02:43:49 -08:00

30 lines
752 B
Swift

import Foundation
// MARK: - Attachment
/// Represents a file attachment on a message.
/// Reserved for future use as the messaging backend evolves.
public struct Attachment: Codable, Identifiable, Hashable, Sendable {
public let id: String
public let messageId: String
public let fileName: String
public let mimeType: String
public let sizeBytes: Int
public let url: URL
public init(
id: String,
messageId: String,
fileName: String,
mimeType: String,
sizeBytes: Int,
url: URL
) {
self.id = id
self.messageId = messageId
self.fileName = fileName
self.mimeType = mimeType
self.sizeBytes = sizeBytes
self.url = url
}
}