// Copyright © 2014 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. using System; namespace CefSharp { /// /// Class used to represent a download item. /// public sealed class DownloadItem { /// /// Returns true if this object is valid. Do not call any other methods if this function returns false. /// public bool IsValid { get; set; } /// /// Returns true if the download is in progress. /// public bool IsInProgress { get; set; } /// /// Returns true if the download is complete. /// public bool IsComplete { get; set; } /// /// Returns true if the download has been canceled or interrupted. /// public bool IsCancelled { get; set; } /// /// Returns a simple speed estimate in bytes/s. /// public Int64 CurrentSpeed { get; set; } /// /// Returns the rough percent complete or -1 if the receive total size is unknown. /// public int PercentComplete { get; set; } /// /// Returns the total number of bytes. /// public Int64 TotalBytes { get; set; } /// /// Returns the number of received bytes. /// public Int64 ReceivedBytes { get; set; } /// /// Returns the time that the download started /// public DateTime? StartTime { get; set; } /// /// Returns the time that the download ended /// public DateTime? EndTime { get; set; } /// /// Returns the full path to the downloaded or downloading file. /// public string FullPath { get; set; } /// /// Returns the unique identifier for this download. /// public int Id { get; set; } /// /// Returns the URL. /// public string Url { get; set; } /// /// Returns the URL as it was before any redirects. /// public string OriginalUrl { get; set; } /// /// Returns the suggested file name. /// public string SuggestedFileName { get; set; } /// /// Returns the content disposition. /// public string ContentDisposition { get; set; } /// /// Returns the mime type. /// public string MimeType { get; set; } } }