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) +