26 lines
513 B
C#
26 lines
513 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace watcher_monitoring.Payloads;
|
|
|
|
public class HardwareDto
|
|
{
|
|
[Required]
|
|
public required int Id;
|
|
|
|
[Required]
|
|
public string? IpAddress { get; set; }
|
|
|
|
// Hardware Info
|
|
[Required]
|
|
public string? CpuType { get; set; }
|
|
|
|
[Required]
|
|
public int CpuCores { get; set; }
|
|
|
|
[Required]
|
|
public string? GpuType { get; set; }
|
|
|
|
[Required]
|
|
public double RamSize { get; set; }
|
|
} |