mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
Fix incorrect return type for spotlight request
This commit is contained in:
@ -2,12 +2,19 @@
|
|||||||
// See the LICENCE file in the repository root for full licence text.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using Newtonsoft.Json;
|
||||||
using osu.Game.Online.API.Requests.Responses;
|
using osu.Game.Online.API.Requests.Responses;
|
||||||
|
|
||||||
namespace osu.Game.Online.API.Requests
|
namespace osu.Game.Online.API.Requests
|
||||||
{
|
{
|
||||||
public class GetSpotlightsRequest : APIRequest<List<APISpotlight>>
|
public class GetSpotlightsRequest : APIRequest<SpotlightsArray>
|
||||||
{
|
{
|
||||||
protected override string Target => "spotlights";
|
protected override string Target => "spotlights";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public class SpotlightsArray
|
||||||
|
{
|
||||||
|
[JsonProperty("spotlights")]
|
||||||
|
public List<APISpotlight> Spotlights;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user