mirror of
https://gitea.tendokyu.moe/Kayori/Medusa.net.git
synced 2026-10-12 00:58:34 +03:00
45 lines
1.2 KiB
C#
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."); }
|
|
}
|