Skip to content

Commit

Permalink
Add stub for showModerated
Browse files Browse the repository at this point in the history
  • Loading branch information
Beyley committed Sep 24, 2023
1 parent 49caaa8 commit e3843e7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Refresh.GameServer/Endpoints/Game/ModerationEndpoints.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<string>(),
};
}

/// <summary>
/// Censor ("filter") strings sent by the client. Used for chat messages, speech bubble contents, etc.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using System.Xml.Serialization;

namespace Refresh.GameServer.Types.UserData;

#nullable disable

[XmlRoot("resources")]
public class SerializedModeratedResourceList
{
[XmlElement("resource")]
public List<string> Resources;
}

0 comments on commit e3843e7

Please sign in to comment.