27 lines
937 B
C#
27 lines
937 B
C#
|
|
namespace NexusRMM.Core.Models;
|
||
|
|
|
||
|
|
public class SoftwarePackage
|
||
|
|
{
|
||
|
|
public int Id { get; set; }
|
||
|
|
public string Name { get; set; } = string.Empty;
|
||
|
|
public string Version { get; set; } = string.Empty;
|
||
|
|
public OsType OsType { get; set; }
|
||
|
|
|
||
|
|
/// <summary>Paketmanager: "choco", "apt", "dnf", "direct"</summary>
|
||
|
|
public string PackageManager { get; set; } = "choco";
|
||
|
|
|
||
|
|
/// <summary>Paketname für den Paketmanager (z.B. "7zip" für choco)</summary>
|
||
|
|
public string PackageName { get; set; } = string.Empty;
|
||
|
|
|
||
|
|
/// <summary>Optionale direkte Download-URL (für Fallback)</summary>
|
||
|
|
public string? InstallerUrl { get; set; }
|
||
|
|
|
||
|
|
/// <summary>SHA256-Prüfsumme der Installer-Datei</summary>
|
||
|
|
public string? Checksum { get; set; }
|
||
|
|
|
||
|
|
/// <summary>Silent-Install-Parameter für direkten Installer</summary>
|
||
|
|
public string? SilentArgs { get; set; }
|
||
|
|
|
||
|
|
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
||
|
|
}
|