mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 19:55:45 +08:00
Split out individual pieces into own files
This commit is contained in:
parent
32d01f022f
commit
b73bd54ab2
16
osu.Game/Beatmaps/BeatmapSetOnlineAvailability.cs
Normal file
16
osu.Game/Beatmaps/BeatmapSetOnlineAvailability.cs
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||||
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace osu.Game.Beatmaps
|
||||||
|
{
|
||||||
|
public class BeatmapSetOnlineAvailability
|
||||||
|
{
|
||||||
|
[JsonProperty(@"download_disabled")]
|
||||||
|
public bool DownloadDisabled { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty(@"more_information")]
|
||||||
|
public string ExternalLink { get; set; }
|
||||||
|
}
|
||||||
|
}
|
25
osu.Game/Beatmaps/BeatmapSetOnlineCovers.cs
Normal file
25
osu.Game/Beatmaps/BeatmapSetOnlineCovers.cs
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||||
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace osu.Game.Beatmaps
|
||||||
|
{
|
||||||
|
public class BeatmapSetOnlineCovers
|
||||||
|
{
|
||||||
|
public string CoverLowRes { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty(@"cover@2x")]
|
||||||
|
public string Cover { get; set; }
|
||||||
|
|
||||||
|
public string CardLowRes { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty(@"card@2x")]
|
||||||
|
public string Card { get; set; }
|
||||||
|
|
||||||
|
public string ListLowRes { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty(@"list@2x")]
|
||||||
|
public string List { get; set; }
|
||||||
|
}
|
||||||
|
}
|
11
osu.Game/Beatmaps/BeatmapSetOnlineGenre.cs
Normal file
11
osu.Game/Beatmaps/BeatmapSetOnlineGenre.cs
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||||
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
|
namespace osu.Game.Beatmaps
|
||||||
|
{
|
||||||
|
public class BeatmapSetOnlineGenre
|
||||||
|
{
|
||||||
|
public int Id { get; set; }
|
||||||
|
public string Name { get; set; }
|
||||||
|
}
|
||||||
|
}
|
11
osu.Game/Beatmaps/BeatmapSetOnlineLanguage.cs
Normal file
11
osu.Game/Beatmaps/BeatmapSetOnlineLanguage.cs
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||||
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
|
namespace osu.Game.Beatmaps
|
||||||
|
{
|
||||||
|
public class BeatmapSetOnlineLanguage
|
||||||
|
{
|
||||||
|
public int Id { get; set; }
|
||||||
|
public string Name { get; set; }
|
||||||
|
}
|
||||||
|
}
|
@ -1,8 +1,4 @@
|
|||||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
||||||
// See the LICENCE file in the repository root for full licence text.
|
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using Newtonsoft.Json;
|
|
||||||
|
|
||||||
namespace osu.Game.Beatmaps
|
namespace osu.Game.Beatmaps
|
||||||
{
|
{
|
||||||
@ -97,43 +93,4 @@ namespace osu.Game.Beatmaps
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public int? TrackId { get; set; }
|
public int? TrackId { get; set; }
|
||||||
}
|
}
|
||||||
|
}
|
||||||
public class BeatmapSetOnlineGenre
|
|
||||||
{
|
|
||||||
public int Id { get; set; }
|
|
||||||
public string Name { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class BeatmapSetOnlineLanguage
|
|
||||||
{
|
|
||||||
public int Id { get; set; }
|
|
||||||
public string Name { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class BeatmapSetOnlineCovers
|
|
||||||
{
|
|
||||||
public string CoverLowRes { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty(@"cover@2x")]
|
|
||||||
public string Cover { get; set; }
|
|
||||||
|
|
||||||
public string CardLowRes { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty(@"card@2x")]
|
|
||||||
public string Card { get; set; }
|
|
||||||
|
|
||||||
public string ListLowRes { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty(@"list@2x")]
|
|
||||||
public string List { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class BeatmapSetOnlineAvailability
|
|
||||||
{
|
|
||||||
[JsonProperty(@"download_disabled")]
|
|
||||||
public bool DownloadDisabled { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty(@"more_information")]
|
|
||||||
public string ExternalLink { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user