Skip to content

Commit

Permalink
refactor: Rename linkUuid to transferUuid
Browse files Browse the repository at this point in the history
  • Loading branch information
sirambd committed Oct 16, 2024
1 parent fdd7883 commit f5f58f4
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class TransferManager internal constructor(
* Retrieves a flow of transfers based on the specified transfer direction.
*
* @see addTransferByUrl
* @see addTransferByLinkUuid
* @see addTransferByUuid
*
* @param transferDirection The direction of the transfers to retrieve (e.g., [TransferDirection.SENT] or [TransferDirection.RECEIVED]).
* @return A `Flow` that emits a list of transfers matching the specified direction.
Expand All @@ -74,7 +74,7 @@ class TransferManager internal constructor(
*
* @see getTransfers
*
* @param linkUuid The UUID corresponding to the uploaded transfer link.
* @param transferUuid The UUID corresponding to the uploaded transfer link.
* @throws CancellationException If the operation is cancelled.
* @throws ApiException If there is an error related to the API during transfer retrieval.
* @throws UnexpectedApiErrorFormatException Unparsable api error response.
Expand All @@ -88,8 +88,8 @@ class TransferManager internal constructor(
NetworkException::class,
UnknownException::class,
)
suspend fun addTransferByLinkUuid(linkUuid: String) = withContext(Dispatchers.IO) {
addTransfer(transferRepository.getTransferByLinkUuid(linkUuid).data, TransferDirection.SENT)
suspend fun addTransferByUuid(transferUuid: String) = withContext(Dispatchers.IO) {
addTransfer(transferRepository.getTransferByLinkUuid(transferUuid).data, TransferDirection.SENT)
}

/**
Expand Down

0 comments on commit f5f58f4

Please sign in to comment.