mirror of
https://github.com/UltraCoderRU/court_monitor.git
synced 2026-01-28 10:25:13 +00:00
22 lines
556 B
C++
22 lines
556 B
C++
#ifndef COURT_MONITOR_DIALOG_H
|
|
#define COURT_MONITOR_DIALOG_H
|
|
|
|
#include <banana/types_fwd.hpp>
|
|
#include <banana/utils/basic_types.hpp>
|
|
|
|
class Dialog
|
|
{
|
|
public:
|
|
Dialog(banana::integer_t userId, const char* name);
|
|
virtual ~Dialog();
|
|
|
|
// Возвращают true, если диалог завершен.
|
|
virtual bool processMessage(const banana::api::message_t& message) = 0;
|
|
virtual bool processCallbackQuery(const banana::api::callback_query_t& query) = 0;
|
|
|
|
private:
|
|
banana::integer_t userId_;
|
|
const char* name_;
|
|
};
|
|
|
|
#endif // COURT_MONITOR_DIALOG_H
|