mirror of
https://github.com/ppy/osu
synced 2025-01-07 06:40:05 +00:00
T -> TModel
This commit is contained in:
parent
f18b5a3c02
commit
27633c8dbd
@ -17,11 +17,11 @@ using System.Threading;
|
|||||||
|
|
||||||
namespace osu.Game.Overlays.Profile.Sections
|
namespace osu.Game.Overlays.Profile.Sections
|
||||||
{
|
{
|
||||||
public abstract class PaginatedContainer<T> : FillFlowContainer
|
public abstract class PaginatedContainer<TModel> : FillFlowContainer
|
||||||
{
|
{
|
||||||
private readonly ShowMoreButton moreButton;
|
private readonly ShowMoreButton moreButton;
|
||||||
private readonly OsuSpriteText missingText;
|
private readonly OsuSpriteText missingText;
|
||||||
private APIRequest<List<T>> retrievalRequest;
|
private APIRequest<List<TModel>> retrievalRequest;
|
||||||
private CancellationTokenSource loadCancellation;
|
private CancellationTokenSource loadCancellation;
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
@ -104,7 +104,7 @@ namespace osu.Game.Overlays.Profile.Sections
|
|||||||
api.Queue(retrievalRequest);
|
api.Queue(retrievalRequest);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected virtual void UpdateItems(List<T> items)
|
protected virtual void UpdateItems(List<TModel> items)
|
||||||
{
|
{
|
||||||
Schedule(() =>
|
Schedule(() =>
|
||||||
{
|
{
|
||||||
@ -127,9 +127,9 @@ namespace osu.Game.Overlays.Profile.Sections
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
protected abstract APIRequest<List<T>> CreateRequest();
|
protected abstract APIRequest<List<TModel>> CreateRequest();
|
||||||
|
|
||||||
protected abstract Drawable CreateDrawableItem(T item);
|
protected abstract Drawable CreateDrawableItem(TModel item);
|
||||||
|
|
||||||
protected override void Dispose(bool isDisposing)
|
protected override void Dispose(bool isDisposing)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user