InventoryAgent/Inventory.Core/Device.cs

40 lines
1.7 KiB
C#

using System;
namespace Inventory.Core
{
public class Device
{
public int Id { get; set; }
public string? HardwareIdentifier { get; set; }
public string? ComputerName { get; set; }
public string? DeviceType { get; set; }
public string? SerialNumber { get; set; }
public string? Location { get; set; }
public string? MotherboardSerialNumber { get; set; }
public string? SystemUUID { get; set; }
public string? Processor { get; set; }
public string? RAM { get; set; }
public string? GPUs { get; set; } // Keep for simple display
public bool HasOpticalDrive { get; set; }
public string? OSVersion { get; set; }
public DateTime? OsInstallDate { get; set; }
public string? OSLicenseKey { get; set; }
// Health Metrics
public double? CpuTemperature { get; set; }
public double? GpuTemperature { get; set; }
public double? BatteryHealthPercent { get; set; }
public string? IPAddress { get; set; }
public string? MACAddress { get; set; }
public DateTime LastSeen { get; set; }
// JSON-based Properties
public string? Monitors { get; set; } // Stores JSON List<MonitorInfo>
public string? Printers { get; set; } // Stores JSON List<PrinterInfo>
public string? StorageDevices { get; set; } // Stores JSON List<StorageDeviceInfo>
public string? DriveHealth { get; set; } // Stores JSON List<DriveHealthInfo>
public string? HealthMetrics { get; set; } // Stores JSON HealthMetricsReport
public string? LocalAdmins { get; set; } // Stores JSON List<LocalAdminInfo>
}
}