diff options
Diffstat (limited to 'OsuFederatedBeatmapApi/UtilityClasses')
-rw-r--r-- | OsuFederatedBeatmapApi/UtilityClasses/OsuDirectApiResponses.cs | 107 |
1 files changed, 107 insertions, 0 deletions
diff --git a/OsuFederatedBeatmapApi/UtilityClasses/OsuDirectApiResponses.cs b/OsuFederatedBeatmapApi/UtilityClasses/OsuDirectApiResponses.cs new file mode 100644 index 0000000..b7b67b1 --- /dev/null +++ b/OsuFederatedBeatmapApi/UtilityClasses/OsuDirectApiResponses.cs @@ -0,0 +1,107 @@ +using System.Text.Json.Serialization; + +namespace OsuFederatedBeatmapApi.UtilityClasses; + +public class OsuDirectApiResponses { + public class ChildrenBeatmap + { + [JsonPropertyName("ParentSetID")] + public int ParentSetID { get; set; } + + [JsonPropertyName("BeatmapID")] + public int BeatmapID { get; set; } + + [JsonPropertyName("TotalLength")] + public int TotalLength { get; set; } + + [JsonPropertyName("HitLength")] + public int HitLength { get; set; } + + [JsonPropertyName("DiffName")] + public string DiffName { get; set; } + + [JsonPropertyName("FileMD5")] + public string FileMD5 { get; set; } + + [JsonPropertyName("CS")] + public int CS { get; set; } + + [JsonPropertyName("AR")] + public int AR { get; set; } + + [JsonPropertyName("HP")] + public int HP { get; set; } + + [JsonPropertyName("OD")] + public int OD { get; set; } + + [JsonPropertyName("Mode")] + public int Mode { get; set; } + + [JsonPropertyName("BPM")] + public int BPM { get; set; } + + [JsonPropertyName("Playcount")] + public int Playcount { get; set; } + + [JsonPropertyName("Passcount")] + public int Passcount { get; set; } + + [JsonPropertyName("MaxCombo")] + public int MaxCombo { get; set; } + + [JsonPropertyName("DifficultyRating")] + public double DifficultyRating { get; set; } + } + + public class BeatmapSet + { + [JsonPropertyName("SetID")] + public int SetID { get; set; } + + [JsonPropertyName("Title")] + public string Title { get; set; } + + [JsonPropertyName("Artist")] + public string Artist { get; set; } + + [JsonPropertyName("Creator")] + public string Creator { get; set; } + + [JsonPropertyName("Source")] + public string Source { get; set; } + + [JsonPropertyName("Tags")] + public string Tags { get; set; } + + [JsonPropertyName("RankedStatus")] + public int RankedStatus { get; set; } + + [JsonPropertyName("Genre")] + public int Genre { get; set; } + + [JsonPropertyName("Language")] + public int Language { get; set; } + + [JsonPropertyName("Favourites")] + public int Favourites { get; set; } + + [JsonPropertyName("HasVideo")] + public int HasVideo { get; set; } + + [JsonPropertyName("SubmittedDate")] + public DateTime SubmittedDate { get; set; } + + [JsonPropertyName("ApprovedDate")] + public DateTime ApprovedDate { get; set; } + + [JsonPropertyName("LastUpdate")] + public DateTime LastUpdate { get; set; } + + [JsonPropertyName("LastChecked")] + public DateTime LastChecked { get; set; } + + [JsonPropertyName("ChildrenBeatmaps")] + public List<ChildrenBeatmap> ChildrenBeatmaps { get; set; } + } +} |