From e3843e7c8ccf4e597513ecf021d7699303a10ea9 Mon Sep 17 00:00:00 2001 From: Beyley Thomas Date: Sun, 24 Sep 2023 12:30:48 -0700 Subject: [PATCH] Add stub for `showModerated` --- .../Endpoints/Game/ModerationEndpoints.cs | 9 +++++++++ .../UserData/SerializedModeratedResourceList.cs | 12 ++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 Refresh.GameServer/Types/UserData/SerializedModeratedResourceList.cs diff --git a/Refresh.GameServer/Endpoints/Game/ModerationEndpoints.cs b/Refresh.GameServer/Endpoints/Game/ModerationEndpoints.cs index fea8c498..87dd916b 100644 --- a/Refresh.GameServer/Endpoints/Game/ModerationEndpoints.cs +++ b/Refresh.GameServer/Endpoints/Game/ModerationEndpoints.cs @@ -21,6 +21,15 @@ public SerializedModeratedSlotList ModerateSlots(RequestContext context, Seriali }; } + [GameEndpoint("showModerated", Method.Post, ContentType.Xml)] + public SerializedModeratedResourceList ModerateResources(RequestContext context, SerializedModeratedResourceList body) + { + return new SerializedModeratedResourceList + { + Resources = new List(), + }; + } + /// /// Censor ("filter") strings sent by the client. Used for chat messages, speech bubble contents, etc. /// diff --git a/Refresh.GameServer/Types/UserData/SerializedModeratedResourceList.cs b/Refresh.GameServer/Types/UserData/SerializedModeratedResourceList.cs new file mode 100644 index 00000000..d70d2d92 --- /dev/null +++ b/Refresh.GameServer/Types/UserData/SerializedModeratedResourceList.cs @@ -0,0 +1,12 @@ +using System.Xml.Serialization; + +namespace Refresh.GameServer.Types.UserData; + +#nullable disable + +[XmlRoot("resources")] +public class SerializedModeratedResourceList +{ + [XmlElement("resource")] + public List Resources; +} \ No newline at end of file