TigerEmu/Communication/Messages/Incoming/Handshake/SsoTicketMessageEvent.cs

20 lines
752 B
C#

using Microsoft.Extensions.Logging;
using Tiger.Communication.Messages.Interfaces;
using Tiger.Communication.Messages.Outgoing.Notifications;
using Tiger.Communication.Messages.Outgoing.Security;
using Tiger.Communication.Messages.Types;
using Tiger.Networking.Game.Sessions;
using Tiger.Storage;
namespace Tiger.Communication.Messages.Incoming.Handshake;
public class SsoTicketMessageEvent : IMessageEvent
{
public IncomingHeaders Header => IncomingHeaders.SecurityTicket;
public async Task HandleAsync(GameSession gameSession, ClientMessage request)
{
await gameSession.SendComposerAsync(new AuthenticatedComposer());
await gameSession.SendComposerAsync(new HabboBroadcastMessageComposer("Beep goes the jeep"));
}
}