2020-12-19 19:14:40 -05:00
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
|
|
|
namespace auto_creamapi.POCOs
|
|
|
|
{
|
2020-12-23 06:34:31 -05:00
|
|
|
public class SteamApp
|
2020-12-19 19:14:40 -05:00
|
|
|
{
|
|
|
|
[JsonPropertyName("appid")]
|
|
|
|
public int AppId { get; set; }
|
|
|
|
|
|
|
|
[JsonPropertyName("name")]
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
{
|
|
|
|
return $"AppId: {AppId}, Name: {Name}";
|
|
|
|
}
|
|
|
|
|
2020-12-23 06:34:31 -05:00
|
|
|
public bool CompareId(SteamApp steamApp)
|
2020-12-19 19:14:40 -05:00
|
|
|
{
|
2020-12-23 06:34:31 -05:00
|
|
|
return AppId.Equals(steamApp.AppId);
|
2020-12-19 19:14:40 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-12-23 06:34:31 -05:00
|
|
|
public class AppList
|
2020-12-19 19:14:40 -05:00
|
|
|
{
|
|
|
|
[JsonPropertyName("apps")]
|
2020-12-23 06:34:31 -05:00
|
|
|
public List<SteamApp> Apps { get; set; }
|
2020-12-19 19:14:40 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
public class SteamApps
|
|
|
|
{
|
|
|
|
[JsonPropertyName("applist")]
|
2020-12-23 06:34:31 -05:00
|
|
|
public AppList AppList { get; set; }
|
2020-12-19 19:14:40 -05:00
|
|
|
}
|
|
|
|
}
|