23 lines
454 B
C#
23 lines
454 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace watcher_monitoring.Payloads;
|
|
|
|
public class HardwareDto
|
|
{
|
|
[Required]
|
|
public required int id;
|
|
|
|
// 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; }
|
|
} |