public class UploadStatus extends Object implements IAbstractAcknowledgement
Constructor and Description |
---|
UploadStatus() |
Modifier and Type | Method and Description |
---|---|
String |
getError()
Gets the error, if an error occurred.
|
int |
getFileSize()
Gets the size of the file to be uploaded in bytes.
|
String |
getId()
Gets id used to track status and progress of an upload while in progress.
|
String |
getMediaId()
Gets the media id assigned to the result.
|
int |
getPercentage()
Gets current upload progress rounded to the nearest integer.
|
String |
getResponseDescription()
Gets a narrative description of the transaction result.
|
String |
getStatus()
Gets the current status of a file upload.
|
String |
getThumbnailLocation()
Gets the url of a thumbnail for the file, if available.
|
int |
getUploadedAmount()
Gets the amount of the file already uploaded.
|
boolean |
isComplete()
Gets whether or not the upload and associated file processing is complete.
|
boolean |
isProcessing()
Gets whether or not the file is processing.
|
boolean |
isSuccess()
Gets whether or not the request succeeded.
|
void |
setComplete(boolean value)
Sets whether or not the upload and associated file processing is complete.
|
void |
setError(String value)
Sets the error, if an error occurred.
|
void |
setFileSize(int value)
Sets the size of the file to be uploaded in bytes.
|
void |
setId(String value)
Sets id used to track status and progress of an upload while in progress.
|
void |
setMediaId(String value)
Sets the media id assigned to the result.
|
void |
setPercentage(int value)
Sets current upload progress rounded to the nearest integer.
|
void |
setProcessing(boolean value)
Sets whether or not the file is processing.
|
void |
setResponseDescription(String value)
Sets a narrative description of the transaction result.
|
void |
setStatus(String value)
Sets the current status of a file upload.
|
void |
setSuccess(boolean value)
Sets whether or not the request succeeded.
|
void |
setThumbnailLocation(String value)
Sets the url of a thumbnail for the file, if available.
|
void |
setUploadedAmount(int value)
Sets the amount of the file already uploaded.
|
public void setSuccess(boolean value)
value
- whether or not the request succeeded.public boolean isSuccess()
isSuccess
in interface IAbstractAcknowledgement
public void setError(String value)
value
- the error, if an error occurred.public String getError()
getError
in interface IAbstractAcknowledgement
public void setResponseDescription(String value)
value
- a narrative description of the transaction result.public String getResponseDescription()
getResponseDescription
in interface IAbstractAcknowledgement
public void setId(String value)
value
- id used to track status and progress of an upload while in progress.public String getId()
public void setMediaId(String value)
value
- the media id assigned to the result.public String getMediaId()
public void setFileSize(int value)
value
- the size of the file to be uploaded in bytes.public int getFileSize()
public void setUploadedAmount(int value)
value
- the amount of the file already uploaded.public int getUploadedAmount()
public void setStatus(String value)
value
- the current status of a file upload.public String getStatus()
public void setComplete(boolean value)
value
- whether or not the upload and associated file processing is complete.public boolean isComplete()
public void setProcessing(boolean value)
value
- whether or not the file is processing. This normally applied to video
files undergoing format transcoding.public boolean isProcessing()
public void setPercentage(int value)
value
- current upload progress rounded to the nearest integer.public int getPercentage()
public void setThumbnailLocation(String value)
value
- the url of a thumbnail for the file, if available.public String getThumbnailLocation()
Copyright © 2022 BlockChyp, Inc.. All rights reserved.