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,24 +1,28 @@
namespace ElectronNET.API.Entities
using System.Runtime.Versioning;
namespace ElectronNET.API.Entities
{
/// <summary>
///
/// Process memory info as returned by process.getProcessMemoryInfo().
/// Values are reported in Kilobytes.
/// </summary>
/// <remarks>Up-to-date with Electron API 39.2</remarks>
public class MemoryInfo
{
/// <summary>
/// The amount of memory currently pinned to actual physical RAM.
/// Gets or sets the amount of memory currently pinned to actual physical RAM.
/// </summary>
public int WorkingSetSize { get; set; }
/// <summary>
/// The maximum amount of memory that has ever been pinned to actual physical RAM.
/// Gets or sets the maximum amount of memory that has ever been pinned to actual physical RAM.
/// </summary>
public int PeakWorkingSetSize { get; set; }
/// <summary>
/// The amount of memory not shared by other processes, such as JS heap or HTML
/// content.
/// Gets or sets the amount of memory not shared by other processes, such as JS heap or HTML content. Windows only.
/// </summary>
[SupportedOSPlatform("windows")]
public int PrivateBytes { get; set; }
}
}