TM-SGNL-iOS/SignalServiceKit/Messages/Attachments/V2/Downloads/AttachmentDownloadState.swift
TeleMessage developers dde0620daf initial commit
2025-05-03 12:28:28 -07:00

20 lines
612 B
Swift

//
// Copyright 2024 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
//
import Foundation
/// Note that this state is scoped to a source; the download state
/// for the transit tier may differ from the media tier.
public enum AttachmentDownloadState {
/// There is no pending download for this attachment, likely because none
/// was triggered by the user or by auto-download settings.
case none
/// The download is enqueued or downloading and will complete (or fail) on its own.
case enqueuedOrDownloading
/// The download was attempted but failed.
case failed
}