mirror of
https://github.com/Stone-Red-Code/HyperbolicDownloader.git
synced 2026-09-07 23:40:52 +02:00
Improve code structure
- Add separate API project - Add notification system
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
using HyperbolicDownloaderApi.Networking;
|
||||
|
||||
namespace HyperbolicDownloaderApi.FileProcessing;
|
||||
|
||||
public class PublicHyperFileInfo
|
||||
{
|
||||
public string Hash { get; set; } = string.Empty;
|
||||
public List<NetworkSocket> Hosts { get; set; } = new();
|
||||
|
||||
public PublicHyperFileInfo()
|
||||
{
|
||||
}
|
||||
|
||||
public PublicHyperFileInfo(string hash)
|
||||
{
|
||||
Hash = hash;
|
||||
}
|
||||
|
||||
public PublicHyperFileInfo(string hash, List<NetworkSocket> hosts)
|
||||
{
|
||||
Hash = hash;
|
||||
Hosts = hosts;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user