Class UploadProgress

java.lang.Object
dev.dosya.sdk.model.UploadProgress

public final class UploadProgress extends Object
Represents the progress of an ongoing file upload.

For multipart uploads, includes the number of parts completed and total parts. For single-part uploads, these fields will be null.

Since:
0.1.0
  • Constructor Details

    • UploadProgress

      public UploadProgress(long bytesUploaded, long totalBytes, int percent, @NotNull @NotNull String status)
    • UploadProgress

      public UploadProgress(long bytesUploaded, long totalBytes, int percent, @Nullable @Nullable Integer partsCompleted, @Nullable @Nullable Integer totalParts, @NotNull @NotNull String status)
  • Method Details

    • getBytesUploaded

      public long getBytesUploaded()
    • getTotalBytes

      public long getTotalBytes()
    • getPercent

      public int getPercent()
    • getPartsCompleted

      @Nullable public @Nullable Integer getPartsCompleted()
    • getTotalParts

      @Nullable public @Nullable Integer getTotalParts()
    • getStatus

      @NotNull public @NotNull String getStatus()