Init commit

This commit is contained in:
Jeddunk 2020-12-20 01:14:40 +01:00
commit 9e4f67f86a
26 changed files with 1785 additions and 0 deletions

36
POCOs/SteamAppPOCOs.cs Normal file
View file

@ -0,0 +1,36 @@
using System.Collections.Generic;
using System.Text.Json.Serialization;
namespace auto_creamapi.POCOs
{
public class App
{
[JsonPropertyName("appid")]
public int AppId { get; set; }
[JsonPropertyName("name")]
public string Name { get; set; }
public override string ToString()
{
return $"AppId: {AppId}, Name: {Name}";
}
public bool CompareId(App app)
{
return AppId.Equals(app.AppId);
}
}
public class Applist
{
[JsonPropertyName("apps")]
public List<App> Apps { get; set; }
}
public class SteamApps
{
[JsonPropertyName("applist")]
public Applist AppList { get; set; }
}
}