mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 06:17:23 +08:00
Rename NewsPost to APINewsPost
This commit is contained in:
parent
7550097eb6
commit
fdb7727e95
@ -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",
|
||||
|
@ -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; }
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user