ZyncPendingUpload

data class ZyncPendingUpload(val uploadId: Int, val action: ZyncActionType, val entity: ZyncEntityType, val entityUid: String, val status: ZyncUploadStatus, val createdAt: Long, val metadata: ZyncOperationMetadata?, val module: ZuperModule?, val moduleUid: String?, val relatedUploads: List<ZyncPendingUpload> = emptyList(), val progress: Double? = null, val errorMessage: String? = null)

Detailed information about a pending upload operation.

Constructors

Link copied to clipboard
constructor(uploadId: Int, action: ZyncActionType, entity: ZyncEntityType, entityUid: String, status: ZyncUploadStatus, createdAt: Long, metadata: ZyncOperationMetadata?, module: ZuperModule?, moduleUid: String?, relatedUploads: List<ZyncPendingUpload> = emptyList(), progress: Double? = null, errorMessage: String? = null)

Properties

Link copied to clipboard

Specific action being performed on the entity.

Link copied to clipboard

Timestamp when the operation was created (in milliseconds).

Link copied to clipboard

Type of entity being operated on.

Link copied to clipboard

Unique identifier of the entity being operated on.

Link copied to clipboard
val errorMessage: String? = null

Error message if the operation failed. Null if the operation has not failed or is still in progress.

Link copied to clipboard

Type-safe metadata for this operation. Each operation type provides exactly the fields needed for display.

Link copied to clipboard

Module for which this pending operation belongs to

Link copied to clipboard

Module UID like job UID, customer UID, etc Entity UID gives you specifics like service task UID, note UID, etc

Link copied to clipboard
val progress: Double? = null

Upload progress as a value between 0.0 and 1.0. Null if progress is not available or not applicable.

Link copied to clipboard

List of related upload operations grouped under this operation. Only populated for non-attachment operations that have related uploads.

Link copied to clipboard

Current status of the operation.

Link copied to clipboard

Unique identifier for this upload operation.

Functions

Link copied to clipboard

Generate a default title for this upload operation. Used as a fallback when metadata is null (for operations created before metadata was added).