From 84e645942aa9a510e2e0b061d79a1e5f2d2a7f55 Mon Sep 17 00:00:00 2001 From: Slendy Date: Fri, 23 Sep 2022 22:03:25 -0500 Subject: [PATCH] Make playlist serialization include hint_start --- .../Controllers/Slots/CollectionController.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ProjectLighthouse.Servers.GameServer/Controllers/Slots/CollectionController.cs b/ProjectLighthouse.Servers.GameServer/Controllers/Slots/CollectionController.cs index 9ea1e307..a401f965 100644 --- a/ProjectLighthouse.Servers.GameServer/Controllers/Slots/CollectionController.cs +++ b/ProjectLighthouse.Servers.GameServer/Controllers/Slots/CollectionController.cs @@ -1,5 +1,4 @@ #nullable enable -using System.Xml.Schema; using System.Xml.Serialization; using LBPUnion.ProjectLighthouse.Configuration; using LBPUnion.ProjectLighthouse.Helpers; @@ -120,7 +119,11 @@ public class CollectionController : ControllerBase (current, slot) => current + slot.Serialize()); int total = this.database.Playlists.Count(p => p.CreatorId == userId); - return LbpSerializer.TaggedStringElement("playlists", response, "total", total); + return LbpSerializer.TaggedStringElement("playlists", response, new Dictionary + { + {"total", total}, + {"hint_start", total+1}, + }); } [HttpPost("playlists")]