Rename NewsPost to APINewsPost

This commit is contained in:
Andrei Zavatski 2020-07-06 07:28:44 +03:00
parent 7550097eb6
commit fdb7727e95
3 changed files with 5 additions and 5 deletions

View File

@ -29,7 +29,7 @@ namespace osu.Game.Tests.Visual.Online
Spacing = new Vector2(0, 20),
Children = new[]
{
new NewsCard(new NewsPost
new NewsCard(new APINewsPost
{
Title = "This post has an image which starts with \"/\" and has many authors!",
Preview = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
@ -37,7 +37,7 @@ namespace osu.Game.Tests.Visual.Online
FirstImage = "/help/wiki/shared/news/banners/monthly-beatmapping-contest.png",
PublishedAt = DateTime.Now
}),
new NewsCard(new NewsPost
new NewsCard(new APINewsPost
{
Title = "This post has a full-url image!",
Preview = "boom",

View File

@ -6,7 +6,7 @@ using System;
namespace osu.Game.Online.API.Requests.Responses
{
public class NewsPost
public class APINewsPost
{
[JsonProperty(@"id")]
public long Id { get; set; }

View File

@ -23,12 +23,12 @@ namespace osu.Game.Overlays.News
[Resolved]
private OverlayColourProvider colourProvider { get; set; }
private readonly NewsPost post;
private readonly APINewsPost post;
private Box background;
private TextFlowContainer main;
public NewsCard(NewsPost post)
public NewsCard(APINewsPost post)
{
this.post = post;
}