diff --git a/src/ElectronNET.API/API/Entities/JsonPropertyAttribute.cs b/src/ElectronNET.API/API/Entities/JsonPropertyAttribute.cs deleted file mode 100644 index 62dfbec..0000000 --- a/src/ElectronNET.API/API/Entities/JsonPropertyAttribute.cs +++ /dev/null @@ -1,8 +0,0 @@ -using System; - -namespace ElectronNET.API.Entities -{ - internal class JsonPropertyAttribute : Attribute - { - } -} \ No newline at end of file diff --git a/src/ElectronNET.API/API/Entities/NotificationOptions.cs b/src/ElectronNET.API/API/Entities/NotificationOptions.cs index 35c9c6c..3446d97 100644 --- a/src/ElectronNET.API/API/Entities/NotificationOptions.cs +++ b/src/ElectronNET.API/API/Entities/NotificationOptions.cs @@ -86,7 +86,7 @@ namespace ElectronNET.API.Entities /// /// The show identifier. /// - [JsonProperty] + [JsonPropertyName("showID")] internal string ShowID { get; set; } /// @@ -101,7 +101,7 @@ namespace ElectronNET.API.Entities /// /// The click identifier. /// - [JsonProperty] + [JsonPropertyName("clickID")] internal string ClickID { get; set; } /// @@ -118,7 +118,7 @@ namespace ElectronNET.API.Entities /// /// The close identifier. /// - [JsonProperty] + [JsonPropertyName("closeID")] internal string CloseID { get; set; } /// @@ -135,7 +135,7 @@ namespace ElectronNET.API.Entities /// /// The reply identifier. /// - [JsonProperty] + [JsonPropertyName("replyID")] internal string ReplyID { get; set; } /// @@ -150,7 +150,7 @@ namespace ElectronNET.API.Entities /// /// The action identifier. /// - [JsonProperty] + [JsonPropertyName("actionID")] internal string ActionID { get; set; } /// diff --git a/src/ElectronNET.API/API/Notification.cs b/src/ElectronNET.API/API/Notification.cs index 7d40508..f6a438f 100644 --- a/src/ElectronNET.API/API/Notification.cs +++ b/src/ElectronNET.API/API/Notification.cs @@ -104,7 +104,7 @@ namespace ElectronNET.API BridgeConnector.Socket.On("NotificationEventAction", (args) => { var arguments = JsonSerializer.Deserialize(args, Serialization.ElectronJson.Options); - _notificationOptions.Single(x => x.ReplyID == arguments[0]).OnAction(arguments[1]); + _notificationOptions.Single(x => x.ActionID == arguments[0]).OnAction(arguments[1]); }); }