1
0
mirror of https://github.com/DarthAffe/RGB.NET.git synced 2025-12-12 17:48:31 +00:00

34 lines
672 B
C#

using System.Collections.Generic;
using System.Text.Json.Serialization;
namespace RGB.NET.Devices.SteelSeries.API.Model;
internal sealed 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; } = [];
#endregion
#region Constructors
public Event()
{ }
public Event(Game game, string name)
{
this.Name = name;
Game = game.Name;
}
#endregion
}