MediaOperation

data class MediaOperation(val id: String, val commandId: CommandId, val conversationId: ConversationId?, val sourceMessageId: MessageId?, val direction: MediaDirection, val protection: MediaProtection, val state: MediaOperationState, val sourceFingerprint: String, val attachment: AttachmentMetadata?, val byteCount: ULong?, val attemptCount: UInt, val lastErrorCategory: String?, val updatedAt: Long)

One durable logical transfer without Android URI or WorkManager identifiers.

Constructors

Link copied to clipboard
constructor(id: String, commandId: CommandId, conversationId: ConversationId?, sourceMessageId: MessageId?, direction: MediaDirection, protection: MediaProtection, state: MediaOperationState, sourceFingerprint: String, attachment: AttachmentMetadata?, byteCount: ULong?, attemptCount: UInt, lastErrorCategory: String?, updatedAt: Long)

Properties

Link copied to clipboard

Authenticated metadata after completion.

Link copied to clipboard

Number of acquired platform execution leases.

Link copied to clipboard

Plaintext byte count after completion.

Link copied to clipboard

Idempotent user-action identifier.

Link copied to clipboard

Owning conversation for an upload or known download.

Link copied to clipboard

Upload or download.

Link copied to clipboard
val id: String

Stable SDK operation identifier.

Link copied to clipboard

Stable redacted failure category.

Link copied to clipboard

Required object confidentiality.

Link copied to clipboard

Opaque platform-supplied source correlation.

Link copied to clipboard

Exact authenticated source message for a download; null for uploads.

Link copied to clipboard

Durable SDK lifecycle state.

Link copied to clipboard

Last durable update in Unix seconds.