Lagrange.Core/Lagrange.Core/Common/BotDeviceInfo.cs
2023-06-28 11:24:41 +08:00

28 lines
No EOL
686 B
C#

using Lagrange.Core.Utility.Generator;
#pragma warning disable CS8618
namespace Lagrange.Core.Common;
[Serializable]
public class BotDeviceInfo
{
public Guid Guid { get; set; }
public byte[] MacAddress { get; set; }
public string DeviceName { get; set; }
public string SystemKernel { get; set; }
public string KernelVersion { get; set; }
public static BotDeviceInfo GenerateInfo() => new()
{
Guid = Guid.NewGuid(),
MacAddress = ByteGen.GenRandomBytes(6),
DeviceName = $"Lagrange-{StringGen.GenerateHex(6).ToUpper()}",
SystemKernel = "Windows 10.0.19042",
KernelVersion = "10.0.19042.0"
};
}