Files
DevDrive/FloppyConfig.cs

34 lines
826 B
C#

using System.Text.Json.Serialization;
namespace DevDrive;
/// <summary>
/// Represents the index.json configuration file structure.
/// </summary>
public class FloppyConfig
{
[JsonPropertyName("driveName")]
public string DriveName { get; set; } = "Dev Disk";
[JsonPropertyName("driveIcon")]
public string DriveIcon { get; set; } = "";
[JsonPropertyName("driveTotalMB")]
public double DriveTotalMB { get; set; } = 100;
[JsonPropertyName("driveFreeMB")]
public double DriveFreeMB { get; set; } = 50;
[JsonPropertyName("paths")]
public List<SymlinkEntry> Paths { get; set; } = [];
}
public class SymlinkEntry
{
[JsonPropertyName("name")]
public string Name { get; set; } = string.Empty;
[JsonPropertyName("path")]
public string Path { get; set; } = string.Empty;
}