Add project files.

This commit is contained in:
misak
2024-02-10 14:48:59 +09:00
parent bb04c21f6e
commit 307701c6c5
30 changed files with 1096 additions and 0 deletions

19
Models/AppConfig.cs Normal file
View 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
View 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;
}
}

View 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
View 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
}