2018-01-05 20:21:19 +09:00
|
|
|
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
2017-05-28 00:37:55 -03:00
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
2017-09-08 19:17:39 -03:00
|
|
|
|
using System;
|
2017-11-15 13:26:02 +09:00
|
|
|
|
using Newtonsoft.Json;
|
2017-05-28 00:37:55 -03:00
|
|
|
|
|
2017-07-26 13:22:46 +09:00
|
|
|
|
namespace osu.Game.Beatmaps
|
2017-05-28 00:37:55 -03:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Beatmap set info retrieved for previewing locally without having the set downloaded.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class BeatmapSetOnlineInfo
|
|
|
|
|
{
|
2017-09-08 19:17:39 -03:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The date this beatmap set was submitted to the online listing.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DateTimeOffset Submitted { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The date this beatmap set was ranked.
|
|
|
|
|
/// </summary>
|
2017-09-12 23:41:10 -03:00
|
|
|
|
public DateTimeOffset? Ranked { get; set; }
|
2017-09-08 19:17:39 -03:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The date this beatmap set was last updated.
|
|
|
|
|
/// </summary>
|
2017-09-12 23:41:10 -03:00
|
|
|
|
public DateTimeOffset? LastUpdated { get; set; }
|
2017-11-10 03:06:21 +03:00
|
|
|
|
|
2017-11-10 03:01:11 +03:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Whether or not this beatmap set has a background video.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool HasVideo { get; set; }
|
2017-09-08 19:17:39 -03:00
|
|
|
|
|
2017-05-28 00:37:55 -03:00
|
|
|
|
/// <summary>
|
2017-07-11 00:28:25 -03:00
|
|
|
|
/// The different sizes of cover art for this beatmap set.
|
2017-05-28 00:37:55 -03:00
|
|
|
|
/// </summary>
|
2017-05-28 02:26:25 -03:00
|
|
|
|
public BeatmapSetOnlineCovers Covers { get; set; }
|
2017-05-28 00:37:55 -03:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2017-07-11 00:28:25 -03:00
|
|
|
|
/// A small sample clip of this beatmap set's song.
|
2017-05-28 00:37:55 -03:00
|
|
|
|
/// </summary>
|
|
|
|
|
public string Preview { get; set; }
|
2017-09-11 02:48:48 -03:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The beats per minute of this beatmap set's song.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public double BPM { get; set; }
|
|
|
|
|
|
2017-05-28 00:37:55 -03:00
|
|
|
|
/// <summary>
|
2017-07-11 00:28:25 -03:00
|
|
|
|
/// The amount of plays this beatmap set has.
|
2017-05-28 00:37:55 -03:00
|
|
|
|
/// </summary>
|
|
|
|
|
public int PlayCount { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2017-07-11 00:28:25 -03:00
|
|
|
|
/// The amount of people who have favourited this beatmap set.
|
2017-05-28 00:37:55 -03:00
|
|
|
|
/// </summary>
|
|
|
|
|
public int FavouriteCount { get; set; }
|
|
|
|
|
}
|
2017-05-28 02:26:25 -03:00
|
|
|
|
|
|
|
|
|
public class BeatmapSetOnlineCovers
|
|
|
|
|
{
|
2017-07-13 10:27:39 +09:00
|
|
|
|
public string CoverLowRes { get; set; }
|
2017-05-28 02:26:25 -03:00
|
|
|
|
|
2017-11-15 13:26:02 +09:00
|
|
|
|
[JsonProperty(@"cover@2x")]
|
2017-07-13 10:27:39 +09:00
|
|
|
|
public string Cover { get; set; }
|
2017-05-28 02:26:25 -03:00
|
|
|
|
|
2017-07-13 10:27:39 +09:00
|
|
|
|
public string CardLowRes { get; set; }
|
2017-05-28 02:26:25 -03:00
|
|
|
|
|
2017-11-15 13:26:02 +09:00
|
|
|
|
[JsonProperty(@"card@2x")]
|
2017-07-13 10:27:39 +09:00
|
|
|
|
public string Card { get; set; }
|
2017-05-28 02:26:25 -03:00
|
|
|
|
|
2017-07-13 10:27:39 +09:00
|
|
|
|
public string ListLowRes { get; set; }
|
2017-05-28 02:26:25 -03:00
|
|
|
|
|
2017-11-15 13:26:02 +09:00
|
|
|
|
[JsonProperty(@"list@2x")]
|
2017-07-13 10:27:39 +09:00
|
|
|
|
public string List { get; set; }
|
2017-05-28 02:26:25 -03:00
|
|
|
|
}
|
2017-05-28 00:37:55 -03:00
|
|
|
|
}
|