2019-01-24 17:43:03 +09: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.
|
2018-04-13 18:19:50 +09:00
|
|
|
|
|
2018-02-25 22:41:47 +05:30
|
|
|
|
using osu.Framework.Graphics;
|
2018-02-25 19:18:39 +05:30
|
|
|
|
using osu.Game.Online.API.Requests;
|
2019-02-21 19:04:31 +09:00
|
|
|
|
using osu.Framework.Bindables;
|
2018-06-08 11:41:54 +09:00
|
|
|
|
using osu.Game.Online.API.Requests.Responses;
|
2019-08-27 15:47:37 +03:00
|
|
|
|
using osu.Game.Online.API;
|
|
|
|
|
using System.Collections.Generic;
|
2020-01-29 21:01:40 +03:00
|
|
|
|
using osuTK;
|
2020-09-07 23:08:50 +03:00
|
|
|
|
using osu.Framework.Allocation;
|
2021-07-17 15:50:56 +02:00
|
|
|
|
using osu.Game.Resources.Localisation.Web;
|
2018-04-13 18:19:50 +09:00
|
|
|
|
|
2018-02-26 01:16:46 +05:30
|
|
|
|
namespace osu.Game.Overlays.Profile.Sections.Recent
|
2018-02-25 19:18:39 +05:30
|
|
|
|
{
|
2020-11-21 03:18:24 +03:00
|
|
|
|
public partial class PaginatedRecentActivityContainer : PaginatedProfileSubsection<APIRecentActivity>
|
2018-02-25 19:18:39 +05:30
|
|
|
|
{
|
2023-01-10 19:24:54 +01:00
|
|
|
|
public PaginatedRecentActivityContainer(Bindable<UserProfileData?> user)
|
|
|
|
|
: base(user, missingText: EventsStrings.Empty)
|
2018-02-25 19:18:39 +05:30
|
|
|
|
{
|
2020-09-07 23:08:50 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
|
private void load()
|
|
|
|
|
{
|
2020-01-30 13:55:50 +03:00
|
|
|
|
ItemsContainer.Spacing = new Vector2(0, 8);
|
2018-02-25 19:18:39 +05:30
|
|
|
|
}
|
2018-04-13 18:19:50 +09:00
|
|
|
|
|
2023-01-11 19:11:40 +01:00
|
|
|
|
protected override APIRequest<List<APIRecentActivity>> CreateRequest(UserProfileData user, PaginationParameters pagination) =>
|
|
|
|
|
new GetUserRecentActivitiesRequest(user.User.Id, pagination);
|
2018-04-13 18:19:50 +09:00
|
|
|
|
|
2019-08-28 13:31:12 +09:00
|
|
|
|
protected override Drawable CreateDrawableItem(APIRecentActivity model) => new DrawableRecentActivity(model);
|
2018-02-25 19:18:39 +05:30
|
|
|
|
}
|
|
|
|
|
}
|