mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2026-11-11 13:06:24 +00:00
Changed all namespaces to file-scope
This commit is contained in:
1 parent
a0c6ccebea
commit
30624035f1
353 files changed
+35775
-36129
No files matched your search
@@ -1,10 +1,9 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace RGB.NET.Devices.SteelSeries.API.Model
|
||||
namespace RGB.NET.Devices.SteelSeries.API.Model;
|
||||
|
||||
internal class CoreProps
|
||||
{
|
||||
internal class CoreProps
|
||||
{
|
||||
[JsonPropertyName("address")]
|
||||
public string? Address { get; set; }
|
||||
}
|
||||
}
|
||||
[JsonPropertyName("address")]
|
||||
public string? Address { get; set; }
|
||||
}
|
||||
@@ -1,35 +1,34 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace RGB.NET.Devices.SteelSeries.API.Model
|
||||
namespace RGB.NET.Devices.SteelSeries.API.Model;
|
||||
|
||||
internal class Event
|
||||
{
|
||||
internal class Event
|
||||
#region Properties & Fields
|
||||
|
||||
[JsonPropertyName("game")]
|
||||
public string? Game { get; set; }
|
||||
|
||||
[JsonPropertyName("event")]
|
||||
public string? Name { get; set; }
|
||||
|
||||
// ReSharper disable once CollectionNeverQueried.Global
|
||||
[JsonPropertyName("data")]
|
||||
public Dictionary<string, object> Data { get; } = new();
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
public Event()
|
||||
{ }
|
||||
|
||||
public Event(Game game, string name)
|
||||
{
|
||||
#region Properties & Fields
|
||||
|
||||
[JsonPropertyName("game")]
|
||||
public string? Game { get; set; }
|
||||
|
||||
[JsonPropertyName("event")]
|
||||
public string? Name { get; set; }
|
||||
|
||||
// ReSharper disable once CollectionNeverQueried.Global
|
||||
[JsonPropertyName("data")]
|
||||
public Dictionary<string, object> Data { get; } = new();
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
public Event()
|
||||
{ }
|
||||
|
||||
public Event(Game game, string name)
|
||||
{
|
||||
this.Name = name;
|
||||
Game = game.Name;
|
||||
}
|
||||
|
||||
#endregion
|
||||
this.Name = name;
|
||||
Game = game.Name;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
@@ -1,30 +1,29 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace RGB.NET.Devices.SteelSeries.API.Model
|
||||
namespace RGB.NET.Devices.SteelSeries.API.Model;
|
||||
|
||||
internal class Game
|
||||
{
|
||||
internal class Game
|
||||
#region Properties & Fields
|
||||
|
||||
[JsonPropertyName("game")]
|
||||
public string? Name { get; set; }
|
||||
|
||||
[JsonPropertyName("game_display_name")]
|
||||
public string? DisplayName { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
public Game()
|
||||
{ }
|
||||
|
||||
public Game(string name, string displayName)
|
||||
{
|
||||
#region Properties & Fields
|
||||
|
||||
[JsonPropertyName("game")]
|
||||
public string? Name { get; set; }
|
||||
|
||||
[JsonPropertyName("game_display_name")]
|
||||
public string? DisplayName { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
public Game()
|
||||
{ }
|
||||
|
||||
public Game(string name, string displayName)
|
||||
{
|
||||
Name = name;
|
||||
DisplayName = displayName;
|
||||
}
|
||||
|
||||
#endregion
|
||||
Name = name;
|
||||
DisplayName = displayName;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
@@ -1,30 +1,29 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace RGB.NET.Devices.SteelSeries.API.Model
|
||||
namespace RGB.NET.Devices.SteelSeries.API.Model;
|
||||
|
||||
internal class GoLispHandler
|
||||
{
|
||||
internal class GoLispHandler
|
||||
#region Properties & Fields
|
||||
|
||||
[JsonPropertyName("game")]
|
||||
public string? Game { get; set; }
|
||||
|
||||
[JsonPropertyName("golisp")]
|
||||
public string? Handler { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
public GoLispHandler()
|
||||
{ }
|
||||
|
||||
public GoLispHandler(Game game, string handler)
|
||||
{
|
||||
#region Properties & Fields
|
||||
|
||||
[JsonPropertyName("game")]
|
||||
public string? Game { get; set; }
|
||||
|
||||
[JsonPropertyName("golisp")]
|
||||
public string? Handler { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
public GoLispHandler()
|
||||
{ }
|
||||
|
||||
public GoLispHandler(Game game, string handler)
|
||||
{
|
||||
this.Handler = handler;
|
||||
Game = game.Name;
|
||||
}
|
||||
|
||||
#endregion
|
||||
this.Handler = handler;
|
||||
Game = game.Name;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
Reference in new issue
Block a user