public abstract class MessageSnapshot extends Object implements Parcelable
| Modifier and Type | Class and Description |
|---|---|
static interface |
MessageSnapshot.IWarnMessageSnapshot |
static class |
MessageSnapshot.NoFieldException |
static class |
MessageSnapshot.StartedMessageSnapshot |
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>| Modifier and Type | Field and Description |
|---|---|
static Parcelable.Creator<MessageSnapshot> |
CREATOR |
protected boolean |
isLargeFile |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
String |
getEtag() |
String |
getFileName() |
int |
getId() |
long |
getLargeSofarBytes()
This method will be used when the downloading file is a large file.
|
long |
getLargeTotalBytes()
This method will be used when the downloading file is a large file.
|
int |
getRetryingTimes() |
int |
getSmallSofarBytes()
This method will be used when the downloading file isn't a large file.
|
int |
getSmallTotalBytes()
This method will be used when the downloading file isn't a large file.
|
byte |
getStatus() |
Throwable |
getThrowable() |
boolean |
isLargeFile() |
boolean |
isResuming() |
boolean |
isReusedDownloadedFile() |
void |
writeToParcel(Parcel dest,
int flags) |
protected boolean isLargeFile
public static final Parcelable.Creator<MessageSnapshot> CREATOR
public int getId()
public Throwable getThrowable()
public int getRetryingTimes()
public boolean isResuming()
true if the downloading is resuming from the breakpoint, otherwise the
downloading is from the beginning.public String getEtag()
public long getLargeSofarBytes()
isLargeFile()public long getLargeTotalBytes()
isLargeFile()public int getSmallSofarBytes()
isLargeFile()public int getSmallTotalBytes()
isLargeFile()public boolean isReusedDownloadedFile()
true if the task isn't real started, and we find the target file is already
exist, so the task will receive the completed callback directly, false otherwise.public String getFileName()
public boolean isLargeFile()
true if the length of the file is more than 1.99G, false otherwise.public int describeContents()
describeContents in interface Parcelablepublic void writeToParcel(Parcel dest, int flags)
writeToParcel in interface Parcelablepublic byte getStatus()
FileDownloadStatus