20 lines
612 B
Swift
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
|
|
}
|