2017-05-28 03:37:55 +00:00
|
|
|
|
// 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 03:28:25 +00:00
|
|
|
|
/// The different sizes of cover art for this beatmap set.
|
2017-05-28 03:37:55 +00:00
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(@"covers")]
|
2017-05-28 05:26:25 +00:00
|
|
|
|
public BeatmapSetOnlineCovers Covers { get; set; }
|
2017-05-28 03:37:55 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2017-07-11 03:28:25 +00:00
|
|
|
|
/// A small sample clip of this beatmap set's song.
|
2017-05-28 03:37:55 +00:00
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(@"previewUrl")]
|
|
|
|
|
public string Preview { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2017-07-11 03:28:25 +00:00
|
|
|
|
/// The amount of plays this beatmap set has.
|
2017-05-28 03:37:55 +00:00
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(@"play_count")]
|
|
|
|
|
public int PlayCount { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2017-07-11 03:28:25 +00:00
|
|
|
|
/// The amount of people who have favourited this beatmap set.
|
2017-05-28 03:37:55 +00:00
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(@"favourite_count")]
|
|
|
|
|
public int FavouriteCount { get; set; }
|
|
|
|
|
}
|
2017-05-28 05:26:25 +00:00
|
|
|
|
|
|
|
|
|
public class BeatmapSetOnlineCovers
|
|
|
|
|
{
|
2017-07-13 01:27:39 +00:00
|
|
|
|
public string CoverLowRes { get; set; }
|
2017-05-28 05:26:25 +00:00
|
|
|
|
|
|
|
|
|
[JsonProperty(@"cover@2x")]
|
2017-07-13 01:27:39 +00:00
|
|
|
|
public string Cover { get; set; }
|
2017-05-28 05:26:25 +00:00
|
|
|
|
|
2017-07-13 01:27:39 +00:00
|
|
|
|
public string CardLowRes { get; set; }
|
2017-05-28 05:26:25 +00:00
|
|
|
|
|
|
|
|
|
[JsonProperty(@"card@2x")]
|
2017-07-13 01:27:39 +00:00
|
|
|
|
public string Card { get; set; }
|
2017-05-28 05:26:25 +00:00
|
|
|
|
|
2017-07-13 01:27:39 +00:00
|
|
|
|
public string ListLowRes { get; set; }
|
2017-05-28 05:26:25 +00:00
|
|
|
|
|
|
|
|
|
[JsonProperty(@"list@2x")]
|
2017-07-13 01:27:39 +00:00
|
|
|
|
public string List { get; set; }
|
2017-05-28 05:26:25 +00:00
|
|
|
|
}
|
2017-05-28 03:37:55 +00:00
|
|
|
|
}
|