Skip to content

Commit 7ae9849

Browse files
committed
Updated data model with additional properties
1 parent f0893a3 commit 7ae9849

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

blazor/blazor-wasm-basic-example/Models/TalkJsModels/User.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@ public class User
44
{
55
public long Id { get; set; }
66
public string Name { get; set; }
7-
public string Email { get; set; }
7+
public string[] Email { get; set; }
8+
public string[] Phone { get; set; }
89
public string PhotoUrl { get; set; }
10+
public string Locale { get; set; }
911
public string WelcomeMessage { get; set; }
12+
public string Role { get; set; }
13+
public Dictionary<string, string> Custom { get; set; }
1014
}
1115
}

blazor/blazor-wasm-basic-example/Pages/Index.razor

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
{
2828
Id = 123456,
2929
Name = "Alice",
30-
Email = "[email protected]",
30+
Email = new string[] { "[email protected]" } ,
3131
PhotoUrl = "https://talkjs.com/images/avatar-1.jpg",
3232
WelcomeMessage = "Hey there! How are you? :-)",
3333
};
@@ -38,7 +38,7 @@
3838

3939
Id = 654321,
4040
Name = "Sebastian",
41-
Email = "[email protected]",
41+
Email = new string[] { "[email protected]" },
4242
PhotoUrl = "https://talkjs.com/images/avatar-5.jpg",
4343
WelcomeMessage = "Hey, how can I help?",
4444
});
@@ -47,7 +47,7 @@
4747

4848
Id = 754321,
4949
Name = "Michael",
50-
Email = "[email protected]",
50+
Email = new string[] { "[email protected]" },
5151
PhotoUrl = "https://talkjs.com/images/avatar-2.jpg",
5252
WelcomeMessage = "Hola!",
5353
});

0 commit comments

Comments
 (0)