File tree Expand file tree Collapse file tree 3 files changed +237
-216
lines changed
Blazor.Extensions.SignalR.Test.Client
Blazor.Extensions.SignalR.Test.Server/Hubs Expand file tree Collapse file tree 3 files changed +237
-216
lines changed Original file line number Diff line number Diff line change 1
- using System ;
2
-
3
- namespace Blazor . Extensions . SignalR . Test . Client
4
- {
5
- public class DemoData
6
- {
7
- public long Id { get ; set ; }
8
- public string Data { get ; set ; }
9
- public decimal DecimalData { get ; set ; }
10
- public DateTime DateTime { get ; set ; }
11
- public bool Bool { get ; set ; }
12
- }
13
- }
1
+ using System ;
2
+ using System . Text . Json . Serialization ;
3
+
4
+ namespace Blazor . Extensions . SignalR . Test . Client
5
+ {
6
+ public class DemoData
7
+ {
8
+ [ JsonPropertyName ( "id" ) ]
9
+ public long Id { get ; set ; }
10
+
11
+ [ JsonPropertyName ( "data" ) ]
12
+ public string Data { get ; set ; }
13
+
14
+ [ JsonPropertyName ( "decimalData" ) ]
15
+ public decimal DecimalData { get ; set ; }
16
+
17
+ [ JsonPropertyName ( "dateTime" ) ]
18
+ public DateTime DateTime { get ; set ; }
19
+
20
+ [ JsonPropertyName ( "bool" ) ]
21
+ public bool Bool { get ; set ; }
22
+ }
23
+ }
You can’t perform that action at this time.
0 commit comments