#pragma once

#include <maps/wikimap/mapspro/services/editor/src/common.h>
#include <maps/wikimap/mapspro/libs/controller/include/basecontroller.h>

namespace maps {
namespace wiki {

class CreateToken;
template<>
struct controller::ResultType<CreateToken>
{
    std::string taskName;
    Token token;
};

class CreateToken : public controller::BaseController<CreateToken>
{
public:
    struct Request
    {
        const TBranchId branch;
    };

    CreateToken(const Request& request);

    virtual std::string printRequest() const;

protected:
    virtual void control();

private:
    const Request request_;
};

} // namespace wiki
} // namespace maps
