mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 15:44:04 +09:00
Populate author using existing data for now
This commit is contained in:
@ -8,6 +8,7 @@ using osu.Game.Beatmaps;
|
|||||||
using osu.Game.Overlays;
|
using osu.Game.Overlays;
|
||||||
using osu.Game.Overlays.Direct;
|
using osu.Game.Overlays.Direct;
|
||||||
using osu.Game.Rulesets;
|
using osu.Game.Rulesets;
|
||||||
|
using osu.Game.Users;
|
||||||
|
|
||||||
namespace osu.Game.Online.API.Requests
|
namespace osu.Game.Online.API.Requests
|
||||||
{
|
{
|
||||||
@ -49,6 +50,12 @@ namespace osu.Game.Online.API.Requests
|
|||||||
[JsonProperty(@"id")]
|
[JsonProperty(@"id")]
|
||||||
private int onlineId { get; set; }
|
private int onlineId { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty(@"creator")]
|
||||||
|
private string creatorUsername;
|
||||||
|
|
||||||
|
[JsonProperty(@"user_id")]
|
||||||
|
private long creatorId = 1;
|
||||||
|
|
||||||
[JsonProperty(@"beatmaps")]
|
[JsonProperty(@"beatmaps")]
|
||||||
private IEnumerable<GetBeatmapSetsBeatmapResponse> beatmaps { get; set; }
|
private IEnumerable<GetBeatmapSetsBeatmapResponse> beatmaps { get; set; }
|
||||||
|
|
||||||
@ -60,6 +67,11 @@ namespace osu.Game.Online.API.Requests
|
|||||||
Metadata = this,
|
Metadata = this,
|
||||||
OnlineInfo = new BeatmapSetOnlineInfo
|
OnlineInfo = new BeatmapSetOnlineInfo
|
||||||
{
|
{
|
||||||
|
Author = new User
|
||||||
|
{
|
||||||
|
Id = creatorId,
|
||||||
|
Username = creatorUsername,
|
||||||
|
},
|
||||||
Covers = covers,
|
Covers = covers,
|
||||||
Preview = preview,
|
Preview = preview,
|
||||||
PlayCount = playCount,
|
PlayCount = playCount,
|
||||||
|
Reference in New Issue
Block a user