mirror of
https://github.com/UltraCoderRU/court_monitor.git
synced 2026-01-28 10:25:13 +00:00
26 lines
710 B
C++
26 lines
710 B
C++
#ifndef COURT_MONITOR_SUBSCRIBE_CASE_DIALOG_H
|
|
#define COURT_MONITOR_SUBSCRIBE_CASE_DIALOG_H
|
|
|
|
#include "Dialog.h"
|
|
#include "Storage.h"
|
|
|
|
#include <banana/agent/beast.hpp>
|
|
|
|
struct SubscribeCaseStateMachine;
|
|
|
|
class SubscribeCaseDialog : public Dialog
|
|
{
|
|
public:
|
|
SubscribeCaseDialog(banana::agent::beast_callback& agent,
|
|
banana::integer_t userId,
|
|
LocalStorage& storage);
|
|
~SubscribeCaseDialog() override;
|
|
|
|
bool processMessage(const banana::api::message_t& message) override;
|
|
bool processCallbackQuery(const banana::api::callback_query_t& query) override;
|
|
|
|
private:
|
|
std::unique_ptr<SubscribeCaseStateMachine> machine_;
|
|
};
|
|
|
|
#endif // COURT_MONITOR_SUBSCRIBE_CASE_DIALOG_H
|