mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-05 23:06:10 +00:00
30 lines
1.0 KiB
C#
30 lines
1.0 KiB
C#
using System.Diagnostics;
|
|
using System.Globalization;
|
|
|
|
namespace Octokit
|
|
{
|
|
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
|
public class Machine
|
|
{
|
|
public string Name { get; private set; }
|
|
public string DisplayName { get; private set; }
|
|
public string OperatingSystem { get; private set; }
|
|
public long StorageInBytes { get; private set; }
|
|
public long MemoryInBytes { get; private set; }
|
|
public long CpuCount { get; private set; }
|
|
|
|
public Machine(string name, string displayName, string operatingSystem, long storageInBytes, long memoryInBytes, long cpuCount)
|
|
{
|
|
Name = name;
|
|
DisplayName = displayName;
|
|
OperatingSystem = operatingSystem;
|
|
StorageInBytes = storageInBytes;
|
|
MemoryInBytes = memoryInBytes;
|
|
CpuCount = cpuCount;
|
|
}
|
|
|
|
public Machine() { }
|
|
|
|
internal string DebuggerDisplay => string.Format(CultureInfo.CurrentCulture, "Machine: {0}", DisplayName);
|
|
}
|
|
} |