public class ChunkedUploadResult<UploadType>
extends java.lang.Object
| Constructor and Description |
|---|
ChunkedUploadResult(ClientException error)
Construct result with error.
|
ChunkedUploadResult(GraphServiceException exception)
Construct result with server exception.
|
ChunkedUploadResult(UploadSession session)
Construct result with next session.
|
ChunkedUploadResult(UploadType uploaded)
Construct result with item created.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
chunkCompleted()
Checks the chunk upload is completed.
|
ClientException |
getError()
Get the error.
|
UploadType |
getItem()
Get the uploaded item.
|
UploadSession |
getSession()
Get the next session.
|
boolean |
hasError()
Checks if an error happened.
|
boolean |
uploadCompleted()
Checks the whole upload is completed.
|
public ChunkedUploadResult(UploadType uploaded)
uploaded - The created item.public ChunkedUploadResult(UploadSession session)
session - The next session.public ChunkedUploadResult(ClientException error)
error - The error occurred during uploading.public ChunkedUploadResult(GraphServiceException exception)
exception - The exception received from server.public boolean chunkCompleted()
public boolean uploadCompleted()
public boolean hasError()
public UploadType getItem()
public UploadSession getSession()
public ClientException getError()