Added corsair session details

This commit is contained in:
DarthAffe committed 2023-02-12 16:19:00 +01:00
1 parent 2ff7a65519
commit cc652a08a6
2 files changed
+48 -1

No files matched your search

@@ -0,0 +1,37 @@
// ReSharper disable MemberCanBePrivate.Global
using RGB.NET.Devices.Corsair.Native;
namespace RGB.NET.Devices.Corsair;
/// <summary>
/// Represents version information for the Corsair-SDK
/// </summary>
public class CorsairSessionDetails
{
#region Properties & Fields
public string ClientVersion { get; }
public string ServerVersion { get; }
public string ServerHostVersion { get; }
#endregion
#region Constructors
internal CorsairSessionDetails()
{
ClientVersion = string.Empty;
ServerVersion = string.Empty;
ServerHostVersion = string.Empty;
}
internal CorsairSessionDetails(_CorsairSessionDetails nativeDetails)
{
this.ClientVersion = nativeDetails.clientVersion.ToString();
this.ServerVersion = nativeDetails.serverVersion.ToString();
this.ServerHostVersion = nativeDetails.serverHostVersion.ToString();
}
#endregion
}