mirror of
https://github.com/ppy/osu
synced 2025-01-05 21:59:46 +00: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),
|
Spacing = new Vector2(0, 20),
|
||||||
Children = new[]
|
Children = new[]
|
||||||
{
|
{
|
||||||
new NewsCard(new NewsPost
|
new NewsCard(new APINewsPost
|
||||||
{
|
{
|
||||||
Title = "This post has an image which starts with \"/\" and has many authors!",
|
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.",
|
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",
|
FirstImage = "/help/wiki/shared/news/banners/monthly-beatmapping-contest.png",
|
||||||
PublishedAt = DateTime.Now
|
PublishedAt = DateTime.Now
|
||||||
}),
|
}),
|
||||||
new NewsCard(new NewsPost
|
new NewsCard(new APINewsPost
|
||||||
{
|
{
|
||||||
Title = "This post has a full-url image!",
|
Title = "This post has a full-url image!",
|
||||||
Preview = "boom",
|
Preview = "boom",
|
||||||
|
@ -6,7 +6,7 @@ using System;
|
|||||||
|
|
||||||
namespace osu.Game.Online.API.Requests.Responses
|
namespace osu.Game.Online.API.Requests.Responses
|
||||||
{
|
{
|
||||||
public class NewsPost
|
public class APINewsPost
|
||||||
{
|
{
|
||||||
[JsonProperty(@"id")]
|
[JsonProperty(@"id")]
|
||||||
public long Id { get; set; }
|
public long Id { get; set; }
|
@ -23,12 +23,12 @@ namespace osu.Game.Overlays.News
|
|||||||
[Resolved]
|
[Resolved]
|
||||||
private OverlayColourProvider colourProvider { get; set; }
|
private OverlayColourProvider colourProvider { get; set; }
|
||||||
|
|
||||||
private readonly NewsPost post;
|
private readonly APINewsPost post;
|
||||||
|
|
||||||
private Box background;
|
private Box background;
|
||||||
private TextFlowContainer main;
|
private TextFlowContainer main;
|
||||||
|
|
||||||
public NewsCard(NewsPost post)
|
public NewsCard(APINewsPost post)
|
||||||
{
|
{
|
||||||
this.post = post;
|
this.post = post;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user