Add project files.
This commit is contained in:
19
Models/AppConfig.cs
Normal file
19
Models/AppConfig.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
// This Source Code Form is subject to the terms of the MIT License.
|
||||
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
|
||||
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
|
||||
// All Rights Reserved.
|
||||
|
||||
namespace DownloadManager.Models;
|
||||
|
||||
public class AppConfig
|
||||
{
|
||||
public string ConfigurationsFolder
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
public string AppPropertiesFileName
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
}
|
||||
15
Models/DataColor.cs
Normal file
15
Models/DataColor.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
// This Source Code Form is subject to the terms of the MIT License.
|
||||
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
|
||||
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
|
||||
// All Rights Reserved.
|
||||
|
||||
using System.Windows.Media;
|
||||
|
||||
namespace DownloadManager.Models;
|
||||
public struct DataColor
|
||||
{
|
||||
public Brush Color
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
}
|
||||
34
Models/DownloadItemData.cs
Normal file
34
Models/DownloadItemData.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DownloadManager.Models;
|
||||
public class DownloadItemData
|
||||
{
|
||||
public required string FileName
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
public required string Url
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
public required long FileSize
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
public required long Speed
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
public required int Progress
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
public required DownloadStatus Status
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
}
|
||||
14
Models/DownloadStatus.cs
Normal file
14
Models/DownloadStatus.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DownloadManager.Models;
|
||||
public enum DownloadStatus
|
||||
{
|
||||
Downloading,
|
||||
Pausing,
|
||||
Done,
|
||||
Cancel
|
||||
}
|
||||
Reference in New Issue
Block a user