about summary refs log tree commit diff
path: root/OsuFederatedBeatmapApi/UtilityClasses/OsuDirectApiResponses.cs
blob: b7b67b1f10c703dc822f627901c71b96c203cdd2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
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; }
    }
}