Skip to content

Commit

Permalink
InputStatus renames 2
Browse files Browse the repository at this point in the history
awaitingUploadConfirmation -> awaitingConfirmation
uploadInProgress -> transportInProgress
uploadPaused -> paused
  • Loading branch information
andrewjl-mux committed Jul 31, 2023
1 parent dc19afd commit 02e2222
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions Sources/MuxUploadSDK/PublicAPI/DirectUpload.swift
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ public final class DirectUpload {
case preparing(AVAsset)
/// SDK is waiting for confirmation to continue the
/// upload despite being unable to standardize input
case awaitingUploadConfirmation(AVAsset)
case awaitingConfirmation(AVAsset)
/// Transport of upload inputs is in progress
case uploadInProgress(AVAsset, TransportStatus)
case transportInProgress(AVAsset, TransportStatus)
/// Upload has been paused
case uploadPaused(AVAsset, TransportStatus)
case paused(AVAsset, TransportStatus)
/// Direct upload has succeeded and all inputs
/// transported or upload failed with a fatal error
case finished(AVAsset, DirectUploadResult)
Expand All @@ -110,16 +110,16 @@ public final class DirectUpload {
case .standardizationFailed(let sourceAsset, _):
return InputStatus.preparing(sourceAsset)
case .awaitingUploadConfirmation(let uploadInfo):
return InputStatus.awaitingUploadConfirmation(
return InputStatus.awaitingConfirmation(
uploadInfo.sourceAsset()
)
case .uploadInProgress(let uploadInfo, let transportStatus):
return InputStatus.uploadInProgress(
return InputStatus.transportInProgress(
uploadInfo.sourceAsset(),
transportStatus
)
case .uploadPaused(let uploadInfo, let transportStatus):
return InputStatus.uploadPaused(
return InputStatus.paused(
uploadInfo.sourceAsset(),
transportStatus
)
Expand Down Expand Up @@ -367,7 +367,7 @@ public final class DirectUpload {
True if this upload is currently in progress and not paused
*/
public var inProgress: Bool {
if case InputStatus.uploadInProgress = inputStatus {
if case InputStatus.transportInProgress = inputStatus {
return true
} else {
return false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class DirectUploadTests: XCTestCase {
preparingStatusExpectation.fulfill()
}

if case DirectUpload.InputStatus.uploadInProgress = inputStatus {
if case DirectUpload.InputStatus.transportInProgress = inputStatus {
uploadInProgressExpecation.fulfill()
}
}
Expand Down Expand Up @@ -103,7 +103,7 @@ class DirectUploadTests: XCTestCase {
preparingStatusExpectation.fulfill()
}

if case DirectUpload.InputStatus.uploadInProgress = inputStatus {
if case DirectUpload.InputStatus.transportInProgress = inputStatus {
uploadInProgressExpecation.fulfill()
}
}
Expand Down

0 comments on commit 02e2222

Please sign in to comment.