File tree Expand file tree Collapse file tree 3 files changed +6
-14
lines changed
Expand file tree Collapse file tree 3 files changed +6
-14
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff 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>
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments