namespace VideoBrowser.Core
{
using System;
///
/// Defines the
///
public class FileDownload
{
#region Constructors
///
/// Initializes a new instance of the class.
///
/// The path
/// The url
public FileDownload(string path, string url)
{
this.Path = path;
this.Url = url;
}
///
/// Initializes a new instance of the class.
///
/// The path
/// The url
/// The alwaysCleanupOnCancel
public FileDownload(string path, string url, bool alwaysCleanupOnCancel)
: this(path, url)
{
this.AlwaysCleanupOnCancel = alwaysCleanupOnCancel;
}
#endregion Constructors
#region Properties
///
/// Gets or sets a value indicating whether AlwaysCleanupOnCancel
///
public bool AlwaysCleanupOnCancel { get; set; }
///
/// Gets the Directory
///
public string Directory => System.IO.Path.GetDirectoryName(this.Path);
///
/// Gets or sets the Exception
///
public Exception Exception { get; internal set; }
///
/// Gets or sets a value indicating whether IsFinished
///
public bool IsFinished { get; set; }
///
/// Gets the Name
///
public string Name => System.IO.Path.GetFileName(this.Path);
///
/// Gets or sets the Path
///
public string Path { get; set; }
///
/// Gets or sets the Progress
///
public long Progress { get; set; }
///
/// Gets or sets the TotalFileSize
///
public long TotalFileSize { get; set; }
///
/// Gets or sets the Url
///
public string Url { get; set; }
#endregion Properties
}
}