#pragma once

#include "td/protocol/Protocol.h"

namespace td {
namespace protocol {

class UpdateLobbyTimePacket : public Packet {
private:
	std::uint32_t m_RemainingTime;
public:
	UpdateLobbyTimePacket() {}
	UpdateLobbyTimePacket(std::uint32_t remainingTime) : m_RemainingTime(remainingTime) {}
	virtual ~UpdateLobbyTimePacket() {}

	virtual DataBuffer Serialize(bool packetID = true) const;
	virtual void Deserialize(DataBuffer& data);
	virtual void Dispatch(PacketHandler* handler) const;

	std::uint32_t GetRemainingTime() const { return m_RemainingTime; }

	virtual PacketType GetType() const { return PacketType::UpdateLobbyTime; }
};

} // namespace protocol
} // namespace td
