From 80a60a4b0e94ccdc2249b134da472dda5e6108b2 Mon Sep 17 00:00:00 2001 From: Toru the Red Fox Date: Tue, 26 Jul 2022 14:31:29 +0100 Subject: [PATCH] a --- .../Controllers/NewsController.cs | 3 ++- ProjectLighthouse/Types/News.cs | 12 +++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/ProjectLighthouse.Servers.GameServer/Controllers/NewsController.cs b/ProjectLighthouse.Servers.GameServer/Controllers/NewsController.cs index bde0ca1a..97dbbcb7 100644 --- a/ProjectLighthouse.Servers.GameServer/Controllers/NewsController.cs +++ b/ProjectLighthouse.Servers.GameServer/Controllers/NewsController.cs @@ -27,8 +27,9 @@ public class NewsController : ControllerBase Title = "Test Title", Text = "Test Text", Date = 1348755214000, + Picks = "", }.Serialize() - ); + ); ; return this.Ok(LbpSerializer.StringElement("news", newsEntry)); } diff --git a/ProjectLighthouse/Types/News.cs b/ProjectLighthouse/Types/News.cs index bef3b0d5..80ccadb4 100644 --- a/ProjectLighthouse/Types/News.cs +++ b/ProjectLighthouse/Types/News.cs @@ -14,9 +14,19 @@ public static class News { public string Text { get; set; } public NewsImage Image { get; set; } public long Date { get; set; } + public string Type { get; set; } + public string Name { get; set; } + public string Author { get; set; } + public string Icon { get; set; } + public string Level { get; set; } + public string Picks { get; set; } public string Serialize() - => LbpSerializer.StringElement("id", this.Id) + + => LbpSerializer.StringElement("type", this.Type) + + LbpSerializer.StringElement("id", this.Id) + + LbpSerializer.StringElement("picks", this.Picks) + + LbpSerializer.StringElement("type", this.Type) + + LbpSerializer.StringElement("date", this.Date) + LbpSerializer.StringElement("title", this.Title) + LbpSerializer.StringElement("summary", this.Summary) + LbpSerializer.StringElement("text", this.Text) +