-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathWinGetData.cs
39 lines (34 loc) · 977 Bytes
/
WinGetData.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
38
39
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BackUpDesktop
{
// Root myDeserializedClass = JsonConvert.DeserializeObject<Root>(myJsonResponse);
public class Package
{
public string PackageIdentifier { get; set; }
}
public class Root
{
[JsonProperty("$schema")]
public string Schema { get; set; }
public DateTime CreationDate { get; set; }
public List<Source> Sources { get; set; }
public string WinGetVersion { get; set; }
}
public class Source
{
public List<Package> Packages { get; set; }
public SourceDetails SourceDetails { get; set; }
}
public class SourceDetails
{
public string Argument { get; set; }
public string Identifier { get; set; }
public string Name { get; set; }
public string Type { get; set; }
}
}