Package com.blockchyp.client.dto
Class UploadStatus
java.lang.Object
com.blockchyp.client.dto.UploadStatus
- All Implemented Interfaces:
IAbstractAcknowledgement
Models the current status of a file upload.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetError()Gets the error, if an error occurred.intGets the size of the file to be uploaded in bytes.getId()Gets id used to track status and progress of an upload while in progress.Gets the media id assigned to the result.intGets current upload progress rounded to the nearest integer.Gets a narrative description of the transaction result.Gets the current status of a file upload.Gets the url of a thumbnail for the file, if available.intGets the amount of the file already uploaded.booleanGets whether or not the upload and associated file processing is complete.booleanGets whether or not the file is processing.booleanGets whether or not the request succeeded.voidsetComplete(boolean value) Sets whether or not the upload and associated file processing is complete.voidSets the error, if an error occurred.voidsetFileSize(int value) Sets the size of the file to be uploaded in bytes.voidSets id used to track status and progress of an upload while in progress.voidsetMediaId(String value) Sets the media id assigned to the result.voidsetPercentage(int value) Sets current upload progress rounded to the nearest integer.voidsetProcessing(boolean value) Sets whether or not the file is processing.voidsetResponseDescription(String value) Sets a narrative description of the transaction result.voidSets the current status of a file upload.voidsetSuccess(boolean value) Sets whether or not the request succeeded.voidsetThumbnailLocation(String value) Sets the url of a thumbnail for the file, if available.voidsetUploadedAmount(int value) Sets the amount of the file already uploaded.
-
Constructor Details
-
UploadStatus
public UploadStatus()
-
-
Method Details
-
setSuccess
public void setSuccess(boolean value) Sets whether or not the request succeeded.- Parameters:
value- whether or not the request succeeded.
-
isSuccess
public boolean isSuccess()Gets whether or not the request succeeded.- Specified by:
isSuccessin interfaceIAbstractAcknowledgement- Returns:
- whether or not the request succeeded.
-
setError
Sets the error, if an error occurred.- Parameters:
value- the error, if an error occurred.
-
getError
Gets the error, if an error occurred.- Specified by:
getErrorin interfaceIAbstractAcknowledgement- Returns:
- the error, if an error occurred.
-
setResponseDescription
Sets a narrative description of the transaction result.- Parameters:
value- a narrative description of the transaction result.
-
getResponseDescription
Gets a narrative description of the transaction result.- Specified by:
getResponseDescriptionin interfaceIAbstractAcknowledgement- Returns:
- a narrative description of the transaction result.
-
setId
Sets id used to track status and progress of an upload while in progress.- Parameters:
value- id used to track status and progress of an upload while in progress.
-
getId
Gets id used to track status and progress of an upload while in progress.- Returns:
- id used to track status and progress of an upload while in progress.
-
setMediaId
Sets the media id assigned to the result.- Parameters:
value- the media id assigned to the result.
-
getMediaId
Gets the media id assigned to the result.- Returns:
- the media id assigned to the result.
-
setFileSize
public void setFileSize(int value) Sets the size of the file to be uploaded in bytes.- Parameters:
value- the size of the file to be uploaded in bytes.
-
getFileSize
public int getFileSize()Gets the size of the file to be uploaded in bytes.- Returns:
- the size of the file to be uploaded in bytes.
-
setUploadedAmount
public void setUploadedAmount(int value) Sets the amount of the file already uploaded.- Parameters:
value- the amount of the file already uploaded.
-
getUploadedAmount
public int getUploadedAmount()Gets the amount of the file already uploaded.- Returns:
- the amount of the file already uploaded.
-
setStatus
Sets the current status of a file upload.- Parameters:
value- the current status of a file upload.
-
getStatus
Gets the current status of a file upload.- Returns:
- the current status of a file upload.
-
setComplete
public void setComplete(boolean value) Sets whether or not the upload and associated file processing is complete.- Parameters:
value- whether or not the upload and associated file processing is complete.
-
isComplete
public boolean isComplete()Gets whether or not the upload and associated file processing is complete.- Returns:
- whether or not the upload and associated file processing is complete.
-
setProcessing
public void setProcessing(boolean value) Sets whether or not the file is processing.- Parameters:
value- whether or not the file is processing. This normally applied to video files undergoing format transcoding.
-
isProcessing
public boolean isProcessing()Gets whether or not the file is processing.- Returns:
- whether or not the file is processing. This normally applied to video files undergoing format transcoding.
-
setPercentage
public void setPercentage(int value) Sets current upload progress rounded to the nearest integer.- Parameters:
value- current upload progress rounded to the nearest integer.
-
getPercentage
public int getPercentage()Gets current upload progress rounded to the nearest integer.- Returns:
- current upload progress rounded to the nearest integer.
-
setThumbnailLocation
Sets the url of a thumbnail for the file, if available.- Parameters:
value- the url of a thumbnail for the file, if available.
-
getThumbnailLocation
Gets the url of a thumbnail for the file, if available.- Returns:
- the url of a thumbnail for the file, if available.
-