mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-13 21:24:00 +00:00
fix: removed useless attribute
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
using System;
|
||||
|
||||
namespace ElectronNET.API.Entities
|
||||
{
|
||||
internal class JsonPropertyAttribute : Attribute
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -86,7 +86,7 @@ namespace ElectronNET.API.Entities
|
||||
/// <value>
|
||||
/// The show identifier.
|
||||
/// </value>
|
||||
[JsonProperty]
|
||||
[JsonPropertyName("showID")]
|
||||
internal string ShowID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -101,7 +101,7 @@ namespace ElectronNET.API.Entities
|
||||
/// <value>
|
||||
/// The click identifier.
|
||||
/// </value>
|
||||
[JsonProperty]
|
||||
[JsonPropertyName("clickID")]
|
||||
internal string ClickID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -118,7 +118,7 @@ namespace ElectronNET.API.Entities
|
||||
/// <value>
|
||||
/// The close identifier.
|
||||
/// </value>
|
||||
[JsonProperty]
|
||||
[JsonPropertyName("closeID")]
|
||||
internal string CloseID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -135,7 +135,7 @@ namespace ElectronNET.API.Entities
|
||||
/// <value>
|
||||
/// The reply identifier.
|
||||
/// </value>
|
||||
[JsonProperty]
|
||||
[JsonPropertyName("replyID")]
|
||||
internal string ReplyID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -150,7 +150,7 @@ namespace ElectronNET.API.Entities
|
||||
/// <value>
|
||||
/// The action identifier.
|
||||
/// </value>
|
||||
[JsonProperty]
|
||||
[JsonPropertyName("actionID")]
|
||||
internal string ActionID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -104,7 +104,7 @@ namespace ElectronNET.API
|
||||
BridgeConnector.Socket.On<JsonElement>("NotificationEventAction", (args) =>
|
||||
{
|
||||
var arguments = JsonSerializer.Deserialize<string[]>(args, Serialization.ElectronJson.Options);
|
||||
_notificationOptions.Single(x => x.ReplyID == arguments[0]).OnAction(arguments[1]);
|
||||
_notificationOptions.Single(x => x.ActionID == arguments[0]).OnAction(arguments[1]);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user