Skip to content

Commit

Permalink
Fix samples.
Browse files Browse the repository at this point in the history
Fixes: #53
Fixes: #54
  • Loading branch information
galvesribeiro committed Oct 31, 2019
1 parent c7d0637 commit 5ce8685
Show file tree
Hide file tree
Showing 3 changed files with 237 additions and 216 deletions.
36 changes: 23 additions & 13 deletions test/Blazor.Extensions.SignalR.Test.Client/DemoData.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
using System;

namespace Blazor.Extensions.SignalR.Test.Client
{
public class DemoData
{
public long Id { get; set; }
public string Data { get; set; }
public decimal DecimalData { get; set; }
public DateTime DateTime { get; set; }
public bool Bool { get; set; }
}
}
using System;
using System.Text.Json.Serialization;

namespace Blazor.Extensions.SignalR.Test.Client
{
public class DemoData
{
[JsonPropertyName("id")]
public long Id { get; set; }

[JsonPropertyName("data")]
public string Data { get; set; }

[JsonPropertyName("decimalData")]
public decimal DecimalData { get; set; }

[JsonPropertyName("dateTime")]
public DateTime DateTime { get; set; }

[JsonPropertyName("bool")]
public bool Bool { get; set; }
}
}
Loading

0 comments on commit 5ce8685

Please sign in to comment.