f6b32823ba
* re-work finished mission database * re-work DownloadMission and bump it Serializable version * keep the classic Java IO API * SAF Tree API support on Android Lollipop or higher * add wrapper for SAF stream opening * implement Closeable in SharpStream to replace the dispose() method * do required changes for this API: ** remove any file creation logic from DownloadInitializer ** make PostProcessing Serializable and reduce the number of iterations ** update all strings.xml files ** storage helpers: StoredDirectoryHelper & StoredFileHelper ** best effort to handle any kind of SAF errors/exceptions
16 lines
404 B
Java
16 lines
404 B
Java
package us.shandian.giga.get;
|
|
|
|
import android.support.annotation.NonNull;
|
|
|
|
public class FinishedMission extends Mission {
|
|
|
|
public FinishedMission() {
|
|
}
|
|
|
|
public FinishedMission(@NonNull DownloadMission mission) {
|
|
source = mission.source;
|
|
length = mission.length;// ¿or mission.done?
|
|
timestamp = mission.timestamp;
|
|
kind = mission.kind;
|
|
}
|
|
}
|