/*
* Copyright (c) 2025 ETH Zürich, IT Services
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
using System;
namespace SafeExamBrowser.UserInterface.Contracts.Browser.Data
{
///
/// Defines the state of a download item.
///
public class DownloadItemState
{
///
/// The current completion of the item (if available, see ), as percentage value from 0.0 to 1.0.
///
public double Completion { get; set; }
///
/// The full path of the download location for the item.
///
public string FullPath { get; set; }
///
/// The unique identifier of the item.
///
public Guid Id { get; set; }
///
/// Indicates that the download was cancelled.
///
public bool IsCancelled { get; set; }
///
/// Indicates that the download was completed.
///
public bool IsComplete { get; set; }
///
/// Indicates whether the is known or not.
///
public bool IsIndeterminate { get; set; }
///
/// The current size of the download item in bytes.
///
public long Size { get; set; }
///
/// The download URL of the item.
///
public string Url { get; set; }
public DownloadItemState(Guid id)
{
Id = id;
}
}
}