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
|
|
|
|
2024-07-14 16:53:33 +00:00
|
|
|
case copyGalleryItemsForUploading(items: [SharingGalleryItem])
|
|
|
|
case galleryItemsCopiedForUploading(newMessageIds: [String], localNames: [String])
|
2024-07-14 13:42:51 +00:00
|
|
|
|
|
|
|
case fetchItemsFromGallery
|
|
|
|
case itemsFromGalleryFetched(items: [SharingGalleryItem])
|
2024-07-12 11:43:14 +00:00
|
|
|
}
|