First upload version 0.0.1
This commit is contained in:
43
node_modules/ipull/dist/download/download-engine/download-file/progress-status-file.d.ts
generated
vendored
Normal file
43
node_modules/ipull/dist/download/download-engine/download-file/progress-status-file.d.ts
generated
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
export type ProgressStatus = {
|
||||
totalBytes: number;
|
||||
totalDownloadParts: number;
|
||||
fileName: string;
|
||||
comment?: string;
|
||||
downloadPart: number;
|
||||
transferredBytes: number;
|
||||
startTime: number;
|
||||
endTime: number;
|
||||
transferAction: string;
|
||||
downloadStatus: DownloadStatus;
|
||||
downloadFlags: DownloadFlags[];
|
||||
};
|
||||
export declare enum DownloadStatus {
|
||||
Loading = "Loading",
|
||||
Active = "Active",
|
||||
Paused = "Paused",
|
||||
NotStarted = "NotStarted",
|
||||
Finished = "Finished",
|
||||
Cancelled = "Cancelled",
|
||||
Error = "Error"
|
||||
}
|
||||
export declare enum DownloadFlags {
|
||||
Existing = "Existing",
|
||||
DownloadSequence = "DownloadSequence"
|
||||
}
|
||||
export default class ProgressStatusFile {
|
||||
readonly totalDownloadParts: number;
|
||||
readonly fileName: string;
|
||||
readonly comment?: string;
|
||||
readonly downloadPart: number;
|
||||
readonly transferredBytes: number;
|
||||
readonly transferAction: string;
|
||||
downloadStatus: DownloadStatus;
|
||||
downloadFlags: DownloadFlags[];
|
||||
totalBytes: number;
|
||||
startTime: number;
|
||||
endTime: number;
|
||||
constructor(totalDownloadParts: number, fileName: string, transferAction?: string, downloadFlags?: DownloadFlags[], comment?: string, downloadPart?: number, transferredBytes?: number, downloadStatus?: DownloadStatus);
|
||||
started(): void;
|
||||
finished(): void;
|
||||
createStatus(downloadPart: number, transferredBytes: number, totalBytes?: number, downloadStatus?: DownloadStatus, comment?: string | undefined): ProgressStatusFile;
|
||||
}
|
||||
Reference in New Issue
Block a user