1
0
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:
Dean Herbert 2017-12-11 12:25:29 +09:00
parent 91335a83ec
commit 507d0e3252
2 changed files with 4 additions and 4 deletions

View File

@ -45,7 +45,7 @@ namespace osu.Game.Online.API.Requests
} }
[JsonProperty(@"beatmaps")] [JsonProperty(@"beatmaps")]
private IEnumerable<APIResponseSetsBeatmap> beatmaps { get; set; } private IEnumerable<APIResponseBeatmap> beatmaps { get; set; }
public BeatmapSetInfo ToBeatmapSet(RulesetStore rulesets) 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")] [JsonProperty(@"id")]
private int onlineBeatmapID { get; set; } private int onlineBeatmapID { get; set; }

View File

@ -8,7 +8,7 @@ using System.Collections.Generic;
namespace osu.Game.Online.API.Requests namespace osu.Game.Online.API.Requests
{ {
public class GetUserMostPlayedBeatmapsRequest : APIRequest<List<UserMostPlayedBeatmapsResponse>> public class GetUserMostPlayedBeatmapsRequest : APIRequest<List<MostPlayedBeatmap>>
{ {
private readonly long userId; private readonly long userId;
private readonly int offset; 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}"; protected override string Target => $@"users/{userId}/beatmapsets/most_played?offset={offset}";
} }
public class UserMostPlayedBeatmapsResponse public class MostPlayedBeatmap
{ {
[JsonProperty("beatmap_id")] [JsonProperty("beatmap_id")]
public int BeatmapID; public int BeatmapID;