Added SteelSeries-Support

This commit is contained in:
DarthAffe committed 2019-02-23 11:15:49 +01:00
1 parent afbc25e1b2
commit 65a291500b
19 files changed
+1048

No files matched your search

@@ -0,0 +1,10 @@
using Newtonsoft.Json;
namespace RGB.NET.Devices.SteelSeries.API.Model
{
internal class CoreProps
{
[JsonProperty(PropertyName = "address")]
public string Address { get; set; }
}
}
@@ -0,0 +1,34 @@
using System.Collections.Generic;
using Newtonsoft.Json;
namespace RGB.NET.Devices.SteelSeries.API.Model
{
internal class Event
{
#region Properties & Fields
[JsonProperty("game")]
public string Game { get; set; }
[JsonProperty("event")]
public string Name { get; set; }
[JsonProperty("data")]
public Dictionary<string, object> Data { get; } = new Dictionary<string, object>();
#endregion
#region Constructors
public Event()
{ }
public Event(Game game, string name)
{
this.Name = name;
Game = game.Name;
}
#endregion
}
}
@@ -0,0 +1,30 @@
using Newtonsoft.Json;
namespace RGB.NET.Devices.SteelSeries.API.Model
{
internal class Game
{
#region Properties & Fields
[JsonProperty("game")]
public string Name { get; set; }
[JsonProperty("game_display_name")]
public string DisplayName { get; set; }
#endregion
#region Constructors
public Game()
{ }
public Game(string name, string displayName)
{
Name = name;
DisplayName = displayName;
}
#endregion
}
}
@@ -0,0 +1,30 @@
using Newtonsoft.Json;
namespace RGB.NET.Devices.SteelSeries.API.Model
{
internal class GoLispHandler
{
#region Properties & Fields
[JsonProperty("game")]
public string Game { get; set; }
[JsonProperty("golisp")]
public string Handler { get; set; }
#endregion
#region Constructors
public GoLispHandler()
{ }
public GoLispHandler(Game game, string handler)
{
this.Handler = handler;
Game = game.Name;
}
#endregion
}
}