/*
* Copyright (c) 2024 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, 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; }
///
/// The download URL of the item.
///
public string Url { get; set; }
public DownloadItemState(Guid id)
{
Id = id;
}
}
}