mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2026-11-11 04:57:15 +00:00
Changed Json-Serializer to .NET Default
This commit is contained in:
1 parent
fdb5022197
commit
42456ad7bd
6 files changed
+24
-21
No files matched your search
@@ -1,10 +1,10 @@
|
||||
using Newtonsoft.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace RGB.NET.Devices.SteelSeries.API.Model
|
||||
{
|
||||
internal class CoreProps
|
||||
{
|
||||
[JsonProperty(PropertyName = "address")]
|
||||
[JsonPropertyName("address")]
|
||||
public string Address { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using Newtonsoft.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace RGB.NET.Devices.SteelSeries.API.Model
|
||||
{
|
||||
@@ -7,13 +7,13 @@ namespace RGB.NET.Devices.SteelSeries.API.Model
|
||||
{
|
||||
#region Properties & Fields
|
||||
|
||||
[JsonProperty("game")]
|
||||
[JsonPropertyName("game")]
|
||||
public string Game { get; set; }
|
||||
|
||||
[JsonProperty("event")]
|
||||
[JsonPropertyName("event")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[JsonProperty("data")]
|
||||
[JsonPropertyName("data")]
|
||||
public Dictionary<string, object> Data { get; } = new Dictionary<string, object>();
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Newtonsoft.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace RGB.NET.Devices.SteelSeries.API.Model
|
||||
{
|
||||
@@ -6,10 +6,10 @@ namespace RGB.NET.Devices.SteelSeries.API.Model
|
||||
{
|
||||
#region Properties & Fields
|
||||
|
||||
[JsonProperty("game")]
|
||||
[JsonPropertyName("game")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[JsonProperty("game_display_name")]
|
||||
[JsonPropertyName("game_display_name")]
|
||||
public string DisplayName { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Newtonsoft.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace RGB.NET.Devices.SteelSeries.API.Model
|
||||
{
|
||||
@@ -6,10 +6,10 @@ namespace RGB.NET.Devices.SteelSeries.API.Model
|
||||
{
|
||||
#region Properties & Fields
|
||||
|
||||
[JsonProperty("game")]
|
||||
[JsonPropertyName("game")]
|
||||
public string Game { get; set; }
|
||||
|
||||
[JsonProperty("golisp")]
|
||||
[JsonPropertyName("golisp")]
|
||||
public string Handler { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
Reference in new issue
Block a user