mirror of
https://gitea.tendokyu.moe/Kayori/Medusa.net.git
synced 2026-10-10 08:18:09 +03:00
26 lines
634 B
C#
26 lines
634 B
C#
using System.Xml.Linq;
|
|
using Abstractions.Handlers;
|
|
|
|
namespace Server.Handlers
|
|
{
|
|
public class SubscribeAsGuestUserIdHandler(XDocument body): Handler
|
|
{
|
|
private readonly XDocument _body = body;
|
|
|
|
public override void Configure()
|
|
{
|
|
Module("userid");
|
|
Method("subscribeAsGuest");
|
|
}
|
|
|
|
public override XDocument Handle(string model)
|
|
{
|
|
var subscribeAsGuest = new XElement("userid", new XAttribute("status", "0"));
|
|
|
|
var document = new XDocument(new XElement("response", subscribeAsGuest));
|
|
|
|
return document;
|
|
}
|
|
}
|
|
}
|