Update comments; Improve neighboring builds handling;

Apply fixes to things pointed out by AppVeyor
This commit is contained in:
HoutarouOreki
2018-07-20 15:48:20 +02:00
parent 227394925a
commit 02a8fb2154
9 changed files with 37 additions and 49 deletions

View File

@ -7,14 +7,14 @@ namespace osu.Game.Online.API.Requests
{
public class GetChangelogBuildRequest : APIRequest<APIChangelog>
{
private readonly string name;
private readonly string version;
//private readonly string name;
//private readonly string version;
public GetChangelogBuildRequest(string streamName, string buildVersion)
{
name = streamName;
version = buildVersion;
}
//public GetChangelogBuildRequest(string streamName, string buildVersion)
//{
// name = streamName;
// version = buildVersion;
//}
//protected override string Target => $@"changelog/{name}/{version}";
protected override string Uri => @"https://api.myjson.com/bins/ya5q2"; // for testing

View File

@ -6,12 +6,9 @@ using System.Collections.Generic;
namespace osu.Game.Online.API.Requests
{
/// <summary>
/// Obviously a placeholder
/// </summary>
public class GetChangelogLatestBuildsRequest : APIRequest<List<APIChangelog>>
{
protected override string Uri => Target;
protected override string Target => @"https://api.myjson.com/bins/16waui";
//protected override string Target => @"changelog";
protected override string Uri => @"https://api.myjson.com/bins/16waui"; // for testing
}
}

View File

@ -7,7 +7,7 @@ namespace osu.Game.Online.API.Requests
{
public class GetChangelogRequest : APIRequest<APIChangelog[]>
{
protected override string Uri => Target;
protected override string Target => "https://api.myjson.com/bins/6zv2i";
//protected override string Target => @"changelog";
protected override string Uri => @"https://api.myjson.com/bins/6zv2i"; // for testing
}
}