1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 22:07:25 +08:00
osu-lazer/osu.Game/Database/BeatmapSetOnlineInfo.cs

56 lines
1.6 KiB
C#
Raw Normal View History

// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using Newtonsoft.Json;
namespace osu.Game.Database
{
/// <summary>
/// Beatmap set info retrieved for previewing locally without having the set downloaded.
/// </summary>
public class BeatmapSetOnlineInfo
{
/// <summary>
2017-07-11 11:28:25 +08:00
/// The different sizes of cover art for this beatmap set.
/// </summary>
[JsonProperty(@"covers")]
public BeatmapSetOnlineCovers Covers { get; set; }
/// <summary>
2017-07-11 11:28:25 +08:00
/// A small sample clip of this beatmap set's song.
/// </summary>
[JsonProperty(@"previewUrl")]
public string Preview { get; set; }
/// <summary>
2017-07-11 11:28:25 +08:00
/// The amount of plays this beatmap set has.
/// </summary>
[JsonProperty(@"play_count")]
public int PlayCount { get; set; }
/// <summary>
2017-07-11 11:28:25 +08:00
/// The amount of people who have favourited this beatmap set.
/// </summary>
[JsonProperty(@"favourite_count")]
public int FavouriteCount { get; set; }
}
public class BeatmapSetOnlineCovers
{
public string Cover { get; set; }
[JsonProperty(@"cover@2x")]
2017-07-11 12:42:51 +08:00
public string Cover2X { get; set; }
public string Card { get; set; }
[JsonProperty(@"card@2x")]
2017-07-11 12:42:51 +08:00
public string Card2X { get; set; }
public string List { get; set; }
[JsonProperty(@"list@2x")]
2017-07-11 12:42:51 +08:00
public string List2X { get; set; }
}
}