mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-26 18:27:09 +00:00
committed by
Moxie Marlinspike
parent
7e2c9f97e9
commit
80ce83ef9d
@@ -134,8 +134,9 @@ public class PduPart {
|
||||
|
||||
private long rowId = -1;
|
||||
private long uniqueId = -1;
|
||||
private long mmsId = -1;
|
||||
private boolean isEncrypted;
|
||||
private boolean isInProgress;
|
||||
private int transferProgress;
|
||||
private long dataSize;
|
||||
private Bitmap thumbnail;
|
||||
|
||||
@@ -163,13 +164,17 @@ public class PduPart {
|
||||
return this.dataSize;
|
||||
}
|
||||
|
||||
|
||||
public void setInProgress(boolean isInProgress) {
|
||||
this.isInProgress = isInProgress;
|
||||
public boolean isInProgress() {
|
||||
return transferProgress != PartDatabase.TRANSFER_PROGRESS_DONE &&
|
||||
transferProgress != PartDatabase.TRANSFER_PROGRESS_FAILED;
|
||||
}
|
||||
|
||||
public boolean isInProgress() {
|
||||
return isInProgress;
|
||||
public void setTransferProgress(int transferProgress) {
|
||||
this.transferProgress = transferProgress;
|
||||
}
|
||||
|
||||
public int getTransferProgress() {
|
||||
return transferProgress;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -475,5 +480,13 @@ public class PduPart {
|
||||
public void setUniqueId(long uniqueId) {
|
||||
this.uniqueId = uniqueId;
|
||||
}
|
||||
|
||||
public long getMmsId() {
|
||||
return mmsId;
|
||||
}
|
||||
|
||||
public void setMmsId(long mmsId) {
|
||||
this.mmsId = mmsId;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user