2016-08-02 05:14:09 +08:00
|
|
|
#pragma once
|
|
|
|
|
2016-08-11 11:47:30 +08:00
|
|
|
#include "communication/bolt/v1/states/message_parser.hpp"
|
2016-08-02 05:14:09 +08:00
|
|
|
|
|
|
|
namespace bolt
|
|
|
|
{
|
|
|
|
|
|
|
|
class Init : public MessageParser<Init>
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
struct Message
|
|
|
|
{
|
|
|
|
std::string client_name;
|
|
|
|
};
|
|
|
|
|
|
|
|
Init();
|
|
|
|
|
|
|
|
State* parse(Session& session, Message& message);
|
|
|
|
State* execute(Session& session, Message& message);
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|