mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2026-11-11 04:57:15 +00:00
Sealed a lot of classes that are not meant to be inherited
This commit is contained in:
1 parent
d9c244a044
commit
2020992249
155 files changed
+205
-344
No files matched your search
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace RGB.NET.Devices.SteelSeries.API.Model;
|
||||
|
||||
internal class CoreProps
|
||||
internal sealed class CoreProps
|
||||
{
|
||||
[JsonPropertyName("address")]
|
||||
public string? Address { get; set; }
|
||||
|
||||
@@ -3,7 +3,7 @@ using System.Text.Json.Serialization;
|
||||
|
||||
namespace RGB.NET.Devices.SteelSeries.API.Model;
|
||||
|
||||
internal class Event
|
||||
internal sealed class Event
|
||||
{
|
||||
#region Properties & Fields
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace RGB.NET.Devices.SteelSeries.API.Model;
|
||||
|
||||
internal class Game
|
||||
internal sealed class Game
|
||||
{
|
||||
#region Properties & Fields
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace RGB.NET.Devices.SteelSeries.API.Model;
|
||||
|
||||
internal class GoLispHandler
|
||||
internal sealed class GoLispHandler
|
||||
{
|
||||
#region Properties & Fields
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
namespace RGB.NET.Devices.SteelSeries;
|
||||
|
||||
internal class APIName : System.Attribute
|
||||
internal sealed class APIName : System.Attribute
|
||||
{
|
||||
#region Properties & Fields
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace RGB.NET.Devices.SteelSeries;
|
||||
/// <summary>
|
||||
/// Represents the update-queue performing updates for steelseries devices.
|
||||
/// </summary>
|
||||
internal class SteelSeriesDeviceUpdateQueue : UpdateQueue
|
||||
internal sealed class SteelSeriesDeviceUpdateQueue : UpdateQueue
|
||||
{
|
||||
#region Properties & Fields
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace RGB.NET.Devices.SteelSeries;
|
||||
/// <summary>
|
||||
/// Represents a SteelSeries-device. (keyboard, mouse, headset, mousepad).
|
||||
/// </summary>
|
||||
public class SteelSeriesRGBDevice : AbstractRGBDevice<SteelSeriesRGBDeviceInfo>, ISteelSeriesRGBDevice, IUnknownDevice//TODO DarthAffe 18.04.2020: It's know which kind of device this is, but they would need to be separated
|
||||
public sealed class SteelSeriesRGBDevice : AbstractRGBDevice<SteelSeriesRGBDeviceInfo>, ISteelSeriesRGBDevice, IUnknownDevice//TODO DarthAffe 18.04.2020: It's know which kind of device this is, but they would need to be separated
|
||||
{
|
||||
#region Properties & Fields
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace RGB.NET.Devices.SteelSeries;
|
||||
/// <summary>
|
||||
/// Represents a generic information for a SteelSeries-<see cref="T:RGB.NET.Core.IRGBDevice" />.
|
||||
/// </summary>
|
||||
public class SteelSeriesRGBDeviceInfo : IRGBDeviceInfo
|
||||
public sealed class SteelSeriesRGBDeviceInfo : IRGBDeviceInfo
|
||||
{
|
||||
#region Properties & Fields
|
||||
|
||||
|
||||
@@ -10,11 +10,11 @@ namespace RGB.NET.Devices.SteelSeries;
|
||||
/// <summary>
|
||||
/// Represents a device provider responsible for SteelSeries-devices.
|
||||
/// </summary>
|
||||
public class SteelSeriesDeviceProvider : AbstractRGBDeviceProvider
|
||||
public sealed class SteelSeriesDeviceProvider : AbstractRGBDeviceProvider
|
||||
{
|
||||
#region Constants
|
||||
|
||||
private static readonly int HEARTBEAT_TIMER = 5000; // flush the device every 5 seconds to prevent timeouts
|
||||
private const int HEARTBEAT_TIMER = 5000; // flush the device every 5 seconds to prevent timeouts
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -137,8 +137,6 @@ public class SteelSeriesDeviceProvider : AbstractRGBDeviceProvider
|
||||
|
||||
try { SteelSeriesSDK.Dispose(); }
|
||||
catch { /* shit happens */ }
|
||||
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
Reference in new issue
Block a user