mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-01-05 06:53:07 +00:00
# Conflicts: # Tests/ExperimentalTests/UtilityTests/DiscordBotTests.cs # Tools/AutoClient/Modes/FolderStore/FileSaver.cs
46 lines
1.4 KiB
C#
46 lines
1.4 KiB
C#
namespace AutoClient.Modes.FolderStore
|
|
{
|
|
[Serializable]
|
|
public class FolderStatus
|
|
{
|
|
public List<FileStatus> Files { get; set; } = new List<FileStatus>();
|
|
public Stats Stats { get; set; } = new Stats();
|
|
public string Padding { get; set; } = string.Empty;
|
|
}
|
|
|
|
[Serializable]
|
|
public class FileStatus
|
|
{
|
|
public string CodexNodeId { get; set; } = string.Empty;
|
|
public string Filename { get; set; } = string.Empty;
|
|
public string BasicCid { get; set; } = string.Empty;
|
|
public string EncodedCid { get; set; } = string.Empty;
|
|
public string PurchaseId { get; set; } = string.Empty;
|
|
public DateTime PurchaseFinishedUtc { get; set; } = DateTime.MinValue;
|
|
|
|
public void ClearPurchase()
|
|
{
|
|
EncodedCid = string.Empty;
|
|
PurchaseId = string.Empty;
|
|
PurchaseFinishedUtc = DateTime.MinValue;
|
|
}
|
|
}
|
|
|
|
[Serializable]
|
|
public class Stats
|
|
{
|
|
public int SuccessfulUploads { get; set; }
|
|
public int FailedUploads { get; set; }
|
|
public StorageRequestStats StorageRequestStats { get; set; } = new StorageRequestStats();
|
|
}
|
|
|
|
[Serializable]
|
|
public class StorageRequestStats
|
|
{
|
|
public int FailedToCreate { get; set; }
|
|
public int FailedToSubmit { get; set; }
|
|
public int FailedToStart { get; set; }
|
|
public int SuccessfullyStarted { get; set; }
|
|
}
|
|
}
|