mirror of
https://gitea.tendokyu.moe/Kayori/MedusaPluginChargeMachine.git
synced 2026-10-08 23:09:47 +03:00
30 lines
857 B
C#
30 lines
857 B
C#
using System.Xml.Linq;
|
|
using Abstractions.Handlers;
|
|
using Abstractions.SerializationTypes;
|
|
using MedusaPluginChargeMachine.Models.Request;
|
|
using MedusaPluginChargeMachine.Models.Response;
|
|
using MedusaPluginChargeMachine.Services;
|
|
|
|
namespace MedusaPluginChargeMachine.Handlers.LA9;
|
|
|
|
public class OpCheckinEaChargeHandler(ISessionService sessionService): Handler<OpCheckinRequest, OpCheckinResponse>
|
|
{
|
|
public override void Configure()
|
|
{
|
|
Module("eacharge");
|
|
Method("opcheckin");
|
|
}
|
|
|
|
public override OpCheckinResponse Handle(OpCheckinRequest req, GameModel model)
|
|
{
|
|
var sessionId = sessionService.AddSession(req.SourceId);
|
|
|
|
var response = new OpCheckinResponse()
|
|
{
|
|
Status = 0,
|
|
SessionId = new XrpcString(sessionId)
|
|
};
|
|
|
|
return response;
|
|
}
|
|
} |