Move DevDrive project to repo root
This commit is contained in:
33
FloppyConfig.cs
Normal file
33
FloppyConfig.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user