mirror of
https://github.com/raphaeIl/Novaria.git
synced 2025-12-13 06:54:48 +01:00
add diff files for auto updating client, readme for installation and running tutorial
This commit is contained in:
26
Novaria.GameServer/Controllers/Api/ProtocolHandlers/Mail.cs
Normal file
26
Novaria.GameServer/Controllers/Api/ProtocolHandlers/Mail.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using Novaria.Common.Core;
|
||||
using Proto;
|
||||
using Serilog;
|
||||
|
||||
namespace Novaria.GameServer.Controllers.Api.ProtocolHandlers
|
||||
{
|
||||
public class Mail : ProtocolHandlerBase
|
||||
{
|
||||
public Mail(IProtocolHandlerFactory protocolHandlerFactory) : base(protocolHandlerFactory)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
[ProtocolHandler(NetMsgId.mail_list_req)] // req id goes here
|
||||
public Packet PlayerLoginHandler(Nil req)
|
||||
{
|
||||
Mails mailListResp = (Mails)PcapParser.PcapParser.Instance.GetPcapPacket(NetMsgId.mail_list_succeed_ack);
|
||||
|
||||
mailListResp.List[0].Subject = "seggs";
|
||||
mailListResp.List[1].Subject = "seggs";
|
||||
mailListResp.List[2].Subject = "seggs";
|
||||
|
||||
return Packet.Create(NetMsgId.mail_list_succeed_ack, mailListResp);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user