This commit is contained in:
ansel
2022-09-27 19:40:18 +03:00
parent 2f551be1be
commit 5282c8b8c6
2 changed files with 4 additions and 4 deletions

View File

@ -98,7 +98,7 @@ namespace osu.Game.Tests.Visual.Online
if (!(request is CommentDeleteRequest req)) if (!(request is CommentDeleteRequest req))
return false; return false;
if (req.ID != 1) if (req.CommentId != 1)
return false; return false;
CommentBundle cb = new CommentBundle CommentBundle cb = new CommentBundle

View File

@ -9,11 +9,11 @@ namespace osu.Game.Online.API.Requests
{ {
public class CommentDeleteRequest : APIRequest<CommentBundle> public class CommentDeleteRequest : APIRequest<CommentBundle>
{ {
public readonly long ID; public readonly long CommentId;
public CommentDeleteRequest(long id) public CommentDeleteRequest(long id)
{ {
this.ID = id; CommentId = id;
} }
protected override WebRequest CreateWebRequest() protected override WebRequest CreateWebRequest()
@ -23,6 +23,6 @@ namespace osu.Game.Online.API.Requests
return req; return req;
} }
protected override string Target => $@"comments/{ID}"; protected override string Target => $@"comments/{CommentId}";
} }
} }