mirror of
https://github.com/ppy/osu.git
synced 2025-03-03 20:43:22 +08:00
Use more sensible names for classes
This commit is contained in:
parent
91335a83ec
commit
507d0e3252
@ -45,7 +45,7 @@ namespace osu.Game.Online.API.Requests
|
||||
}
|
||||
|
||||
[JsonProperty(@"beatmaps")]
|
||||
private IEnumerable<APIResponseSetsBeatmap> beatmaps { get; set; }
|
||||
private IEnumerable<APIResponseBeatmap> beatmaps { get; set; }
|
||||
|
||||
public BeatmapSetInfo ToBeatmapSet(RulesetStore rulesets)
|
||||
{
|
||||
@ -69,7 +69,7 @@ namespace osu.Game.Online.API.Requests
|
||||
};
|
||||
}
|
||||
|
||||
private class APIResponseSetsBeatmap : BeatmapMetadata
|
||||
private class APIResponseBeatmap : BeatmapMetadata
|
||||
{
|
||||
[JsonProperty(@"id")]
|
||||
private int onlineBeatmapID { get; set; }
|
||||
|
@ -8,7 +8,7 @@ using System.Collections.Generic;
|
||||
|
||||
namespace osu.Game.Online.API.Requests
|
||||
{
|
||||
public class GetUserMostPlayedBeatmapsRequest : APIRequest<List<UserMostPlayedBeatmapsResponse>>
|
||||
public class GetUserMostPlayedBeatmapsRequest : APIRequest<List<MostPlayedBeatmap>>
|
||||
{
|
||||
private readonly long userId;
|
||||
private readonly int offset;
|
||||
@ -22,7 +22,7 @@ namespace osu.Game.Online.API.Requests
|
||||
protected override string Target => $@"users/{userId}/beatmapsets/most_played?offset={offset}";
|
||||
}
|
||||
|
||||
public class UserMostPlayedBeatmapsResponse
|
||||
public class MostPlayedBeatmap
|
||||
{
|
||||
[JsonProperty("beatmap_id")]
|
||||
public int BeatmapID;
|
||||
|
Loading…
Reference in New Issue
Block a user