/*
 * Copyright (c) 2023 Yic Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/**
 * @ProjectName : HarmonyUtilSdk
 * @FileName : Model
 * @Author : yic
 * @Time : 2024/6/20 15:53
 * @Description : 文件描述
 */
export class Process {
    /** 当前已经完成的字节数 **/
    currentByteCount: number = 0;
    /** 全部字节数 **/
    totalByteCount: number = 0;
    /** 距离上次进度变化的新增字节数 **/
    intervalByteCount: number = 0;
    /** 距离上次进度变化的时间 **/
    intervalTime: number = 0;
    //是否完成
    status: ProcessStatus = ProcessStatus.NONE;
    //下载路径
    path?: string = '';
}
export enum ProcessStatus {
    NONE = "none",
    PROCESSING = "processing",
    COMPLETED = "completed",
    FAILED = "failed",
    CANCEL = "cancel"
}
