another.im-ios/ConversationsClassic/AppCore/Actions/FileActions.swift

13 lines
516 B
Swift
Raw Normal View History

2024-07-12 11:43:14 +00:00
import Foundation
enum FileAction: Stateable {
2024-07-14 10:08:51 +00:00
case downloadAttachmentFile(messageId: String, attachmentRemotePath: URL)
case attachmentFileDownloaded(messageId: String, localName: String)
case downloadingAttachmentFileFailed(messageId: String, reason: String)
2024-07-13 01:29:46 +00:00
2024-07-14 10:08:51 +00:00
case createAttachmentThumbnail(messageId: String, localName: String)
case attachmentThumbnailCreated(messageId: String, thumbnailName: String)
2024-07-14 13:00:14 +00:00
case copyFileForUploading(messageId: String, fileData: Data, thumbnailData: Data?)
2024-07-12 11:43:14 +00:00
}