Try to use archived SteamDB page
This commit is contained in:
parent
cfb9be69f7
commit
dfd9f1a97b
3 changed files with 56 additions and 8 deletions
35
auto-creamapi/Utils/AvailabeArchive.cs
Normal file
35
auto-creamapi/Utils/AvailabeArchive.cs
Normal file
|
@ -0,0 +1,35 @@
|
|||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace auto_creamapi.Utils
|
||||
{
|
||||
|
||||
public class AvailableArchive
|
||||
{
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
|
||||
[JsonPropertyName("archived_snapshots")]
|
||||
public ArchivedSnapshot ArchivedSnapshots { get; set; }
|
||||
}
|
||||
|
||||
public class ArchivedSnapshot
|
||||
{
|
||||
[JsonPropertyName("closest")]
|
||||
public Closest Closest { get; set; }
|
||||
}
|
||||
|
||||
public class Closest
|
||||
{
|
||||
[JsonPropertyName("status")]
|
||||
public string Status { get; set; }
|
||||
|
||||
[JsonPropertyName("available")]
|
||||
public bool Available { get; set; }
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
|
||||
[JsonPropertyName("timestamp")]
|
||||
public string Timestamp { get; set; }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue