-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathData.cs
37 lines (34 loc) · 1.03 KB
/
Data.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using System;
using System.Text.Json.Serialization;
namespace GridDatafromFireBase.Model
{
public class DataSet
{
[JsonPropertyName("DataSet")] public Employees Employees { get; set; }
}
public class Employees
{
[JsonPropertyName("Employees")] public Employee Employee { get; set; }
}
public class Employee
{
public string City { get; set; }
public string CountryRegionName { get; set; }
public string JobTitle { get; set; }
public string FirstName { get; set; }
public DateTime HireDate { get; set; }
public string Phone { get; set; }
public string LastName { get; set; }
public string GroupName { get; set; }
public string Photo { get; set; }
public ImageSource Image
{
get
{
byte[] bytes = Convert.FromBase64String(Photo);
MemoryStream ms = new MemoryStream(bytes);
return ImageSource.FromStream(() => ms);
}
}
}
}