mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 09:03:50 +09:00
Share web request between builds and streams
This commit is contained in:
@ -1,9 +0,0 @@
|
|||||||
// 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.
|
|
||||||
|
|
||||||
namespace osu.Game.Online.API.Requests
|
|
||||||
{
|
|
||||||
public class GetChangelogLatestBuildsRequest : GetChangelogRequest
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
@ -108,11 +108,8 @@ namespace osu.Game.Overlays
|
|||||||
|
|
||||||
protected override void LoadComplete()
|
protected override void LoadComplete()
|
||||||
{
|
{
|
||||||
var req = new GetChangelogLatestBuildsRequest();
|
|
||||||
req.Success += res => badges.Populate(res.Streams);
|
|
||||||
api.Queue(req);
|
|
||||||
fetchListing();
|
|
||||||
base.LoadComplete();
|
base.LoadComplete();
|
||||||
|
fetchListing();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void PopIn()
|
protected override void PopIn()
|
||||||
@ -166,7 +163,11 @@ namespace osu.Game.Overlays
|
|||||||
isAtListing = true;
|
isAtListing = true;
|
||||||
var req = new GetChangelogRequest();
|
var req = new GetChangelogRequest();
|
||||||
badges.SelectNone();
|
badges.SelectNone();
|
||||||
req.Success += res => listing.ShowListing(res.Builds);
|
req.Success += res =>
|
||||||
|
{
|
||||||
|
listing.ShowListing(res.Builds);
|
||||||
|
badges.Populate(res.Streams);
|
||||||
|
};
|
||||||
api.Queue(req);
|
api.Queue(req);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user