Class DriveItemVersion
java.lang.Object
com.amilesend.onedrive.resource.item.DriveItemVersion
Represents a specific version of a drive item.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
void
download
(@NonNull Path folderPath, @NonNull com.amilesend.client.connection.file.TransferProgressCallback callback) Downloads a specific drive item version and reports transfer progress to the specifiedTransferProgressCallback
.void
Downloads a specific drive item version.downloadAsync
(@NonNull Path folderPath, @NonNull com.amilesend.client.connection.file.TransferProgressCallback callback) Downloads a specific drive item version asynchronously and reports transfer progress to the specifiedTransferProgressCallback
.downloadAsync
(Path folderPath) Downloads a specific drive item version asynchronously.boolean
The associated item identifier for the version.getId()
The version identifier.The identity of whom last modified the version.The date and time of when the version was last modified.getName()
The name of the item associated with the version.Describes the published status of the version.long
getSize()
The size in bytes of the version.int
hashCode()
boolean
restore()
Restores this version as the primary drive item version.toString()
-
Method Details
-
download
Downloads a specific drive item version.- Parameters:
folderPath
- the path of the folder to download the drive item version content to
-
download
public void download(@NonNull Path folderPath, @NonNull com.amilesend.client.connection.file.TransferProgressCallback callback) Downloads a specific drive item version and reports transfer progress to the specifiedTransferProgressCallback
.- Parameters:
folderPath
- the path of the folder to download the drive item version content tocallback
- the callback be notified of transfer progress
-
downloadAsync
Downloads a specific drive item version asynchronously.- Parameters:
folderPath
- the folder to download the file to- Returns:
- the asynchronous execution that contains the number of bytes downloaded
- See Also:
-
downloadAsync
public DriveFileDownloadExecution downloadAsync(@NonNull Path folderPath, @NonNull com.amilesend.client.connection.file.TransferProgressCallback callback) Downloads a specific drive item version asynchronously and reports transfer progress to the specifiedTransferProgressCallback
. Consumers can block on transfer completion by invokingDriveFileDownloadExecution.get()
.- Parameters:
folderPath
- the folder to download the file tocallback
- the callback be notified of transfer progress- Returns:
- the asynchronous execution that contains the number of bytes downloaded
- See Also:
-
restore
public boolean restore()Restores this version as the primary drive item version.- Returns:
true
if successful; else,false
-
builder
-
getId
The version identifier. -
getLastModifiedBy
The identity of whom last modified the version. -
getLastModifiedDateTime
The date and time of when the version was last modified. -
getPublication
Describes the published status of the version. -
getSize
public long getSize()The size in bytes of the version. -
getName
The name of the item associated with the version. -
getDriveItemId
The associated item identifier for the version. -
getConnection
-
equals
-
hashCode
public int hashCode() -
toString
-