Rename APIChangelog to APIChangelogBuild

This commit is contained in:
Hōtarō Oreki
2018-10-18 21:04:21 +02:00
parent 510b52a503
commit b8ac328ae9
10 changed files with 26 additions and 26 deletions

View File

@ -5,7 +5,7 @@ using osu.Game.Online.API.Requests.Responses;
namespace osu.Game.Online.API.Requests
{
public class GetChangelogBuildRequest : APIRequest<APIChangelog>
public class GetChangelogBuildRequest : APIRequest<APIChangelogBuild>
{
private readonly string name;
private readonly string version;

View File

@ -6,7 +6,7 @@ using System.Collections.Generic;
namespace osu.Game.Online.API.Requests
{
public class GetChangelogLatestBuildsRequest : APIRequest<List<APIChangelog>>
public class GetChangelogLatestBuildsRequest : APIRequest<List<APIChangelogBuild>>
{
protected override string Target => @"changelog/latest-builds";
protected override string Uri => $@"https://houtarouoreki.github.io/fake-api/{Target}"; // for testing

View File

@ -5,7 +5,7 @@ using osu.Game.Online.API.Requests.Responses;
namespace osu.Game.Online.API.Requests
{
public class GetChangelogRequest : APIRequest<APIChangelog[]>
public class GetChangelogRequest : APIRequest<APIChangelogBuild[]>
{
protected override string Target => @"changelog";
protected override string Uri => $@"https://houtarouoreki.github.io/fake-api/{Target}/index"; // for testing

View File

@ -7,7 +7,7 @@ using System.Collections.Generic;
namespace osu.Game.Online.API.Requests.Responses
{
public class APIChangelog
public class APIChangelogBuild
{
[JsonProperty("id")]
public long Id { get; set; }
@ -40,10 +40,10 @@ namespace osu.Game.Online.API.Requests.Responses
public class Versions
{
[JsonProperty("next")]
public APIChangelog Next { get; set; }
public APIChangelogBuild Next { get; set; }
[JsonProperty("previous")]
public APIChangelog Previous { get; set; }
public APIChangelogBuild Previous { get; set; }
}
public class ChangelogEntry