Update all model classes to Electron API 39.2

This commit is contained in:
softworkz
2025-11-22 02:16:10 +01:00
parent 1d554fda60
commit 6761119241
114 changed files with 1527 additions and 499 deletions

View File

@@ -1,54 +1,58 @@
namespace ElectronNET.API.Entities
using System.Runtime.Versioning;
namespace ElectronNET.API.Entities
{
/// <summary>
/// Process metrics information.
/// </summary>
/// <remarks>Up-to-date with Electron API 39.2</remarks>
public class ProcessMetric
{
/// <summary>
/// Process id of the process.
/// Gets or sets the process id of the process.
/// </summary>
public int PId { get; set; }
/// <summary>
/// Process type (Browser or Tab or GPU etc).
/// Gets or sets the process type. One of: Browser | Tab | Utility | Zygote | Sandbox helper | GPU | Pepper Plugin | Pepper Plugin Broker | Unknown.
/// </summary>
public string Type { get; set; }
/// <summary>
/// CPU usage of the process.
/// Gets or sets the CPU usage of the process.
/// </summary>
public CPUUsage Cpu { get; set; }
/// <summary>
/// Creation time for this process in milliseconds since Unix epoch. Can exceed Int32 range and may contain fractional milliseconds.
/// Gets or sets the creation time for this process, represented as the number of milliseconds since the UNIX epoch. Since the pid can be reused after a process dies, use both pid and creationTime to uniquely identify a process.
/// </summary>
public double CreationTime { get; set; }
/// <summary>
/// Memory information for the process.
/// Gets or sets the memory information for the process.
/// </summary>
public MemoryInfo Memory { get; set; }
/// <summary>
/// Whether the process is sandboxed on OS level.
/// Gets or sets a value indicating whether the process is sandboxed on OS level.
/// </summary>
[SupportedOSPlatform("macos")]
[SupportedOSPlatform("windows")]
public bool Sandboxed { get; set; }
/// <summary>
/// One of the following values:
/// untrusted | low | medium | high | unknown
/// Gets or sets the integrity level. One of: untrusted | low | medium | high | unknown.
/// </summary>
[SupportedOSPlatform("windows")]
public string IntegrityLevel { get; set; }
/// <summary>
/// The name of the process.
/// Examples for utility: Audio Service, Content Decryption Module Service, Network Service, Video Capture, etc.
/// Gets or sets the name of the process. Examples for utility: Audio Service, Content Decryption Module Service, Network Service, Video Capture, etc.
/// </summary>
public string Name { get; set; }
/// <summary>
/// The non-localized name of the process.
/// Gets or sets the non-localized name of the process.
/// </summary>
public string ServiceName { get; set; }
}