Fix incorrect return type for spotlight request

This commit is contained in:
Andrei Zavatski
2020-01-10 16:28:52 +03:00
parent f65f030e79
commit 08fb68ddfe

View File

@ -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;
}
} }