mirror of
https://github.com/Stone-Red-Code/HyperbolicDownloader.git
synced 2026-09-08 15:56:23 +02:00
Add list files remote command
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace HyperbolicDownloaderApi.FileProcessing;
|
||||
|
||||
internal class HyperFileDto
|
||||
{
|
||||
public string Hash { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
[JsonConstructor]
|
||||
public HyperFileDto(string hash, string name)
|
||||
{
|
||||
Hash = hash;
|
||||
Name = name;
|
||||
}
|
||||
|
||||
public HyperFileDto(PrivateHyperFileInfo privateHyperFileInfo)
|
||||
{
|
||||
Hash = privateHyperFileInfo.Hash;
|
||||
Name = Path.GetFileName(privateHyperFileInfo.FilePath);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user