1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-25 04:12:53 +08:00
osu-lazer/osu.Game/Beatmaps/BeatmapSetOnlineInfo.cs

78 lines
2.3 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 System;
using Newtonsoft.Json;
2017-07-26 12:22:46 +08:00
namespace osu.Game.Beatmaps
{
/// <summary>
/// Beatmap set info retrieved for previewing locally without having the set downloaded.
/// </summary>
public class BeatmapSetOnlineInfo
{
/// <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-13 10:41:10 +08:00
public DateTimeOffset? Ranked { get; set; }
/// <summary>
/// The date this beatmap set was last updated.
/// </summary>
2017-09-13 10:41:10 +08:00
public DateTimeOffset? LastUpdated { get; set; }
2017-11-10 08:06:21 +08:00
2017-11-10 08:01:11 +08:00
/// <summary>
/// Whether or not this beatmap set has a background video.
/// </summary>
public bool HasVideo { get; set; }
/// <summary>
2017-07-11 11:28:25 +08:00
/// The different sizes of cover art for this beatmap set.
/// </summary>
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>
public string Preview { get; set; }
2017-09-11 13:48:48 +08:00
/// <summary>
/// The beats per minute of this beatmap set's song.
/// </summary>
public double BPM { get; set; }
/// <summary>
2017-07-11 11:28:25 +08:00
/// The amount of plays this beatmap set has.
/// </summary>
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>
public int FavouriteCount { get; set; }
}
public class BeatmapSetOnlineCovers
{
2017-07-13 09:27:39 +08:00
public string CoverLowRes { get; set; }
[JsonProperty(@"cover@2x")]
2017-07-13 09:27:39 +08:00
public string Cover { get; set; }
2017-07-13 09:27:39 +08:00
public string CardLowRes { get; set; }
[JsonProperty(@"card@2x")]
2017-07-13 09:27:39 +08:00
public string Card { get; set; }
2017-07-13 09:27:39 +08:00
public string ListLowRes { get; set; }
[JsonProperty(@"list@2x")]
2017-07-13 09:27:39 +08:00
public string List { get; set; }
}
}