mirror of
https://github.com/rafi1212122/PemukulPaku
synced 2025-12-12 19:14:34 +01:00
25 lines
812 B
C#
25 lines
812 B
C#
using Common.Database;
|
|
using Common.Resources.Proto;
|
|
|
|
namespace PemukulPaku.GameServer.Handlers
|
|
{
|
|
[PacketCmdId(CmdId.GetLoginActivityReq)]
|
|
internal class GetLoginActivityReqHandler : IPacketHandler
|
|
{
|
|
public void Handle(Session session, Packet packet)
|
|
{
|
|
GetLoginActivityRsp Rsp = new () { retcode = GetLoginActivityRsp.Retcode.Succ };
|
|
|
|
Rsp.LoginLists.Add(new LoginActivityData
|
|
{
|
|
Id = 581,
|
|
LoginDays = Login.GetUserLoginDays(session.Player.User.Uid),
|
|
AcceptTime = session.Player.User.GetCreationTime(),
|
|
DurationEndTime = session.Player.User.GetCreationTime() + 604800 * 2
|
|
});
|
|
|
|
session.Send(Packet.FromProto(Rsp, CmdId.GetLoginActivityRsp));
|
|
}
|
|
}
|
|
}
|