mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-15 14:12:27 +00:00
Make playlist serialization include hint_start
This commit is contained in:
parent
4483819bd7
commit
84e645942a
1 changed files with 5 additions and 2 deletions
|
@ -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<string, object>
|
||||
{
|
||||
{"total", total},
|
||||
{"hint_start", total+1},
|
||||
});
|
||||
}
|
||||
|
||||
[HttpPost("playlists")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue