20230811-1
This commit is contained in:
27
anbs_cposinfo/Interfaces/IOsBasicInfo.cs
Normal file
27
anbs_cposinfo/Interfaces/IOsBasicInfo.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
namespace anbs_cp.OsInfo.Interfaces;
|
||||
|
||||
/// <summary>
|
||||
/// Базовые параметры устройства
|
||||
/// </summary>
|
||||
public interface IOsBasicInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// Заголовок
|
||||
/// </summary>
|
||||
public string? Caption { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Описание
|
||||
/// </summary>
|
||||
public string? Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Идентификатор устройства
|
||||
/// </summary>
|
||||
public string? DeviceId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Имя устройства
|
||||
/// </summary>
|
||||
public string? Name { get; set; }
|
||||
}
|
24
anbs_cposinfo/Interfaces/IOsDriveInfo.cs
Normal file
24
anbs_cposinfo/Interfaces/IOsDriveInfo.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using anbs_cp.OsInfo.Enums;
|
||||
|
||||
namespace anbs_cp.OsInfo.Interfaces;
|
||||
|
||||
/// <summary>
|
||||
/// Информация о дисках
|
||||
/// </summary>
|
||||
public interface IOsDriveInfo: IOsBasicInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// Тип диска
|
||||
/// </summary>
|
||||
public EDriveType Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Модель
|
||||
/// </summary>
|
||||
public string? Model { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Общий размер
|
||||
/// </summary>
|
||||
public ulong TotalSize { get; set; }
|
||||
}
|
17
anbs_cposinfo/Interfaces/IOsNetInfo.cs
Normal file
17
anbs_cposinfo/Interfaces/IOsNetInfo.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
namespace anbs_cp.OsInfo.Interfaces;
|
||||
|
||||
/// <summary>
|
||||
/// Информация об интернет-соединении
|
||||
/// </summary>
|
||||
public interface IOsNetInfo: IOsBasicInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// IP-адрес
|
||||
/// </summary>
|
||||
public string? IPAddress { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// MAC-адрес
|
||||
/// </summary>
|
||||
public string? MacAddress { get; set; }
|
||||
}
|
31
anbs_cposinfo/Interfaces/IOsProcessorInfo.cs
Normal file
31
anbs_cposinfo/Interfaces/IOsProcessorInfo.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
namespace anbs_cp.OsInfo.Interfaces;
|
||||
|
||||
/// <summary>
|
||||
/// Информация о процессоре
|
||||
/// </summary>
|
||||
public interface IOsProcessorInfo: IOsBasicInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// Заголовок
|
||||
/// </summary>
|
||||
|
||||
/// <summary>
|
||||
/// Производитель
|
||||
/// </summary>
|
||||
public string? Manufacturer { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Максимальная тактовая частота
|
||||
/// </summary>
|
||||
public int MaxClockSpeed { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Число ядер
|
||||
/// </summary>
|
||||
public int NumberOfCores { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Число потоков
|
||||
/// </summary>
|
||||
public int NumberOfLogicalProcessors { get; set; }
|
||||
}
|
42
anbs_cposinfo/Interfaces/IOsVideoAdapterInfo.cs
Normal file
42
anbs_cposinfo/Interfaces/IOsVideoAdapterInfo.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
namespace anbs_cp.OsInfo.Interfaces;
|
||||
|
||||
/// <summary>
|
||||
/// Информация о видеокарте
|
||||
/// </summary>
|
||||
public interface IOsVideoAdapterInfo: IOsBasicInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// Память
|
||||
/// </summary>
|
||||
public int AdapterRAM { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Текущее разрешение
|
||||
/// </summary>
|
||||
public (int, int) CurrentResolution { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Дата установки драйвера
|
||||
/// </summary>
|
||||
public string? DriverDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Версия драйвера
|
||||
/// </summary>
|
||||
public string? DriverVersion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Название драйверов
|
||||
/// </summary>
|
||||
public string? InstalledDisplayDrivers { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Имя в системе
|
||||
/// </summary>
|
||||
public string? SystemName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Видео процессор
|
||||
/// </summary>
|
||||
public string? VideoProcessor { get; set; }
|
||||
}
|
27
anbs_cposinfo/Interfaces/IOsWindowsInfo.cs
Normal file
27
anbs_cposinfo/Interfaces/IOsWindowsInfo.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
namespace anbs_cp.OsInfo.Interfaces;
|
||||
|
||||
/// <summary>
|
||||
/// Информация о Windows
|
||||
/// </summary>
|
||||
public interface IOsWindowsInfo: IOsBasicInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// Версия
|
||||
/// </summary>
|
||||
public string? Version { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 64-разрядная ОС
|
||||
/// </summary>
|
||||
public bool Is64 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Имя компьютера
|
||||
/// </summary>
|
||||
public string? PcName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Путь к папке Windows
|
||||
/// </summary>
|
||||
public string? WindowsFolder { get; set; }
|
||||
}
|
Reference in New Issue
Block a user