mirror of
https://github.com/ppy/osu.git
synced 2025-03-05 14:22:55 +08:00
Fix OnlineBeatmapSetID not being correctly populated
This commit is contained in:
parent
5cd04392b4
commit
2d0f4d3859
@ -17,6 +17,7 @@ namespace osu.Game.Beatmaps
|
|||||||
private int? onlineBeatmapSetID;
|
private int? onlineBeatmapSetID;
|
||||||
|
|
||||||
[NotMapped]
|
[NotMapped]
|
||||||
|
[JsonProperty(@"id")]
|
||||||
public int? OnlineBeatmapSetID
|
public int? OnlineBeatmapSetID
|
||||||
{
|
{
|
||||||
get { return onlineBeatmapSetID; }
|
get { return onlineBeatmapSetID; }
|
||||||
|
@ -9,7 +9,7 @@ using osu.Game.Rulesets;
|
|||||||
|
|
||||||
namespace osu.Game.Online.API.Requests
|
namespace osu.Game.Online.API.Requests
|
||||||
{
|
{
|
||||||
public class GetBeatmapSetsResponse : BeatmapMetadata
|
public class GetBeatmapSetsResponse : BeatmapMetadata // todo: this is a bit wrong...
|
||||||
{
|
{
|
||||||
[JsonProperty(@"covers")]
|
[JsonProperty(@"covers")]
|
||||||
private BeatmapSetOnlineCovers covers { get; set; }
|
private BeatmapSetOnlineCovers covers { get; set; }
|
||||||
@ -23,9 +23,6 @@ namespace osu.Game.Online.API.Requests
|
|||||||
[JsonProperty(@"favourite_count")]
|
[JsonProperty(@"favourite_count")]
|
||||||
private int favouriteCount { get; set; }
|
private int favouriteCount { get; set; }
|
||||||
|
|
||||||
[JsonProperty(@"id")]
|
|
||||||
private int onlineId { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty(@"user_id")]
|
[JsonProperty(@"user_id")]
|
||||||
private long creatorId {
|
private long creatorId {
|
||||||
set { Author.Id = value; }
|
set { Author.Id = value; }
|
||||||
@ -38,7 +35,7 @@ namespace osu.Game.Online.API.Requests
|
|||||||
{
|
{
|
||||||
return new BeatmapSetInfo
|
return new BeatmapSetInfo
|
||||||
{
|
{
|
||||||
OnlineBeatmapSetID = onlineId,
|
OnlineBeatmapSetID = OnlineBeatmapSetID,
|
||||||
Metadata = this,
|
Metadata = this,
|
||||||
OnlineInfo = new BeatmapSetOnlineInfo
|
OnlineInfo = new BeatmapSetOnlineInfo
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user