additional device details

This commit is contained in:
Gary Sharp
2020-12-04 15:51:23 +11:00
parent 486ce17857
commit af4a94870e
22 changed files with 1584 additions and 231 deletions
@@ -0,0 +1,14 @@
namespace Disco.Models.ClientServices.EnrolmentInformation
{
public class BaseBoard
{
public string[] ConfigOptions { get; set; }
public string Manufacturer { get; set; }
public string Model { get; set; }
public string PartNumber { get; set; }
public string Product { get; set; }
public string SerialNumber { get; set; }
public string SKU { get; set; }
public string Version { get; set; }
}
}
@@ -0,0 +1,14 @@
namespace Disco.Models.ClientServices.EnrolmentInformation
{
public class Battery
{
public string Availability { get; set; }
public string Chemistry { get; set; }
public string Description { get; set; }
public uint? DesignCapacity { get; set; }
public ulong? DesignVoltage { get; set; }
public string DeviceID { get; set; }
public uint? FullChargeCapacity { get; set; }
public string Name { get; set; }
}
}
@@ -0,0 +1,17 @@
using System;
namespace Disco.Models.ClientServices.EnrolmentInformation
{
public class Bios
{
public string[] BIOSVersion { get; set; }
public string Manufacturer { get; set; }
public DateTime? ReleaseDate { get; set; }
public string SerialNumber { get; set; }
public string SMBIOSBIOSVersion { get; set; }
public ushort? SMBIOSMajorVersion { get; set; }
public ushort? SMBIOSMinorVersion { get; set; }
public byte? SystemBiosMajorVersion { get; set; }
public byte? SystemBiosMinorVersion { get; set; }
}
}
@@ -0,0 +1,16 @@
namespace Disco.Models.ClientServices.EnrolmentInformation
{
public class ComputerSystem
{
public string ChassisSKUNumber { get; set; }
public short? CurrentTimeZone { get; set;}
public string Description { get; set; }
public string[] OEMStringArray { get; set; }
public string PCSystemType { get; set; }
public string PrimaryOwnerContact { get; set; }
public string PrimaryOwnerName { get; set; }
public string[] Roles { get; set; }
public string SystemSKUNumber { get; set; }
public string SystemType { get; set; }
}
}
@@ -11,10 +11,13 @@ namespace Disco.Models.ClientServices.EnrolmentInformation
public string Model { get; set; }
public string ModelType { get; set; }
public List<Bios> Bios { get; set; }
public List<BaseBoard> BasebBoard { get; set; }
public List<ComputerSystem> ComputerSystem { get; set; }
public List<Processor> Processors { get; set; }
public List<PhysicalMemory> PhysicalMemory { get; set; }
public List<DiskDrive> DiskDrives { get; set; }
public List<NetworkAdapter> NetworkAdapters { get; set; }
public List<Battery> Batteries { get; set; }
}
}
@@ -11,7 +11,7 @@ namespace Disco.Models.ClientServices.EnrolmentInformation
public string InterfaceType { get; set; }
public string SerialNumber { get; set; }
public string FirmwareRevision { get; set; }
public ulong Size { get; set; }
public ulong? Size { get; set; }
public List<DiskDrivePartition> Partitions { get; set; }
}
@@ -3,11 +3,11 @@
public class DiskDrivePartition
{
public string DeviceID { get; set; }
public bool Bootable { get; set; }
public bool BootPartition { get; set; }
public bool PrimaryParition { get; set; }
public ulong Size { get; set; }
public ulong StartingOffset { get; set; }
public bool? Bootable { get; set; }
public bool? BootPartition { get; set; }
public bool? PrimaryParition { get; set; }
public ulong? Size { get; set; }
public ulong? StartingOffset { get; set; }
public string Type { get; set; }
public DiskLogical LogicalDisk { get; set; }
@@ -7,8 +7,8 @@
public string DriveType { get; set; }
public string MediaType { get; set; }
public string FileSystem { get; set; }
public ulong Size { get; set; }
public ulong FreeSpace { get; set; }
public ulong? Size { get; set; }
public ulong? FreeSpace { get; set; }
public string VolumeName { get; set; }
public string VolumeSerialNumber { get; set; }
}
@@ -7,9 +7,9 @@
public string Manufacturer { get; set; }
public string PartNumber { get; set; }
public ulong Capacity { get; set; }
public uint ConfiguredClockSpeed { get; set; }
public uint Speed { get; set; }
public ulong? Capacity { get; set; }
public uint? ConfiguredClockSpeed { get; set; }
public uint? Speed { get; set; }
public string DeviceLocator { get; set; }
}
@@ -7,9 +7,9 @@
public string Name { get; set; }
public string Description { get; set; }
public string Architecture { get; set; }
public ushort Family { get; set; }
public uint MaxClockSpeed { get; set; }
public uint NumberOfCores { get; set; }
public uint NumberOfLogicalProcessors { get; set; }
public ushort? Family { get; set; }
public uint? MaxClockSpeed { get; set; }
public uint? NumberOfCores { get; set; }
public uint? NumberOfLogicalProcessors { get; set; }
}
}