about summary refs log tree commit diff
path: root/OsuFederatedBeatmapApi/UtilityClasses/OsuDirectApiResponses.cs
diff options
context:
space:
mode:
authorEmma [it/its]@Rory& <root@rory.gay>2023-10-14 23:19:46 +0200
committerEmma [it/its]@Rory& <root@rory.gay>2023-10-14 23:19:46 +0200
commit73461bd79f923caa44740f170213a4abb4743660 (patch)
tree89cbb7403b4bf3f86a505d70a8f255b6463a2c3f /OsuFederatedBeatmapApi/UtilityClasses/OsuDirectApiResponses.cs
parentMaybe fix libmatrix bug with room creation (diff)
downloadOsuFederatedBeatmapApi-73461bd79f923caa44740f170213a4abb4743660.tar.xz
Stuff works HEAD master
Diffstat (limited to 'OsuFederatedBeatmapApi/UtilityClasses/OsuDirectApiResponses.cs')
-rw-r--r--OsuFederatedBeatmapApi/UtilityClasses/OsuDirectApiResponses.cs107
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; }
+    }
+}