mirror of
https://github.com/ppy/osu.git
synced 2025-02-06 21:02:59 +08:00
Add GetSeasonalBackgroundsRequest
This commit is contained in:
parent
cdb2d23578
commit
09d49aa0f7
@ -0,0 +1,12 @@
|
|||||||
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||||
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
|
using osu.Game.Online.API.Requests.Responses;
|
||||||
|
|
||||||
|
namespace osu.Game.Online.API.Requests
|
||||||
|
{
|
||||||
|
public class GetSeasonalBackgroundsRequest : APIRequest<APISeasonalBackgrounds>
|
||||||
|
{
|
||||||
|
protected override string Target => @"seasonal-backgrounds";
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,20 @@
|
|||||||
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||||
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace osu.Game.Online.API.Requests.Responses
|
||||||
|
{
|
||||||
|
public class APISeasonalBackgrounds
|
||||||
|
{
|
||||||
|
[JsonProperty("backgrounds")]
|
||||||
|
public List<APISeasonalBackground> Backgrounds { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class APISeasonalBackground
|
||||||
|
{
|
||||||
|
[JsonProperty("url")]
|
||||||
|
public string Url { get; set; }
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user