Skip to content

Commit d8b0d04

Browse files
committed
fix: removed useless attribute
1 parent 71ced8d commit d8b0d04

File tree

3 files changed

+6
-14
lines changed

3 files changed

+6
-14
lines changed

src/ElectronNET.API/API/Entities/JsonPropertyAttribute.cs

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/ElectronNET.API/API/Entities/NotificationOptions.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public class NotificationOptions
8686
/// <value>
8787
/// The show identifier.
8888
/// </value>
89-
[JsonProperty]
89+
[JsonPropertyName("showID")]
9090
internal string ShowID { get; set; }
9191

9292
/// <summary>
@@ -101,7 +101,7 @@ public class NotificationOptions
101101
/// <value>
102102
/// The click identifier.
103103
/// </value>
104-
[JsonProperty]
104+
[JsonPropertyName("clickID")]
105105
internal string ClickID { get; set; }
106106

107107
/// <summary>
@@ -118,7 +118,7 @@ public class NotificationOptions
118118
/// <value>
119119
/// The close identifier.
120120
/// </value>
121-
[JsonProperty]
121+
[JsonPropertyName("closeID")]
122122
internal string CloseID { get; set; }
123123

124124
/// <summary>
@@ -135,7 +135,7 @@ public class NotificationOptions
135135
/// <value>
136136
/// The reply identifier.
137137
/// </value>
138-
[JsonProperty]
138+
[JsonPropertyName("replyID")]
139139
internal string ReplyID { get; set; }
140140

141141
/// <summary>
@@ -150,7 +150,7 @@ public class NotificationOptions
150150
/// <value>
151151
/// The action identifier.
152152
/// </value>
153-
[JsonProperty]
153+
[JsonPropertyName("actionID")]
154154
internal string ActionID { get; set; }
155155

156156
/// <summary>

src/ElectronNET.API/API/Notification.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ private static void GenerateIDsForDefinedActions(NotificationOptions notificatio
104104
BridgeConnector.Socket.On<JsonElement>("NotificationEventAction", (args) =>
105105
{
106106
var arguments = JsonSerializer.Deserialize<string[]>(args, Serialization.ElectronJson.Options);
107-
_notificationOptions.Single(x => x.ReplyID == arguments[0]).OnAction(arguments[1]);
107+
_notificationOptions.Single(x => x.ActionID == arguments[0]).OnAction(arguments[1]);
108108
});
109109
}
110110

0 commit comments

Comments
 (0)