2019-08-09 11:14:38 +03:00
|
|
|
|
// 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.Framework.Graphics;
|
|
|
|
|
using osu.Game.Online.API.Requests;
|
|
|
|
|
using osu.Framework.Bindables;
|
2019-08-23 14:11:21 +03:00
|
|
|
|
using osu.Game.Online.API.Requests.Responses;
|
|
|
|
|
using osu.Game.Online.API;
|
|
|
|
|
using System.Collections.Generic;
|
2021-07-17 17:36:49 +02:00
|
|
|
|
using osu.Game.Resources.Localisation.Web;
|
2019-08-09 11:14:38 +03:00
|
|
|
|
|
|
|
|
|
namespace osu.Game.Overlays.Profile.Sections.Kudosu
|
|
|
|
|
{
|
2020-11-21 03:18:24 +03:00
|
|
|
|
public partial class PaginatedKudosuHistoryContainer : PaginatedProfileSubsection<APIKudosuHistory>
|
2019-08-09 11:14:38 +03:00
|
|
|
|
{
|
2023-01-10 19:24:54 +01:00
|
|
|
|
public PaginatedKudosuHistoryContainer(Bindable<UserProfileData?> user)
|
|
|
|
|
: base(user, missingText: UsersStrings.ShowExtraKudosuEntryEmpty)
|
2019-08-09 11:14:38 +03:00
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2023-01-11 19:11:40 +01:00
|
|
|
|
protected override APIRequest<List<APIKudosuHistory>> CreateRequest(UserProfileData user, PaginationParameters pagination)
|
|
|
|
|
=> new GetUserKudosuHistoryRequest(user.User.Id, pagination);
|
2019-08-09 11:14:38 +03:00
|
|
|
|
|
2019-08-23 14:11:21 +03:00
|
|
|
|
protected override Drawable CreateDrawableItem(APIKudosuHistory item) => new DrawableKudosuHistoryItem(item);
|
2019-08-09 11:14:38 +03:00
|
|
|
|
}
|
|
|
|
|
}
|