Files
Kayori_Medusa.net/Abstractions/Handlers/Handler.cs
T
2025-06-22 13:01:34 +02:00

45 lines
1.2 KiB
C#

using System;
using System.Threading.Tasks;
using System.Xml.Linq;
namespace Abstractions.Handlers;
public abstract class Handler
{
public string HandlerModule { get; set; } = "";
public string HandlerMethod { get; set; } = "";
public string? HandlerGameCode { get; set; }
public string? HandlerMinVer { get; set; }
public string? HandlerMaxVer { get; set; }
public virtual void Configure() { throw new NotImplementedException("Configure method not implemented."); }
protected void Module(string module)
{
this.HandlerModule = module;
}
protected void Method(string method)
{
this.HandlerMethod = method;
}
protected void GameCode(string gameCode)
{
this.HandlerGameCode = gameCode;
}
protected void MinVer(string minVer)
{
this.HandlerMinVer = minVer;
}
protected void MaxVer(string maxVer)
{
this.HandlerMaxVer = maxVer;
}
public virtual XDocument Handle(string model) { throw new NotImplementedException("Handle method not implemented."); }
public virtual Task<XDocument> HandleAsync(string model) { throw new NotImplementedException("Handle method not implemented."); }
}