conversations-classic-ios/old/AppCore/Actions/FileActions.swift

18 lines
753 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
2024-07-14 13:42:51 +00:00
case fetchItemsFromGallery
case itemsFromGalleryFetched(items: [SharingGalleryItem])
2024-07-16 11:48:50 +00:00
case copyGalleryItemsForUploading(items: [SharingGalleryItem])
case copyCameraCapturedForUploading(media: Data, type: SharingCameraMediaType)
case itemsCopiedForUploading(newMessageIds: [String], localNames: [String])
2024-07-12 11:43:14 +00:00
}